2,368 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
1
answer
82
views
HTTPError: 400 Client Error: Bad Request for url. Plot an Ensemble of CMIP6 Climate Projections — C3S Training
I am following the code from this tutorial.
https://ecmwf-projects.github.io/copernicus-training-c3s/projections-cmip6.html
When I type:
# DOWNLOAD DATA FOR HISTORICAL PERIOD
c = cdsapi.Client(url=...
0
votes
0
answers
136
views
Convert NETCDF files into TIF files
I’m creating a Python program that converts NetCDF files into GeoTIFFs, allowing the user to select the variable and time step using a Tkinter interface.
The conversion works, but I’m having a ...
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 ...
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 ...
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 ...
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 ...
0
votes
0
answers
77
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)...
0
votes
0
answers
51
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 ...
1
vote
1
answer
176
views
Reading netCDF file with data not on a grid
I am trying to convert portions of a netCDF (.nc) file into a .csv and I am having some issues when I try and combine the portions I separated out into one matrix. This is the first time I have ever ...
1
vote
2
answers
154
views
How to extract OPeNDAP data for a single location in R?
I am trying to download vegetation index data for a single point location, and I want it to be automated in R so I can do this for multiple points in different runs. So I found the opendap.catalog ...
0
votes
0
answers
72
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 ...
0
votes
0
answers
46
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 ...
1
vote
1
answer
68
views
Merging multiple NetCDFs from Copernicus into one NetCDF in Rstudio for plotting
I am trying to merge multiple NetCDFs containing 4 dimensions (lat, lon, depth, time) into one NetCDF. Each contain the same variable (sea surface temperature or 'thetao') and the same depth value and ...
1
vote
1
answer
71
views
Why isn't the array that I create in R being able to convert into a raster?
I am trying to plot a Hovmoller diagram using NetCDFs from Copernicus database. I am trying to plot it for one specific point (lon,lat). When I create a database for this with all depth values and all ...
0
votes
1
answer
213
views
Merge multiple NetCDF files with `cdo` or `nco` along a dimension other than time
I have two or more NetCDF files that share a time dimension and time variable, where the time variable is the same for all the files (from the start to the end of the time period, unit, etc). The ...