Giter Club home page Giter Club logo

remote-datasets's Issues

Homogenize maps in the website

There are some small differences in the static figures (https://www.generic-mapping-tools.org/remote-datasets/index.html).

The idea is to make all similar (and add scripts to those that don't have).

Important doubts:

  1. Should I extend the maps at to the poles (for those that don't have data their)? I think we should so the users can clearly see the lack of the data there (and also all the figures have the same size).

Minor doubts:

  1. With or without a frame? Some of them have.
  2. There are maps with jpg and png format. I should respect that, right?

Update information for new/updated grids

This is mainly a recordatory:

We should update the webpage for the:

  • New grids: moon and other planets
  • Updated grids: update the information.

I am thinking of adding the grid's version in the title (in this page). I would like to easly see what version are available.

feature request: GEBCO bathymetry and GSHHS coastline

Hi every body,

I want to focus your attention on these two databases for your consideration. I think that will be very useful to have direct access to them. I share with you the links to the main projects of both of them:

Indeed I code some workaround, I currently use to extract GSHHS coastline (shpfiles) using gepandas, you can check the feature request I did in pyGMT . I think these features will be easy to implement and very useful for the community.

Have a nice weekend!

Code for maximum resoultion

Now that there are many datasets, I think it could be useful to have a way to call the maximum resolution available. This way the user will have no need to check in the docs which is the highest.

Maybe something like @earth_mag_max.

Automate building of the *.rst snippets

Right now, pieces like earth-faa.rst are manually maintained. However, with soon > 20 datasets this gets tedious. I suggest we instead maintain either a single text file with the background on each data set (or, alternatively, one small txt file for each). Then, a script can loop over these and make individual RST snippet like earth-faa.rst. In addition to the preamble given by the small txt files and the inclusion of files like GMT_faa.jpg), the script will need to

  • Format the Usage section
  • Build the tables (e.g., _tbl-earth_faa). The dimensions and etc is available on the candidate server, for instance, or locally.
  • Any data references might be comments in the txt file that if > 0 records builds a Data References section

What to do if a full global set is needed

For many purposes it would be nice to somehow get, say, earth_relief_15s.grd downloaded in one piece instead of having GMT reassemble all the tiles. It is particularly useful if one is running animations and needs a global grid. Unless it is 6m and up we have to run grdcut to assemble the higher dimension global file (which we made during the processing).

Once option to implement this would be to simply distinguish between @earth_relief_15s[_p|g] and @earth_relief_15s[_p|g].grd, the latter requesting the whole enchilada. These would then have to be uploaded, of course, and placed in the gmt_data_server.txt in a similar way to the lower wool-earth grids.

Negative is this duplicates memory requirements for the biggest data sets. Any thoughts?

Inconsistent file format of images for remote datasets

After PR #101 there are now both PNG and JPG files stored in the folder at https://github.com/GenericMappingTools/remote-datasets/tree/main/docs/_static for the GMT_earth_age and the GMT_earth_mask remote dataset images. For the thumbnail images on the overview page, the JPG files are used, but for the large images on the separate documentation pages, the PNG files are used. For GMT_earth_mask the PNG and JPG files are not identical (please compare https://www.generic-mapping-tools.org/remote-datasets/ and https://www.generic-mapping-tools.org/remote-datasets/earth-mask.html).
Maybe it makes sense to consistently use one format, i.e., the JPG format, across all remote datasets and delete the PNG files?

Update files sizes for NASA Day/Night Images

The file sizes in this table are wrong.

For example it says that the size for the 30s image is 935 MB when in fact is 219M (394 M) for the day (nigth) image. And the sizes (based on the info of gmt_data_server.txt) are consirable different for most of the resolutions.

What should I do?

  1. Only use the sizes for day image?
  2. Only use the sizes for night image?
  3. Use both sizes in the same table?
  4. Make another table?

Create a docs page with all remote files

Description of the desired feature

Currently, there is no page that lists all remote files, what they are, where they come from, and what they contain. We should have such a page. Bonus points if there are plots these files as well.

Get ready for GMT 6.5 release

Hi @Esteban82-

Could you give me an update on where we are with

  1. The candidate server (I think it is fully populated, no?)
  2. Illustrations for each data set to go on the website showing the data
  3. Any scripts that still need to be made?

I think we need to make sure that this repo is completed, and then when we actually release GMT 6.5 then we can run

make server-release

Which we have ever done (we have dome make candidate-release) but have to look out for issues live.n

Bug in earth_relief_30s_g ?

It seems there is an error in the processing of @earth_relief_30s_g.

earth_relief

gmt begin earth_relief png
	gmt grdimage @earth_relief_30s_g -Bf -Cgeo -JM5c -B+t"relief_30s_g" -R-72/-64/-35/-30
	gmt grdimage @earth_relief_30s_p -Bf -Cgeo -X5c -B+t"relief_30s_p"
	gmt grdimage @earth_relief_01m_g -Bf -Cgeo -X5c -B+t"relief_01m_g"
	gmt grdimage @earth_gebco_30s_g -Bf -Cgeo -X5c -B+t"gebco_30s_g"
gmt end

Testing of new data sets before public release

Pinging @GenericMappingTools/gmt-team. I have uploaded new remote data grids to the test server. These are described here. Note that until we complete the dvc move for test images we have not yet updated the earth_relief files (they are still based off SRTM15+ v2.1 from 2019). Once that is settled I will update those files to 2.3 and add the synbath grid as well. Because of this, if you run all the GMT tests they still all pass since all the DEM images are made using the same DEM as was used in the originals (once we update the DEM we will have ~60 failures...).

In the meantime, I hope you can find time to play a bit with the new datasets. To do so, and not mess up your other remote files, I suggest you do this:

Edit your ConfigUserAdvanced.cmake file (perhaps after updating via the Template) and uncomment this line:

# set (GMT_DATA_SERVER "test")

then rebuild GMT. To preserve your existing cache and server files, simply set them aside via

mv ~/.gmt/server ~/.gmt/server_orig
mv ~/.gmt/cache ~/.gmt/cache_orig

so that you will only use files from the test server. You can now try out making maps with @earth_{gebco,gebcosi,geoid,mag,mag4km,vgg,wdmam} - they all have their own default CPTs that will be downloaded via the cache.

Let me know if you find anything odd. The default CPTs are the ones recommended by the data provider, except Gebco which has not replied. I am therefore using the same geo CPT for all the reliefs.

Once you have finished testing, remove the new directories and rename the old:

rm -f /.gmt/server  ~/.gmt/cache 
mv ~/.gmt/server_orig ~/.gmt/server 
mv ~/.gmt/cache_orig ~/.gmt/cache

The asterisk in the resolution codes is misleading

Description of the problem

Hello guys! When I use grid = pygmt.datasets.load_earth_relief(resolution="06m", region=[70, 140, 0, 55]) to set a map of map, I found the provided resolution code can not be used.

Minimal Complete Verifiable Example

For example, when I set the resolution as "03m*", as codes as :

grid = pygmt.datasets.load_earth_relief(resolution="03m*", region=[70, 140, 0, 55])
fig = pygmt.Figure()
fig.grdimage(grid=grid, projection="M15c", frame="a", cmap="geo")
fig.colorbar(frame=["a1000", "x+lElevation", "y+lm"])
fig.show()

Full error message

---------------------------------------------------------------------------
GMTInvalidInput                           Traceback (most recent call last)
Cell In[21], line 1
----> 1 grid = pygmt.datasets.load_earth_relief(resolution="03m*", region=[70, 140, 0, 55])
      2 fig = pygmt.Figure()
      3 fig.grdimage(grid=grid, projection="M15c", frame="a", cmap="geo")

File f:\Anaconda3\envs\GeoTable\lib\site-packages\pygmt\helpers\decorators.py:738, in kwargs_to_strings..converter..new_module(*args, **kwargs)
    736             kwargs[arg] = separators[fmt].join(f"{item}" for item in value)
    737 # Execute the original function and return its output
--> 738 return module_func(*args, **kwargs)

File f:\Anaconda3\envs\GeoTable\lib\site-packages\pygmt\datasets\earth_relief.py:159, in load_earth_relief(resolution, region, registration, data_source, use_srtm)
    156 else:
    157     dataset_prefix = earth_relief_sources[data_source]
--> 159 grid = _load_remote_dataset(
    160     dataset_name="earth_relief",
    161     dataset_prefix=dataset_prefix,
    162     resolution=resolution,
    163     region=region,
    164     registration=registration,
    165 )
    166 return grid

File f:\Anaconda3\envs\GeoTable\lib\site-packages\pygmt\helpers\decorators.py:738, in kwargs_to_strings..converter..new_module(*args, **kwargs)
...
    279 # check registration
    280 if registration is None:
    281     # use gridline registration unless only pixel registration is available

GMTInvalidInput: Invalid resolution '03m*'.

System information

PyGMT information:
  version: v0.10.0
System information:
  python: 3.10.13 | packaged by Anaconda, Inc. | (main, Sep 11 2023, 13:24:38) [MSC v.1916 64 bit (AMD64)]
  executable: f:\Anaconda3\envs\GeoTable\python.exe
  machine: Windows-10-10.0.19041-SP0
Dependency information:
  numpy: 1.26.1
  pandas: 2.1.1
  xarray: 2023.10.1
  netCDF4: 1.6.5
  packaging: 23.2
  contextily: None
  geopandas: None
  IPython: 8.17.2
  rioxarray: None
  ghostscript: 10.02.0
GMT library information:
  binary version: 6.4.0
  cores: 12
  grid layout: rows
  image layout: 
  library path: F:/Anaconda3/envs/GeoTable/Library/bin/gmt.dll
  padding: 2
  plugin dir: F:/Anaconda3/envs/GeoTable/Library/bin/gmt_plugins
  share dir: F:/Anaconda3/envs/GeoTable/Library/share/gmt
  version: 6.4.0

Remove annotated frame from the image for the remote dataset "GSHHG Global Earth Mask"

This is related to the comment at GenericMappingTools/pygmt#2728 (comment) by @seisman.

Compared to the images of the other remote datasets, the image of the GSHHG Global Earth Mask remote dataset has a fancy frame and annotations (please see https://www.generic-mapping-tools.org/remote-datasets/). This does not look well and is inconsistent. Thus it is suggested to update this image with a version without the annotated fancy frame.

Horizontal striping in earth_relief_30s?

There are horizontal lines in offshore area. I think it is an error in the processing.
Earth_30s

This is 15s without those lines.
Earth_15s

gmt grdimage @earth_relief_30s -png Earth_30s -I -RFK+r1 -Baf
gmt grdimage @earth_relief_15s -png Earth_15s -I -RFK+r1 -Baf

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.