Skip to content
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

Sensitivity of grid spacing #714

Open
pvanlaake opened this issue Oct 9, 2024 · 0 comments
Open

Sensitivity of grid spacing #714

pvanlaake opened this issue Oct 9, 2024 · 0 comments

Comments

@pvanlaake
Copy link

pvanlaake commented Oct 9, 2024

In #700 (comment) opening the file generates the GDAL error that the latitude grid is not evenly spaced. Looking at the raw latitude values that is indeed the case:

unique(abs(diff(diff(hu[["lat"]]$values))))  # Using package ncdfCF
# [1] 1.000000e-05 3.552714e-15 0.000000e+00 1.000000e-05 7.105427e-15 1.000000e-05

The largest difference between the latitude spacing in meters thus works out to be about:

 20000 / 180 * 1.e-05 * 1000  # 20,000km from pole to pole
# [1] 1.111111

That is about half the ensemble accuracy of the WGS 84 datum that this data is based upon, and with a cell separation of 20000 / 256 = 78.125 km it seems more of a spurious rounding error rather than an irregular spacing.

This is no doubt an issue buried deep in GDAL, but shouldn't the spacing assessment of geodetic coordinates be informed by - at the very least - datum (or ellipsoid) properties?

@pvanlaake pvanlaake closed this as not planned Won't fix, can't repro, duplicate, stale Oct 9, 2024
@pvanlaake pvanlaake reopened this Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant