Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options questions only not deleted user 168914

xarray is a Python module for working with N-dimensional arrays

0 votes
1 answer
4k views

Create one NetCDF file from multiple NetCDF files using Python [closed]

I am downloading climate data in NetCDF format. For each variable (e.g. 'precipitation'), I need to merge 9 NetCDFs, each belonging to an unique climate model. Each NetCDF has the same size (time, lat …
CrossLord's user avatar
  • 215
1 vote
2 answers
791 views

Add projection to rioxarray dataset in Python

Data variable: lon_bnds # load netcdf with xarray dset = xr.open_dataset(netcdf_fn) print(dset) # add projection system to nc dset = dset.rio.write_crs("EPSG:4326", inplace=True) # mask CMIP6 data with …
CrossLord's user avatar
  • 215
3 votes
1 answer
2k views

How to add a band to xarray dataset using rioxarray

I have two datasets, both rasters, which I would like to combine into 1 raster. This should not be difficult, but I'm having a hard time.. Both have the same extent/resolution etc. One raster has 231 …
CrossLord's user avatar
  • 215