A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://stackoverflow.com/questions/tagged/python-xarray below:

Newest 'python-xarray' Questions - Stack Overflow

0 votes

1 answer

66 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 ...

asked Jul 21 at 8:30

0 votes

0 answers

34 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 ...

asked Jul 16 at 18:36

2 votes

1 answer

47 views

Storing Xarray.Datasets in single Pandas.DataFrame cells

I have an existing DataFrame with metadata. I am now trying to add a column with the data. For each row in the DataFrame I want to add a subset of my xarray.DataSet. However, pandas seems to try and ...

asked Jul 9 at 21:48

0 votes

0 answers

18 views

Saving DataArray through to_netcdf loses coordinates?

I am using xarray and rioxarray to compute values from an existing dataset, the existing dataset as band like red, blue and green so I have something like this: import xarray as xr dataset: xr....

asked Jul 9 at 8:01

0 votes

0 answers

17 views

How do I upload a large Dask array to S3 in chunks using rasterio?

I have a very large Dask array containing geospatial information. I need to upload this array as a TIF file to an S3 bucket, but I cannot afford to load this raster in memory or save it to disk: I'd ...

asked Jul 8 at 13:06

0 votes

1 answer

32 views

Why intake_xarray NetCDFSource seems to not use user input parameters?

I have prepared a catalog.yml with this content: metadata: description: Sample catalog information. version: 1 plugins: source: - module: intake_xarray sources: this_source: args: ...

asked Jul 4 at 13:00

0 votes

0 answers

54 views

Xarray apply function to every element of dataset

I currently have to do some calculations on a netcdf dataset. For this, I have to apply a function to each non-NaN element. Here is my current approach: import xarray as xr def calc_things(wind_speed)...

asked Jun 13 at 13:31

1 vote

0 answers

23 views

Xarray combine_by_coords runs OOM when loading several dimensions

I have a script to load individual files into xarray for a custom data format which works fine when loading in individual files, however the moment I try to either load using open_mfdataset() or ...

asked Jun 4 at 14:39

0 votes

1 answer

31 views

Assign new dimension to xarray.Dataset using existing coordinates

I have an xarray.Dataset that looks like this, which is available here: https://psl.noaa.gov/thredds/dodsC/Datasets/NARR/Dailies/monolevel/acpcp.1979.nc: <xarray.Dataset> Dimensions: ...

asked May 30 at 16:11 How to disable automatic groupby widget in hvplot?

hvplot has a groupby parameter that lets you pick what variables to group the output by. This results in a widget you use to select the data subset you want to plot. If groupby is not specified, ...

asked May 30 at 15:31

0 votes

0 answers

35 views

Reduce memory usage in CDO collgrid command

I have 78 netcdf files each around 17MB, with shape (time=1, x=2048, y=2048) to be merged spatially. The single timestep is shared for all 78 files. The collgrid merge command below was able to ...

asked May 25 at 23:59

0 votes

0 answers

40 views

Error in saving a very large xarray dataset to zarr in python

I have global daily radiation data for 19 years. It is divided into one netCDF file for every day (so around 7000 files). I am loading all the files together as a single xarray dataset. This takes ...

asked May 13 at 11:58

2 votes

1 answer

54 views

multidimensional coordinate transform with xarray

How to convert multidimensional coordinate to standard coordinate in order to unify data when using xarray for nc data: import xarray as xr da = xr.DataArray( [[0, 1], [2, 3]], coords={ ...

asked May 12 at 13:26

0 votes

0 answers

43 views

Why can't I use DataArray.to_zarr() to save a NetCDF format file as Zarr format?

I'm not sure if it's a version compatibility issue either. I've spent a lot of time trying but still can't get it to work. Please help me!The codes and mistakes are as follows: [in]: print(xr....

asked May 12 at 8:55

0 votes

0 answers

30 views

MetPy "interpolate_to_isosurface" results in "IndexError: Unlabeled multi-dimensional array cannot be used for indexing: pressure_level"

I need help on the usage of MetPy's interpolate_to_isosurface function (link). My goal was to interpolate a gridded meteorological dataset, such that its vertical coordinate is transformed from ...

asked May 7 at 18:16

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4