Skip to main content

All Questions

Tagged with
3 votes
1 answer
411 views

How to write CRS info to NetCDF in a way QGIS can read? (Python/Xarray)

I have a NetCDF file I have subset by geometry and time, and now I need to save it as a new NetCDF file. The original file does not have the CRS set, thus I am setting it in this one. The problem is ...
MKF's user avatar
  • 571
0 votes
1 answer
66 views

QGIS crashes with "bad_alloc" when processing NetCDF file using xarray

I need to merge multiple NetCDF files in a QGIS plugin I am developing. I'm using xarray to do so, however, QGIS crashes with the error "Critical: Caught unhandled std::exception: std::bad_alloc&...
Francis Lapointe's user avatar
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
1 vote
1 answer
671 views

QGIS 3.10 - NetCDF created with xarray "is not a valid or recognized data source"

I have a xarray DataSet ds created from a Pandas DataFrame whose info are the following: Dimensions: (lat: 144, lon: 140, year: 9) Coordinates: * year (year) object 1980 1985 ...
umbe1987's user avatar
  • 3,785
6 votes
1 answer
3k views

Using Rioxarray / QGIS Projection

For the past couple weeks I have been trying to view GOES17 data from netCDF files (converted to geotif) in QGIS 3.10 but cannot get the projection to work correctly. I have attempted numerous ...
ba0a2794's user avatar