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:300 votes
0 answers
34 views
Combing two .nc files with different dimensions using Icechunk, Virtualizarr, and XarrayMy 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:362 votes
1 answer
47 views
Storing Xarray.Datasets in single Pandas.DataFrame cellsI 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:480 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:010 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:060 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:000 votes
0 answers
54 views
Xarray apply function to every element of datasetI 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:311 vote
0 answers
23 views
Xarray combine_by_coords runs OOM when loading several dimensionsI 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:390 votes
1 answer
31 views
Assign new dimension to xarray.Dataset using existing coordinatesI 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:310 votes
0 answers
35 views
Reduce memory usage in CDO collgrid commandI 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:590 votes
0 answers
40 views
Error in saving a very large xarray dataset to zarr in pythonI 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:582 votes
1 answer
54 views
multidimensional coordinate transform with xarrayHow 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:260 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:550 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:16RetroSearch 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