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

How to merge multiple .HDF5 files in single file in Octave

I have multiple .HDF5 files of 30 min IMERG precipitation data for a month (July 2022) in a folder having same shape. Is there a way to merge multiple files in a single file through Octave or any other source? If not the how to open multiple files…
Nayan
  • 11
  • 2
0
votes
2 answers

how to add time steps to the beginning and end of a time series with cdo/nco?

Is there any command in cdo or nco (which I am not very familiar with) to add some timesteps at the beginning of a long time series? Let's say I have a long time series (1959-2021) within summer season (JJA) and I want to add from 24-30 August 2021…
0
votes
2 answers

How add standard_name to attributes NetCDF file in NCO

How can add variable name and units to NetCDF attribute in NCO. dimensions: lat = UNLIMITED ; // (34 currently) lon = 42 ; time = 360 ; float precip(lat,lon,time) ; precip:_FillValue = 1.e+20f ; precip:missing_value = 1.e+20f ; …
0
votes
1 answer

CDO mergegrid applicable on a non-rectilinear grid?

I have 16 netcdf files (without a time dimension) on a global scale that contain the same amount of longitude grid points (namely 432) and the same amount of latitude grid points (namely 324). Each netcdf file contains a slice of data, for example…
Freek
  • 15
  • 4
0
votes
1 answer

Trouble with cdo commands in Python

I am trying to set a reference time in a netcdf file with the command in python. i have tried the following. from cdo import * cdo = Cdo() cdo(input = "infile.nc", output = "outfile.nc", options = "2022-12-01,12:00:00") Once i run this command all…
sss
  • 3
  • 3
0
votes
1 answer

CDO : Masking 3D and 4D variables within the same netcdf file

I have a netcdf file called data.nc and a masking file called mask.nc. The data.nc file has a 3D variable A with dimensions over (time,long,lat), and 4D variable B with dimensions over (time,depth,long,lat). The mask.nc file has two masking…
Amr Talaat
  • 81
  • 2
  • 10
0
votes
0 answers

Couldn't open CMIP6 downloaded nc file using r or CDO

I have tried to download a climate model output from esgf website (https://esgf-node.llnl.gov/search/cmip6/ using the following R code. ########################################################################### rm(list=ls()) …
Yon Balcha
  • 29
  • 6
0
votes
0 answers

Correct way to standardize some climate indices

I am working on the relationship between climate extremes and conflict from 2010 to 2020 and I was wondering what is the correct way to standardize the following variables : The Warm Spell Duration Index where percentile (90) for the threshold is…
0
votes
1 answer

How to dowscale a raster but keeping the same values?

If I have this raster with 40 x 40 resolution. library(raster) #get some sample data data(meuse.grid) gridded(meuse.grid) <- ~x+y meuse.raster <- raster(meuse.grid) res(meuse.raster) #[1] 40 40 I would like to downscale this raster to 4 x 4.…
temor
  • 935
  • 2
  • 10
  • 26
0
votes
2 answers

NetCDF: Not a valid data type or _FillValue type mismatch

I'm using cdo on cygwin to pre-process some CMIP6 simulations, in netcdf format. I just got the message error for the CESM2 model : NetCDF: Not a valid data type or _FillValue type mismatch I never got this message error before, with other models I…
luric
  • 1
0
votes
1 answer

CDO:NetCDF: Numeric conversion not representable

I am trying to merge the following files in cdo: 1979-1982.nc 1983-1995.nc 1996-2008.nc 2009-2021.nc that each contain one variable (the same in all files). I use the code: cdo mergetime *.nc merged_file.nc but I get the error: NetCDF: Numeric…
los
  • 1
  • 1
0
votes
1 answer

How to change SpatRast resolution using res and projectRaster in library(terra) correctly?

I have a raster file of sea surface temperatures from HadISST at 1x1 resolution. Previously I've re-grid to 0.5 x 0.5 using cdo(csl("remapbil","global_0.5"), inputfile, output file, debug=FALSE) from cdo via climateoperators but I'd like to explore…
0
votes
0 answers

Extract Netcdf4 data to Point using python

i am working on climate data. I have extracted data on my desired lat long using ERA5 data and code works perfectly. Now i am working with another dataset but its not working. Code is written in a way that it is not disturbed by leap-years. But in…
0
votes
2 answers

Using CDO to convert 2D .nc file to a 4D .nc file

I have a 2D .nc file with dimensions time and depth that I want to convert to a 4D .nc file. Latitude and longitude are saved as variable names in the 2D file. They are not in a particular order and there is large missing areas as well. The .nc file…
0
votes
0 answers

CDO to process my NETCDF files (average of a grid) using UBUNTU

I have a netcdf file located here https://drive.google.com/file/d/1Ok2tVD_iCXe93Q1HYGv1jtyaTIc7wY2N/view?usp=sharing which has monthly timesteps downloaded from https://cds.climate.copernicus.eu/ I would like to get the average monthly of only one…
kiwi_kimchi
  • 345
  • 3
  • 12