All Questions
Tagged with xarray open-data-cube
8
questions
1
vote
0
answers
34
views
All-NaN slice encountered when apply xr_phenology function?
I want calculate vegetation phenology from ndvi netcdf dataset, I follow yours tutorials (DEA Australia and DEA Africa) to apply xr_phenology
function , defined here. To avoid killed kernel of my ...
0
votes
1
answer
45
views
Gridworkflow intersection with other spatial objects such as a geodataframe
I am working with a large GridWorkFlow object; I am not able to load all the tiles due to in-memory compute resources (24.00 GB mem 8 CPU) and do not need to either. I am interested in intersecting ...
1
vote
0
answers
100
views
Landsat from Planetary Computer unexpectedly turns up all no data in some regions
Using some code that gathers Landsat 8 collections from Microsoft Planetary Computer into Open Data Cube xarray using a stac search works fine in some regions but in others returns all nan values. ...
0
votes
1
answer
187
views
Plotting Open Data Cube xarray data with two or more measurement parameters in the same axis
How can I plot the two measurement parameters (seasonal cover and permanent water cover) in the same axis as I want to compare them?
I have this code:
#load the cgls product
ds_cgls_builtcover = dc....
2
votes
2
answers
11k
views
How to change certain values in an xarray depending on the coordinates
I have a Data Array with 4, 5 or 6 representing the classes: bare soil, vegetation and water.
cube1 =
<xarray.DataArray 'SCL_20m' (time: 5, y: 3, x: 3)>
array([[[4., 6., 6.],
[4., 4., ...
0
votes
1
answer
378
views
Polygon Drill on Open Data Cube
I face a crucial problem with ODC. I try to do a spatial join with a shapefile (polygon drill). I have followed the following steps:
Read the shapefile and get the first polygon to test
Ensure that ...
1
vote
0
answers
224
views
Loading Open Data Cube data to match a raster with geographic coordinates?
I would like to load a raster from a GeoTIFF file, and then load a time series of data from the Open Data Cube into the same CRS and resolution so I can use the raster as a mask. I can use the raster'...
9
votes
3
answers
17k
views
Mask xarray dataset using a shapefile [closed]
I have used xarray on some satellite data that I'd like to mask it using a shapefile. I have previously been doing this using a combination of PIL, numpy and gdal, but it would be cleaner to do this ...