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

NetCDF result download comes without CRS #54

Closed
jonathom opened this issue Nov 27, 2020 · 5 comments
Closed

NetCDF result download comes without CRS #54

jonathom opened this issue Nov 27, 2020 · 5 comments

Comments

@jonathom
Copy link
Member

Upon downloading results in NetCDF format, no CRS is specified in the file. Is this intentional?
The files appear to be in the corresponding WGS84 UTM zone, which can be assigned later, but this appears not very secure to me.

Example ProcessGraph:
{ "process_graph": { "1": { "process_id": "load_collection", "arguments": { "id": "TERRASCOPE_S2_NDVI_V2", "spatial_extent": { "west": 5.224096231078771, "south": 50.69038597219307, "east": 5.311809621280062, "north": 50.72560528417654 }, "temporal_extent": [ "2020-10-08T00:00:00Z", "2020-10-22T23:59:59Z" ], "bands": [ "NDVI_10M" ] } }, "2": { "process_id": "reduce_dimension", "arguments": { "reducer": { "process_graph": { "1": { "process_id": "min", "arguments": { "data": { "from_parameter": "data" } }, "result": true } } }, "dimension": "t", "data": { "from_node": "1" } } }, "3": { "process_id": "save_result", "arguments": { "data": { "from_node": "2" }, "format": "NETCDF" }, "result": true } } }

@jdries
Copy link
Contributor

jdries commented Nov 27, 2020

Apparently this is not directly supported in xarray:
pydata/xarray#2288
There's talk of a workaround, (setting crs scalar coordinate), need to figure out what it is exactly.

@jdries
Copy link
Contributor

jdries commented Nov 27, 2020

@jonathom
Copy link
Member Author

I was wrong - CRS is set as global attribute of the NetCDF file. This just doesn't seem to be recognized automatically by e.g. QGIS. The projection is therefore accessible through (QGis) properties/information and can then be set manually.

@RichardScottOZ
Copy link

Thanks for the tip @jonathom

@jdries
Copy link
Contributor

jdries commented Jun 23, 2021

We're rolling out a new netcdf implementation on dev that encodes the crs in a way that at least GDAL understands.

@jdries jdries closed this as completed Jun 23, 2021
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

3 participants