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

CDL dataset error #423

Closed
nilsleh opened this issue Feb 21, 2022 · 3 comments · Fixed by #424
Closed

CDL dataset error #423

nilsleh opened this issue Feb 21, 2022 · 3 comments · Fixed by #424
Labels
datasets Geospatial or benchmark datasets
Milestone

Comments

@nilsleh
Copy link
Collaborator

nilsleh commented Feb 21, 2022

When calling ds = CDL(root, download=True), the following error occurs: rasterio._err.CPLE_AppDefinedError: The transformation is already "north up" or a transformation between pixel/line and georeferenced coordinates cannot be computed for ./data/cdl/2020_30m_cdls.tif.ovr. There is no affine transformation and no GCPs. Specify transformation option SRC_METHOD=NO_GEOTRANSFORM to bypass this check.
I think this occurs because filename_glob = "*_30m_cdls.*" also picks up the other files such as _30m_cdls.tif.ovr which are part of the dataset.

@calebrob6
Copy link
Member

Does changing filename_glob = "*_30m_cdls.tif" fix it?

@nilsleh
Copy link
Collaborator Author

nilsleh commented Feb 21, 2022

Yes, but the documentation of RasterDatasetstates that file extension should not be included.

@adamjstewart
Copy link
Collaborator

We should probably include it in this case, we had to do the same thing for CDL unfortunately. See #139 for a more general discussion on whether or not it's possible to avoid this hack.

@adamjstewart adamjstewart added this to the 0.2.1 milestone Feb 21, 2022
@adamjstewart adamjstewart added the datasets Geospatial or benchmark datasets label Feb 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
datasets Geospatial or benchmark datasets
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants