-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update service to support MUR collection #8
Comments
First attempt at converting a MUR image resulted in an error that still needs investigating.
|
@voxparcxls was able to replicate the same error shown above. Also testing with Measure data. |
MEaSUREs data ssh_grids_v2205_1992101012.nc was converted successfully per @voxparcxls |
Re. the error shown above -
I don't have a work-around or quick fix for this. The RioXArray code seems a bit naive in its attempt to establish "proper" no-data values - it does not work for time/date/time-delta data, and it leaves me a bit concerned about what other NetCDF/CF data might cause problems. This is perhaps overstating the problem, but it is a concern. |
A possible fix to RioXArray might be to revise the _ensure_nodata_dtype method (see comment above with failing implementation):
This may not be sufficient for all cases, but gets past the issues with date, time and timedelta data. Also, it is not clear this is sufficient for all downstream uses of the RioXArray data object for date, time and timedelta data, but works for Net2Cog. |
This code change in rioxarray does work. So this seems like a shorter work around than reprojecting data, though like you said it might not be for every case. BUT the .tif has issues, the map gets blocked out. Maybe some incompatibility.. Patch for net2cog: Here's Cog generation from a couple of files. Previously errored for MUR netcdf generates TIF.
|
I wonder if that is just a problem displaying the tiff file? I have one that looks like that in mac's preview, but opens fine in QGIS. Even simply running file on it shows issues, like a negative width:
|
Like the inverted image, this is an issue with using a basic tiff viewer (MacOS Preview) on these geotiff files, and not evident in GIS viewers (QGIS). I agree, however, that something is fishy here. I'm suspicious that there is a mask layer or setting with improper values (fill?), or something like that. And curious if it is specific to COG settings, as I don't see this on plain gdal_translate to GTiff. |
Add support for
MUR-JPL-L4-GLOB-v4.1
collection and provide sample output to DAS teamThe text was updated successfully, but these errors were encountered: