-
Notifications
You must be signed in to change notification settings - Fork 177
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
Data without embedded projection throws exception when reprojected on load() #224
Comments
That's one we don't have a test for. This seems to work though: albers_grid = dc.load(product='dsm1sv10', x=(149.07, 149.17), y=(-35.25, -35.35),
output_crs='EPSG:3577', resolution=(-25,25)) |
Thanks for that test Simon. Glad to know it's not as widespread a problem as I first suspected. Also, my bad for not including version/runtime information. I can confirm that it fails with the latest stable release and module available on the NCI. $ module load agdc-py3-prod
$ datacube --version
Data Cube, version 1.3.2
$ which datacube
/g/data/v10/public/modules/agdc-py3/1.3.2/bin/datacube >>> import datacube
>>> datacube.__version__
'1.3.2'
>>> datacube.__path__
['/g/data/v10/public/modules/agdc-py3/1.3.2/lib/python3.6/site-packages/datacube'] |
It looks to only occur for reading formats which rasterio can't read the projection, and has to fall back to the product definition to determine a CRS. |
When I run
Expect
I expect to receive a reprojected DataArray.
Instead
I get the following error:
It looks like somewhere along the way the read window is being replaced with a rasterio.Band object.
The text was updated successfully, but these errors were encountered: