Skip to main content

All Questions

Tagged with
0 votes
0 answers
138 views

Low performance when writing a large xarray.DataArray with dask

I'm preprocessing HMASR data, the data contains multiple data files with format of netcdf, and each tile (1X1 degree) is a nc file. So I read it through xarray open_mfdataset() to mosaic it spatially ...
孟泽楷's user avatar
0 votes
0 answers
52 views

Python, colorize raster randomly avoiding same color for adjacent cells

I'm processing GeoTIFF rasters with python and xarray. The file contains some cells with different values. It looks like that: There are about 100 different values in the file and each value needs to ...
riuss's user avatar
  • 15
2 votes
1 answer
249 views

Is there a way to limit the distance of rioxarray's interpolate_na()

I'm trying to run something similar to gdal's fillnodata command line tool in Xarray. Xarray has interpolate_na() that comes with an optional parameter limit where you can limit the number of ...
JWB's user avatar
  • 604
1 vote
1 answer
422 views

Changes to GDAL NetCDF driver between 3.2 and 3.4

I am preparing data in python using xarray and rioxarray, then exporting to NetCDF. On one machine with micha@RMS:Kinneret$ gdalinfo --version GDAL 3.2.2, released 2021/03/05 the extent of the ...
Micha's user avatar
  • 15.7k
0 votes
0 answers
540 views

Different elevation values between using rasterio, xarray, rioxarray, gdal and QGIS

I am trying to extract elevation values from a DEM raster under array format by using some packages (rasterio, xarray, rioxarray, and gdal). However, they seemed to give me a different results from ...
Happier's user avatar
  • 67
3 votes
0 answers
200 views

Extract time series for features from large masked xarrays

I have done this before with GDAL and Python, but was hoping to be able to use xarray to scale things up. Let's say I have three datasets: 1. A large multiband geotiff where each band is a different ...
Jose's user avatar
  • 3,342
5 votes
1 answer
2k views

GDAL crashes with segmentation fault when trying to open a NetCDF subdataset with time dimension

I am trying to create a NetCDF file which is compliant with the NetCDF Conventions CF-1.4. The dimensions of the file are (TIME, Y, X) where Y and X are the polar stereographic grid. The file that I ...
ajt's user avatar
  • 91