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
1
vote
0 answers

Error when converting grib file to netcdf

I'm trying to convert a grib file obtained from someone else to netcdf using cdo. The file is global data with a gaussian grid format: File format : GRIB szip -1 : Institut Source T Steptype Levels Num Points Num Dtype : Parameter ID 1…
Henrique
  • 135
  • 6
1
vote
2 answers

Decompressing a netCDF file

I have a compressed netCDF file called in.nc with a (_DeflateLevel=4). I want to decompress the file. I've already tried using the following command but it doesn't change anything: nccopy -d 0 in.nc out.nc Here are the in.nc…
Amr Talaat
  • 81
  • 2
  • 10
1
vote
1 answer

CDO 'mergetime' got warning and how can I verify the output file isn't corrupted?

I tried the following command in CDO for combining different time slices of a few CMIP6 outputs in one file. I got a warning that I listed below and at the same time, I got a merged output. How can I verify the output isn't corrupted? I am a very…
makduma
  • 11
  • 2
1
vote
2 answers

problem with regriding a netCDF file using nctoolkit

I am using daily data to calculate monthly averages using ensemble_mean. Once I have the file with the monthly average, I regrid the file from 0.1 to 0.25 degrees using another file as the target grid. The ensemble mean goes well, but when trying to…
jairovs
  • 13
  • 3
1
vote
1 answer

How to count number of events of length 5<=N<10 days meeting a set condition using CDO?

I need a help regarding CDO operation on a netcdf file. I downloaded dataset for 40 years from ERA5 over a grid region and I masked variable values for a range (30-50) to 1 and other values to 0 using cdo. cdo -expr,'var2=var*(var>=30 && var<50)'…
1
vote
2 answers

Accumulated precipitation between 12UTC to 12UC of the other day

I have a .nc file that contains data every 6 hours of precipitation for 1 full year, my interest is to calculate the daily precipitation and compare with observed data, for this I must make them coincide temporally. To achieve this, the…
1
vote
1 answer

CDO regridding and calculating grid fractions

I have a global IGBP land use dataset in which the land cover exists out of forest cover (depicted with a '1') and non-forest cover (depicted with a '0'), hence, each land grid cell has either the value 1 or 0. This dataset has a spatial resolution…
Freek
  • 15
  • 4
1
vote
1 answer

cdo remapbil error : Segmentation fault (core dumped)

I have spatially merged 4 tif tiles using gdal_merge. then converted the merged file to netcdf using gdal_translate. Now I want to regrid the netcdf file for specific lat lon and resolution. But when i use remapbil in cdo I get the error…
1
vote
2 answers

Calculate a 1000 year mean using decadal data from NetCDF file in R or CDO

I have a netCDF file for temperature going back the last 22 thousand years at a decadal average (TraCE dataset). I want to calculate 100 or 1000 year averages. I am really stuck, if anyone could help then that would be great. I am mostly using R,…
1
vote
1 answer

add or create new attributes using NCO

I have one .nc file in which I want to create a new attribute like float Longitude_Aerosol_NearUV_Swath(nTimes_Aerosol_NearUV_Swath, nXtrack_Aerosol_NearUV_Swath) ; Longitude_Aerosol_NearUV_Swath:standard_name = "longitude" ; …
1
vote
1 answer

How to interpolate a netcdf with centroids of areas?

I have a netcdf file with t_ave at a res. of 0.25x0.25. I want to assign t_ave values to any administrative area using a spatial join, but my areas are very small and at that resolution many of them are not covered by the grid. I tried to resample…
1
vote
1 answer

How to put Timestamp at the start of the Month in CDO?

Currently I am working with cmip6 models monthly precipitation .nc files. I want the dates to start from 1st day of each month. Here is the part of result of cdo sinfo of input file : 1950-01-16 12:00:00 1950-02-15 00:00:00 1950-03-16 12:00:00 …
Harith S
  • 47
  • 5
1
vote
1 answer

How to split NetCDF file into multiple NetCDF files based on indices of dimension?

I have a single NetCDF file with some identically sized variables in it. I am trying to save all data into different NetCDF files based on dimensions. For example, each variable in a NetCDF file has data in one dimension called "row" with a size of…
1
vote
1 answer

How can compute "Mean Absolute Error (MAE)" by CDO

I did not find as a new student how to calculate "Mean Absolute Error (MAE)" by CDO! Can you assist us with how to compute by CDO!
Khan
  • 3
  • 4
1
vote
1 answer

Extracting SST time series at multiple lat, lon locations using CDO

Background: I am working with satellite observations of SST (time, lat, lon) from the CoRTAD SST dataset (netCDF file). I have a set of (lon,lat) coordinates following the coastal contour of Portugal (called below midshelf locations). I want to…
Greg King
  • 13
  • 4