SlideRuleEarth / sliderule

Server and client framework for on-demand science data processing in the cloud
https://slideruleearth.io
Other
27 stars 12 forks source link

MeritDEM getSamples does not take into account CRS transform #265

Open jpswinski opened 1 year ago

jpswinski commented 1 year ago

Related to #263

The MeritDEM implements its own getSamples function because of the custom HDF5 format the DEM is stored in. But this means that when the supplied coordinates are not in the same CRS as the the MeritDEM, there is no transform applied. Another way to say it is that the lat and lon supplied to the MeritDEM are assumed to be in the CRS of the MeritDEM and it is incumbent on the caller to perform the transform.

Since ICESat-2 is the primary source of coordinates for sampling the MeritDEM, this is not currently an issue because ICESat-2 and the MeritDEM are in the same CRS.