Skip to main content
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
2 votes
0 answers
68 views

How to optimize NetCDF files and dask for processing long-term climataological indices with xclim (ex. SPI using 30-day rolling window)?

I am trying to analyze the 30 day standardized precipitation index for a multi-state range of the southeastern US for the year 2016. I'm using xclim to process a direct pull of gridded daily ...
helpmeplease's user avatar
0 votes
0 answers
25 views

Introducing new dimension in xarray apply_ufunc

There has been at least one other question regarding the introduction of new dimensions in the output of xarray.apply_ufunc; I have two problems with this answer: First, I feel like the answer avoids ...
derM's user avatar
  • 13.8k
0 votes
0 answers
56 views

Coarsening the resolution of a xarray dataset

Very new to python! I am trying to model bottom water temperatures over time and need to reduce the resolution of my model from 1/20º to 1º. My ultimate goal is to map this and select specific grid ...
Alexis's user avatar
  • 1
1 vote
2 answers
82 views

Convert existing dataset to rioxarray object

I have a dataset that I need to convert into a rioxarray dataset so I can use regridding features but I can't work out how to convert an already existing xarray object to rioxarray. Unfortunately I ...
thefrollickingnerd's user avatar
0 votes
1 answer
62 views

how to quickly pull values from an xarray using indices

I'm working in a Jupyter Notebook using Python 3.12. I have a 2D xarray (in reality, it's 3D, but we can treat it as 2D). I want to pull out the values based on indices I acquire elsewhere, and then ...
Kas Knicely's user avatar
3 votes
0 answers
84 views

How to drop rows with a boolean mask in xarray/dask without .compute() blowing up memory?

I’m trying to subset a large xarray.Dataset backed by Dask and save it back to Zarr, but I’m running into a major memory problem when attempting to drop rows with a boolean mask. Here’s a minimal ...
Gary Frewin's user avatar
0 votes
0 answers
42 views

Adding global attributes to existing netCDF file in Xarray

I have netCDF files of oceanographic data processed in Python, that I'd like to update the global attributes of (i.e., add the same attributes to a bunch of files). Tried doing it in Xarray per their ...
Kurt's user avatar
  • 1
0 votes
1 answer
113 views

How can I concatenate 10 netcdf files along the time axis, while also retaining the attributes of each individual file

I am trying to concatenate 10 netCDF files that are output files from a software named Ichthyop. Each of the files is a result of a lagrangian simulation of particles drifting in the Eastern ...
Yotam Ben Saadon's user avatar
0 votes
0 answers
49 views

How to properly use joblib files in Dask?

from joblib import load ntrees_16_model = load(r"ntrees_quantile_16_model_watermask.joblib") ntrees_50_model = load(r"ntrees_quantile_50_model_watermask.joblib") ntrees_84_model = ...
Adriano Matos's user avatar
0 votes
1 answer
58 views

Extreme trends in GSL (Growing Season Length) due to missing years in ERA5-Land based calculation

I calculated the Growing Season Length (GSL) index for the 1950–2023 period in Turkey using ERA5-Land daily mean temperature data. According to the definition: First, find the first occurrence of at ...
ibrahimin's user avatar
1 vote
1 answer
80 views

How to reduce xarray.coarsen with majority vote?

I'm currently trying to resample a large geotiff file to a coarser resolution. This file contains classes of tree species (indicated by integer values) at each pixel, so I want to resample each block (...
dtm34's user avatar
  • 13
0 votes
1 answer
66 views

High RAM usage when using Datashader with dasked xarray

I have a dasked xarray which is about 150k x 90k with chunk size of 8192 x 8192. I am working on a Window virtual machine which has 100gb RAM and 16 cores. I want to plot it using the Datashader ...
Nanoputian's user avatar
0 votes
0 answers
57 views

Convert wrfout to netcdf

I use Python version 3.9.18 to reading wrfout files (name like: wrfout_d02_2020-01-01_00:00:00) and get T2, Q2, PSFC, U10, V10, ACSWDNB variables and combine all days in the month to a output netcdf ...
rock0789's user avatar
0 votes
1 answer
84 views

What is the meaning of Data variables: *empty* in working with .nc file?

I had the task of analyzing a .nc file. I have not worked with it before, so I did some research online and found some codes. I was exploring the dataset. I tried: I am using Debian 12, Python3 and ...
Njoku Okechukwu Valentine's user avatar
0 votes
0 answers
53 views

Combing two .nc files with different dimensions using Icechunk, Virtualizarr, and Xarray

My overall goal is the set up a virtual dataset of ERA5 data using Icechunk. As a smaller test example, I'm trying to pull all the data located in the 194001 ERA5 folder. I've been mostly able to ...
Kieran Bartels's user avatar

15 30 50 per page
1
2 3 4 5
164
Morty Proxy This is a proxified and sanitized view of the page, visit original site.