Skip to content

Testing of new data sets before public release #9

Closed

Description

@PaulWessel

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

Activity

  1. added
    help wanted
    on Dec 24, 2021
  2. Esteban82 commented on Dec 26, 2021

    @Esteban82
    Member

    @paul I could only make maps from the GEBCO grids and look fine.

    For the other grids (geoid,mag,mag4km,vgg,wdmam) I got this message:
    Are those grids available? Or am I doing something wrong?

    gmt grdimage @earth_mag -JW15c -Bg0 -Rd -png geoid
    
    
    grdimage [ERROR]: Libcurl Error: HTTP response code said error
    grdimage [WARNING]: You can turn remote file download off by setting GMT_DATA_UPDATE_INTERVAL to "off"
    grdimage [ERROR]: File /home/federico/.gmt/cache/earth_mag was not found
    grdimage [ERROR]: Cannot find file /home/federico/.gmt/cache/earth_mag
    grdimage [ERROR]: File /home/federico/.gmt/cache/earth_mag was not found
    grdimage [ERROR]: Cannot find file /home/federico/.gmt/cache/earth_mag
    grdimage [ERROR]: File /home/federico/.gmt/cache/earth_mag not found
    [Session gmt (0)]: Error returned from GMT API: GMT_FILE_NOT_FOUND (16)
    
  3. PaulWessel commented on Dec 26, 2021

    @PaulWessel
    ContributorAuthor

    Interesting, it works if we specify a resolution:

    gmt grdimage @earth_mag_06m -JM12c -RFR -B -pdf t

    I will have a look.

  4. Esteban82 commented on Dec 26, 2021

    @Esteban82
    Member

    I have an error with finer resolutions

    
    gmt grdimage @earth_gebco -JM15c -Bg0 -png gebco -R44/50/33/40
    grdblend [NOTICE]: Remote data courtesy of GMT data server test [http://test.generic-mapping-tools.org]
    
    grdblend [NOTICE]: GEBCO Earth Relief at 3x3 arc seconds tiles provided by SRTMGL3 (land only) [NASA/USGS].
    grdblend [NOTICE]:   -> Download 1x1 degree grid tile (earth_gebco_03s_g): N33E044
    grdblend [ERROR]: Libcurl Error: HTTP response code said error
    grdconvert [ERROR]: File /home/federico/.gmt/server/earth/earth_gebco/earth_gebco_03s_g/N33E044.earth_gebco_03s_g.jp2 was not found
    grdconvert [ERROR]: Cannot find file /home/federico/.gmt/server/earth/earth_gebco/earth_gebco_03s_g/N33E044.earth_gebco_03s_g.jp2
    grdblend [ERROR]: ERROR - Unable to convert SRTM file /home/federico/.gmt/server/earth/earth_gebco/earth_gebco_03s_g/N33E044.earth_gebco_03s_g.jp2 to compressed netCDF format
    grdblend [ERROR]: Unable to obtain remote file @N33E044.earth_gebco_03s_g.nc
    grdblend [NOTICE]:   -> Download 1x1 degree grid tile (earth_gebco_03s_g): N33E044
    grdblend [ERROR]: Libcurl Error: HTTP response code said error
    ...
    
    
  5. PaulWessel commented on Dec 26, 2021

    @PaulWessel
    ContributorAuthor

    Thanks, this part is fixed via GenericMappingTools/gmt#6151 but I also have to fix a few things with the server files. Some tiles got labelled N30E300.earth_mag_02m_p.jp2 instead of N30W060.earth_mag_02m_p.jp2 for instance and thus could not be found. But separate from the bug I fixed. For example

    gmt grdimage @earth_faa -JM12c -RFR -B -pdf t

    now works but mag runs into missing filenames which I will fix next.

  6. PaulWessel commented on Dec 26, 2021

    @PaulWessel
    ContributorAuthor

    OK, the mag files should be fine now.

  7. Esteban82 commented on Dec 26, 2021

    @Esteban82
    Member

    In mag there is no data south of -60º. Is it a limitation of the original data?
    In the docs only says that: "This version is observed at sea level over oceanic regions and have no data over land."

    gmt grdimage @earth_mag_06m -JW15c -Bg0 -png mag -Rd

    mag

  8. Esteban82 commented on Dec 26, 2021

    @Esteban82
    Member

    Now I can download the rest of the grids.

    I think that there is typo for the wdmam cpt. Grdimage searchs for earth_wdman.cpt (with N, not M).

    gmt grdimage @earth_wdmam -JW15c -Bg0 -Rd -png wdmam
    
    grdimage [ERROR]: GMT_Read_Data: File not found: earth_wdman.cpt
    
  9. PaulWessel commented on Dec 26, 2021

    @PaulWessel
    ContributorAuthor

    I will check on the 60S issue. The 1s and 3s SRTM tiles issue will take more time and is unresolved.

    I have fixed the wdman.cpt typo. You will need to delete the gmt_data_server.txt file in your .gmt/server directory so it can be downloaded again with the fix. Let me know if that works.

  10. PaulWessel commented on Dec 26, 2021

    @PaulWessel
    ContributorAuthor

    The EMAG2 website only shows maps that stop at 60S and show nothing below 60S. Seems like a cutoff. The upward continued mag4km has data at the poles.

  11. 23 remaining items

  12. PaulWessel commented on Jan 12, 2022

    @PaulWessel
    ContributorAuthor

    A few questions/comments from running grdinfo on the new/updated datasets:

    1. Why do some include the command (e.g., earth_faa) while others do not (e.g., earth_mag)?

    Unclear, but there is a different path since the EMAG etc files are zipped ascii tables that needs some preprocessing first.

    1. For the gebco grids, "GEBCO Compilation Group, 2020 GEBCO 2021 Grid" should be "GEBCO Compilation Group, 2021 GEBCO 2021 Grid". Also, the DOI agrees with that written on their site, but still leads to a 404 error. Is there anything we can do here?

    I have sent a request to the host so I guess we can wait a few days to see if it can get resolved. I have updated the year in the recipe.

    1. Most have a remark that makes it clear how the grid relates to the data source, except earth_faa and earth_vgg (e.g., Obtained by Gaussian Cartesian filtering (111.2 km fullwidth) from /tmp/19294/extend.grd. Should from tmp... be more descriptive?

    I need to make a temp file to extend the data to the poles. I could change extend.grd to the original file name instead.

    1. The earth_synbath and earth_relief preprint citation is 2021 (https://doi.org/10.1002/essoar.10508279.2). Does the remark list 2022 instead because the publish date will change for the final version? If so will the DOI still be the same for the published version and preprint?

    Hm, it is accepted for publication in early 2022 so normally that would mean a 2022 publication year - despite what the preprint says, no?

    1. The year for earth_vgg citation is 2021 but the remark lists 2019 (https://doi.org/10.1016/j.asr.2019.09.011).

    David updates the grids at least once, sometimes twice a year as data continues to come in, but does not publish papers each time. So 2019 is correct but I should add "Version 31" to the titles I think.

  13. PaulWessel commented on Jan 12, 2022

    @PaulWessel
    ContributorAuthor

    For the gridline registered grids, there is often empty space between the map border and grid edge:

    gmt grdimage @earth_synbath_01d_g -R110/140/20/35 -JB125/20/25/45/12c -B -png test_synbath_g
    

    test_synbath_g

    Probably related to recent change of the double-padding removal. I will try to debug this and see why this case gets short-changed.

  14. PaulWessel commented on Jan 12, 2022

    @PaulWessel
    ContributorAuthor

    Since this is a GMT bug, maybe create an issue on the GMT issues site using earth_relief instead?

  15. PaulWessel commented on Jan 12, 2022

    @PaulWessel
    ContributorAuthor

    I will rebuild VGG, FAA but wait on Gebco. I will see if I can learn why mag has no command.

  16. maxrjones commented on Jan 12, 2022

    @maxrjones
    Member

    The PyGMT tests that use the SRTM data are failing with the test server due to tiles not being found. Can you try this to see if it works for you?

    gmt grdcut @srtm_relief_03s_g -R135/136/35/36 -Gtest.nc
    
  17. anbj commented on Jan 12, 2022

    @anbj
    Contributor

    Any plans to include the International Bathymetric Chart of the Southern Ocean (IBCSO) and International Bathymetric Chart of the Arctic Ocean (IBCAO)?
    Or are these included in one of the other data sets?

  18. PaulWessel commented on Jan 12, 2022

    @PaulWessel
    ContributorAuthor

    I forgot to copy over the STRM tiles after I deleted and rebuilt the new earth_relief files... Now fixed.

  19. PaulWessel commented on Jan 12, 2022

    @PaulWessel
    ContributorAuthor

    Any plans to include the International Bathymetric Chart of the Southern Ocean (IBCSO) and International Bathymetric Chart of the Arctic Ocean (IBCAO)?
    Or are these included in one of the other data sets?

    I thought they are in the GEBCO grid but perhaps not? Anyway, they are not global grids.

  20. anbj commented on Jan 12, 2022

    @anbj
    Contributor

    Any plans to include the International Bathymetric Chart of the Southern Ocean (IBCSO) and International Bathymetric Chart of the Arctic Ocean (IBCAO)?
    Or are these included in one of the other data sets?

    I thought they are in the GEBCO grid but perhaps not? Anyway, they are not global grids.

    I think you are right; they're included in GEBCO.

  21. PaulWessel commented on Jan 12, 2022

    @PaulWessel
    ContributorAuthor

    FAA and VGG files updated on test server

  22. maxrjones commented on Jan 20, 2022

    @maxrjones
    Member

    @GenericMappingTools/pygmt-maintainers @GenericMappingTools/gmt-maintainers, the plan is to update earth_relief and add the new datasets to the server on Jan 27, 2022.

  23. Esteban82 commented on Feb 2, 2022

    @Esteban82
    Member

    I have a problem with @earth_wdmam_02m. I got the below message. It works with other grids and resolutions (03m, 04m, 05m).

    mt grdimage @earth_wdmam_02m -Rd -png mpa
    grdimage [ERROR]: Libcurl Error: HTTP response code said error
    grdimage [WARNING]: You can turn remote file download off by setting GMT_DATA_UPDATE_INTERVAL to "off"
    grdimage [ERROR]: File /home/federico/.gmt/cache/earth_wdmam_02m was not found
    grdimage [ERROR]: Cannot find file /home/federico/.gmt/cache/earth_wdmam_02m
    grdimage [ERROR]: File /home/federico/.gmt/cache/earth_wdmam_02m was not found
    grdimage [ERROR]: Cannot find file /home/federico/.gmt/cache/earth_wdmam_02m
    grdimage [ERROR]: File /home/federico/.gmt/cache/earth_wdmam_02m not found
    [Session gmt (0)]: Error returned from GMT API: GMT_FILE_NOT_FOUND (16)
    
  24. Esteban82 commented on Feb 2, 2022

    @Esteban82
    Member

    Is it possible that the 02m grid doesn't exist? And that the original version is 03m?

  25. PaulWessel commented on Feb 2, 2022

    @PaulWessel
    ContributorAuthor

    Correct, there is no such thing as 02m. I see our docs is in error - will fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

help wanted

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions