NotGeoreferencedWarning while doing .compute() on dask xarray #223
-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
I think the fundamental issue here is that the level 2 data in this collection aren't geo-referenced in a way that's (easily) consumable by GDAL / rasterio / stackstac. The example notebook has an example of loading up a single file's worth of data. Notice that the latitude and longitude are coordinates with dimensions You might be able to apply that multiple times and then concatenate the results: a = xr.open_dataset(fsspec.open(items[0].assets["no2"].href).open(), engine="h5netcdf", group="PRODUCT")
b = xr.open_dataset(fsspec.open(items[1].assets["no2"].href).open(), engine="h5netcdf", group="PRODUCT")
xr.combine_by_coords([a, b], join="exact") But this might be pretty slow. One quick note: stackstac operates completely off the STAC metadata. So it's somehow able to construct that DataArray (I think by assuming it's in epsg:4326; I'm not sure that's correct). But when you actually go to read the data with a |
Beta Was this translation helpful? Give feedback.
I think the fundamental issue here is that the level 2 data in this collection aren't geo-referenced in a way that's (easily) consumable by GDAL / rasterio / stackstac.
The example notebook has an example of loading up a single file's worth of data. Notice that the latitude and longitude are coordinates with dimensions
(time, scanline, ground_pixel)
. They aren't given by a typical GDAL transform.You might be able to apply that multiple times and then concatenate the results: