Questions tagged [cdo-climate]

Climate Data Operators (CDO) is a collection of command line Operators to manipulate and analyse gridded datasets in the supported data formats of netCDF 3/4, GRIB 1/2, SERVICE, EXTRA and IEG. There are more than 600 operators available. Many functions are generic (spatial/temporal means, variances, regridding, trends, EOF, covariances, correlations) while others are aimed particularly at analyzing climate and weather data (e.g. seasonal statistics).

Climate Data Operators (CDO) is a collection of command line Operators to manipulate and analyse gridded datasets in the supported data formats of GRIB 1/2, netCDF 3/4, SERVICE, EXTRA and IEG. There are more than 600 operators available. While many of these functions are general (spacial and temporal statistics such as averages and variance, regridding, subsetting, concatenating etc), Many functions are particularly aimed analysing climate and numerical weather prediction model data. Full documentation is available at https://code.mpimet.mpg.de/projects/cdo/

325 questions
0
votes
3 answers

use surface pressure to mask 4D netcdf variable

I've merged a 3D surface pressure field (ERA5, converted from Pa to hPa, function of lat,lon and time) with a 4D variable which is also a function of pressure levels (lat,lon,time,level). So, my netcdf file has two fields, Temperature which is…
ClimateUnboxed
  • 7,106
  • 3
  • 41
  • 86
0
votes
1 answer

CDO - Difference between "daymean" and "ydaymean" operators?

I want to calculate daily mean of hourly temperature data from ERA5 data for 1975-2005. I have merged the downloaded hourly NETCDF files to create a single NETCDF file containing temperature and total precipitation data for all years. I think…
0
votes
1 answer

How to convert CMIP6 hourly data to daily data

I have a .nc file that contains data every 1 hour of precipitation for 1 full year, my interest is to calculate the daily precipitation and compare with observed data. I have some doubts about the units that the CMIP6 output has since it shows me…
0
votes
0 answers

How can I get the monthly maximum (and only the maximum) temperature in CDO

I have a file with daily temperature data from 1972 to 2022, with a gridsize of 841 for each timestep. When I use -monmax command, I get three columns on the screen: min|mean|max, but I only want the max column, how can I get that information in a…
0
votes
0 answers

Read in thousands of .nc files into R from a single text file

I am new to working with large geospatial data in R. I downloaded daily ice data from EarthData for a certain spatiotemporal period, giving me a .txt file with ~15,000 rows where each row is a daily (or monthly) .nc file. It looks like…
burphound
  • 161
  • 7
0
votes
0 answers

I have problems with cdo command monmean

I´m working with CDO and I would like to get the maximum temperature from my file. The time data is different if I use the command cdo monmax infile outfile and cdo --timestat first monmax infile outfile If i use cdo monmax infile outfile the…
0
votes
2 answers

Loop through multiple NetCDF files to calculate daily mean from hourly climate ERA5 datasets

I have hundreds of NETCDF files that I obtained from ERA5(Land) datasets. The temporal resolutions of the data are in hours but I need to compile them into daily mean. Single calculation is straightforward in CDO (see below). But when I tried to…
0
votes
1 answer

CLIMADA-Return Period outputs do not match impact exceedance curve

I'm calculating return period impacts for a single line of exposure in CLIMADA. I got the below output. enter image description here For the same data set, I tried to output the Exceedanc frequency curve ,which should normaly match the return period…
0
votes
1 answer

Creating an ensemble with different calendar types

I have daily data of 9 regional climate models each with different timesteps, different ending days and different calendar types but the same starting day. I want to create a daily ensemble out of them with respect to the one with the highest…
Emre
  • 1
  • 2
0
votes
1 answer

Is there any CDO or NCO function to truncate netCDF values?

I am dealing with slight negative values (after de-accumulate a cumulative precipitation array), which I suppose are numerical artifacts due to precision, and I want to truncate all values x<0 and assign them as 0. Is there any function to truncate…
0
votes
0 answers

Climatic data not shown month-wise while calculating Standardized Precipitation Evapotranspiration Index (SPEI)

I am calculating the Standardized Precipitation Evapotranspiration Index using SPEI package and Hargreaves method. When I calculate Potenetial Evapotranspiration (PET), Water Balance (WBal) and SPEI, the output data is not shown month-wise. Rather a…
0
votes
0 answers

CDO Climate XQuartz error on loading:Input Method Open Failed

I started using CDO for my university project. CDO in the terminal worked fine for a couple of days but later started to get a few errors (in ). Can anyone please help with this? below is the output details: Ncview comes with ABSOLUTELY NO WARRANTY;…
yashus123
  • 1
  • 2
0
votes
3 answers

How to include static variable with time varying variables in a netCDF file using Climate Data Operator (CDO)?

I have two netCDF files. One file elevation.nc contains just the 'elevation' of an area. Other file climate.nc has ('lat', 'lon','prcp', 'temp'). I have used the following: cdo merge elevation.nc climate.nc merged.nc The merge.nc file only has on…
Sayantan4796
  • 169
  • 1
  • 10
0
votes
1 answer

Error in using nco ncremap to remap one netcdf file to grid of another

I have a data set with multiple netcdf files with the same variables and structure, though the grid shifts in the time series periodically. I am working on simply remapping one file to another. However, the following command when run with the linked…
Rob
  • 265
  • 2
  • 11
0
votes
0 answers

Convert grib to netcdf file with wildflags in terminal for an complete folder

The syntax for using eccode to convert GRIB to NetCDF is clear. However, I'm wondering if there's a way to convert an entire folder of GRIB files into NetCDF using the old file names. I attempted to do this using the command below, but it didn't…
S.Kociok
  • 168
  • 1
  • 14