We are using the latest release of thredds-docker (version 5.5), based on this commit, I assume it is version 5.6.0 or 5.6.1-SNAPSHOT. I was not able to identify the version in the container.
What went wrong?
Using thredds-docker, when subsetting a netcdf that has non-zero false_easting and false_norting and units m (https://epsg.io/3416), e.g. NetcdfSubset in catalog, the units for false_easting and falsenorthing get converted to km. But the projection{x|y}_coordinates (and specifications in the esri_pe_string for the data variables) are still in m.
Definition of projection and projection coordinates in the original file:
If you have an example file that you can share, please attach it to this issue.
If so, may we include it in our test datasets to help ensure the bug does not return once fixed?
Note: the test datasets are publicly accessible without restriction.
Yes
Code of Conduct
[X] I agree to follow the UCAR/Unidata Code of Conduct
Versions impacted by the bug
We are using the latest release of thredds-docker (version 5.5), based on this commit, I assume it is version 5.6.0 or 5.6.1-SNAPSHOT. I was not able to identify the version in the container.
What went wrong?
Using thredds-docker, when subsetting a netcdf that has non-zero false_easting and false_norting and units m (https://epsg.io/3416), e.g. NetcdfSubset in catalog, the units for false_easting and falsenorthing get converted to km. But the projection{x|y}_coordinates (and specifications in the esri_pe_string for the data variables) are still in m.
Definition of projection and projection coordinates in the original file:
Values after subsetting (with projection coordinates added again for completeness):
According to CF, as also stated here https://github.com/Unidata/netcdf-java/blob/a7c05d8a2799a3a87982e18c399eb1d5de25b506/cdm/core/src/main/java/ucar/nc2/dataset/transform/AbstractTransformBuilder.java#L33-L37, the unit of false_easting and falsenorting should be the same unit as the projection{x|y}_coordinates. Them not beeing the same causes the data to be displayed horizontally shifted, when opening the data for example in Panoply.
Original:
Subsetted:
Could it be related to this line? https://github.com/Unidata/netcdf-java/blob/a7c05d8a2799a3a87982e18c399eb1d5de25b506/cdm/core/src/main/java/ucar/nc2/dataset/transform/AbstractTransformBuilder.java#L80
Relevant stack trace
No response
Relevant log messages
No response
If you have an example file that you can share, please attach it to this issue.
If so, may we include it in our test datasets to help ensure the bug does not return once fixed? Note: the test datasets are publicly accessible without restriction.
Yes
Code of Conduct