Skip to content

NaN in the remote earth relief files #2920

Closed

Description

@seisman

Run

gmt grd2xyz -R116/120/34/39 @earth_relief_30s > data.txt

and you'll see some NaNs in data.txt. Is it a bug?

Activity

  1. PaulWessel commented on Mar 16, 2020

    @PaulWessel
    Contributor

    Known problem in @earth_relief_15s and Scripps is working on a new version. I will check with them on status. Once fixed we will recreate the lower resolutions.

  2. added
    bug
    on Mar 16, 2020
  3. PaulWessel commented on Mar 16, 2020

    @PaulWessel
    Contributor

    So version 2.1 was placed on their ftp on Feb 10 but they did not let us know and we did not check. We may wish to periodically check that site.
    I am working on rebuilding the files now.

  4. PaulWessel commented on Mar 16, 2020

    @PaulWessel
    Contributor

    Not smooth sailing yet. Will need to revisit some of the resolutions later:

    pwessel@macnut:~/GMTdev/gmtserver-admin/scripts-> srv_downsampler.sh earth_relief.recipe
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100 6259M  100 6259M    0     0  9370k      0  0:11:24  0:11:24 --:--:-- 13.5M
    Convert SRTM15+V2.1.nc to earth_relief_15s.grd=ns
    Down-filter SRTM15+V2.1.nc to earth_relief_30s.grd=ns
    Down-filter SRTM15+V2.1.nc to earth_relief_01m.grd=ns
    Down-filter SRTM15+V2.1.nc to earth_relief_02m.grd=ns
    Down-filter SRTM15+V2.1.nc to earth_relief_03m.grd=ns
    grdfilter [ERROR]: gmt_M_err_trap: -127
    grdfilter (gmt_api.c:4975(api_export_grid)): NetCDF: Bad chunk sizes. [earth_relief_03m.grd=ns]
    [Session gmt (0)]: Error returned from GMT API: GMT_GRID_WRITE_ERROR (19)
    [Session gmt (0)]: Error returned from GMT API: GMT_GRID_WRITE_ERROR (19)
    [Session gmt (0)]: Error returned from GMT API: GMT_GRID_WRITE_ERROR (19)
    Down-filter SRTM15+V2.1.nc to earth_relief_04m.grd=ns
    grdfilter [ERROR]: gmt_M_err_trap: -127
    grdfilter (gmt_api.c:4975(api_export_grid)): NetCDF: Bad chunk sizes. [earth_relief_04m.grd=ns]
    [Session gmt (0)]: Error returned from GMT API: GMT_GRID_WRITE_ERROR (19)
    [Session gmt (0)]: Error returned from GMT API: GMT_GRID_WRITE_ERROR (19)
    [Session gmt (0)]: Error returned from GMT API: GMT_GRID_WRITE_ERROR (19)
    Down-filter SRTM15+V2.1.nc to earth_relief_05m.grd=ns
    grdfilter [ERROR]: gmt_M_err_trap: -127
    grdfilter (gmt_api.c:4975(api_export_grid)): NetCDF: Bad chunk sizes. [earth_relief_05m.grd=ns]
    [Session gmt (0)]: Error returned from GMT API: GMT_GRID_WRITE_ERROR (19)
    [Session gmt (0)]: Error returned from GMT API: GMT_GRID_WRITE_ERROR (19)
    [Session gmt (0)]: Error returned from GMT API: GMT_GRID_WRITE_ERROR (19)
    Down-filter SRTM15+V2.1.nc to earth_relief_06m.grd=ns
    Down-filter SRTM15+V2.1.nc to earth_relief_10m.grd=ns
    Down-filter SRTM15+V2.1.nc to earth_relief_15m.grd=ns
    Down-filter SRTM15+V2.1.nc to earth_relief_20m.grd=ns
    Down-filter SRTM15+V2.1.nc to earth_relief_30m.grd=ns
    Down-filter SRTM15+V2.1.nc to earth_relief_01d.grd=ns
    
  5. PaulWessel commented on Mar 16, 2020

    @PaulWessel
    Contributor

    All files updated and uploaded to gmtserver. There are no longer any NaNs. However, brook says there is an issue at 80N that is yet to be addressed. Depending on access time I expect tests will eventually start failing as the PS of all earth_relief_* plots will differ. We can refresh these in a few days.

  6. seisman commented on Mar 16, 2020

    @seisman
    MemberAuthor

    The gmtserver update scripts stilll doesn't work as expected. It gives the following error:

    error: insufficient permission for adding an object to repository database .git/objects
    fatal: failed to write object
    fatal: unpack-objects failed
    

    I've run git pull manually to update the gmtserver-admin repository on the GMT server.

  7. seisman commented on Mar 16, 2020

    @seisman
    MemberAuthor

    Two things to be done:

    • Update the earth_relief_60m.grd file
    • Upload the new earth relief data to the FTP server
  8. PaulWessel commented on Mar 16, 2020

    @PaulWessel
    Contributor

    OK, the earth_relief_60m.grd is a legacy duplicate of earth_relief_01d.grd. I guess we need to keep that going forward.. Done
    ftp: Done.

  9. seisman commented on Mar 17, 2020

    @seisman
    MemberAuthor

    This is the information when downloading earth relief file.

    gmt [NOTICE]: earth_relief_30m: Download file from the GMT data server [data set size is 363K].
    gmt [NOTICE]: Earth Relief at 30x30 arc minutes obtained by Gaussian Cartesian filtering (55 km fullwidth) of SRTM15+V2.1 [Tozer et al., 2019]20m.
    

    What does the20m mean at the end of the second line?

  10. PaulWessel commented on Mar 17, 2020

    @PaulWessel
    Contributor

    Hm, will check. Recently changed those lines to use GMT_Report...

  11. PaulWessel commented on Mar 17, 2020

    @PaulWessel
    Contributor

    The string printed out is listed verbatim in gmt_remote.h and has no trailing 20m. However, I note the "20m" is the very next structure element's first string. This is a static struct with constants. Is this from the server or from you running a command locally. Most of these strings increased by 2 characters (version number) - try wiling and rebuilding and do the download again.

  12. PaulWessel commented on Mar 17, 2020

    @PaulWessel
    Contributor

    Can confirm I get the same message. Now trying Xcode debug.

  13. PaulWessel commented on Mar 17, 2020

    @PaulWessel
    Contributor

    OK, that string is 128 char and that is the size of our char string, So the \0 is lost. Fixing now.

  14. seisman commented on Mar 17, 2020

    @seisman
    MemberAuthor

    We also need to update the original PS files of some failing tests.

  15. PaulWessel commented on Mar 17, 2020

    @PaulWessel
    Contributor

    OK, fine to leave this open until then. I will force redownload to my machine and run tests now.

  16. PaulWessel commented on Mar 17, 2020

    @PaulWessel
    Contributor

    OK to close now?

  17. mithun890 commented on Apr 21, 2020

    @mithun890

    i downloaded the the topo30.grd file,now where should i keep this because i am getting that no such file exists

  18. joa-quim commented on Apr 21, 2020

    @joa-quim
    Member

    @mithun890 don't use this thread to ask questions. We have a forum for that.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions