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
1 answer

How to convert annual netCDF data to daily from the command line?

Before I resort to using Python, I would like to know if there is a simple way from the command line to convert an annual netCDF file into a file with daily data simply by duplication (including leap years), i.e. each annual value is duplicated 365…
ClimateUnboxed
  • 7,106
  • 3
  • 41
  • 86
1
vote
1 answer

how to extract ECMWF ERA-5 data along animal track points?

I want to extract / interpolate an air temperature value for each track location (in space [xy], time [t], and altitude) from ERA5 hourly pressure level data. I retrieved the ERA5 dataset using CDS toolbox like below. But, I could not figure out how…
Batbr
  • 61
  • 7
1
vote
2 answers

How to concatenate using ncrcat or cdo merge with packed netcdf files

I have ERA5 files that I am trying to concatenate into monthly files. It appears the files have been packed to reduce size making the data type within the file a short. When I try ncrcat, it will warn about encountering a packing attribute…
1
vote
2 answers

Merging many single .nc files into one multi-file netCDF using r?

I am trying to merge many single .nc files into one multi-file netCDF. I need to merge monthly files from 1901-2006 for a few variables e.g. temp (filename is tmp_cru-ts-4.03-gridded_1.75w50.75n1.75w50.75n_19010116) My skills are pretty basic in R…
Jamster
  • 11
  • 2
1
vote
2 answers

Variable separation with Climate data operator

I used Climate data operator (CDO) to extract time series in CSV format with the following code cdo -outputtab,date,lon,lat,value -remapnn,lon={}_lat={} input.nc> output.csv Here, CSV file comes with variables date, lon, lat and value in a single…
b_takhel
  • 55
  • 7
1
vote
2 answers

Using NCO to extracts variables from a huge netcdf MARS3D file

I want to use nco to extract variables and dimensions from a very large netcdf file. I know that I have to use ncks, but the structure of my original file is so complicated and huge that I will need some advices. I want to start with a file with…
1
vote
2 answers

Regridding a NetCDF file using bilinear interpolation in cdo

I want to change the resolution in my netcdf file using bilinear interpolation from (1°x1°) ---> (0.1°x0.1°). I use remapbil but it doesn't work. It returns: Unsupported grid type: generic. I upload file1 and file2 The command I use: cdo…
Minh Hiếu
  • 39
  • 1
  • 8
1
vote
1 answer

calculate correlation using cdo in Netcdf file

I want to calculate spatial and temporal correlation coefficient with a file having 1 variable and the other having 2. How can I select one variable from the one having 2 to calculate the correlation? Which command should I use? Here is the command…
Minh Hiếu
  • 39
  • 1
  • 8
1
vote
2 answers

Merging netCDF files in anaconda prompt using NCO?

i am really at a loss about how to merge netcdf files of different times in windows 10, especially merging all nc files in folder. Usually in my ubuntu system i use CDO and the code cdo mergetime *.nc output.nc and that does the job. Unfortunately,…
asheef_ik
  • 41
  • 8
1
vote
0 answers

How to open 25 files with same structure and copy content in one file on c shell with cdo commands

I have 25 files with the same structure with 19 columns. I want to open every file and copy from 3 to 19 column in other file using c shell. The files is named like that: 2005090600 2005090603…
Pizhev Racing
  • 466
  • 1
  • 6
  • 23
1
vote
2 answers

xarray: calculate time-series of daily anomalies from *local* monthly means

I'm currently working with daily climate data (ERA5) and am analysing it with xarray. da dask.array Coordinates: * time (time)…
Andrew Williams
  • 741
  • 8
  • 18
1
vote
0 answers

Regridding operations on smaller subsets

I have a NetCDF file, let's say only a portion of South America as shown below. I want to use a cdo operation remapnn to remap the NetCDF file from 0.25x0.25 to 0.05x0.05 resolution. For that I use the code mentioned below, but the results are not…
Ep1c1aN
  • 683
  • 9
  • 25
1
vote
1 answer

Remove Fill Value or Missing Value from Netcdf

The dataset has fillvalue of 1e30. While taking mean of the NetCDF files should i use the codena.rm=TRUE or na.rm=FALSE? u2 <- list.files("/filepath/", pattern = "*.nc", full.names = TRUE) r <- mean(u2, na.rm=TRUE) I am getting values :…
Dipu
  • 123
  • 2
  • 14
1
vote
0 answers

How to install climate data operator (CDO) in Windows 10 then use it in Python 3.6?

I want to use climate data operator (CDO) in Windows 10 via Python 3.6. I have installed the CDO using conda install -c conda-forge cdo in Anaconda Prompt. Then I am calling it in Jupyter notebook using from cdo import *. But when I am using cdo =…
UseR10085
  • 7,120
  • 3
  • 24
  • 54
1
vote
2 answers

How to merge 2 separate netcdf files into 1 and add a time dimension

I have two NetCDF files of the Greenland ice sheet velocities, one from 2015 and one from 2016. These files contain grided data where the velocity is plotted with x,y coordinates. However, no time dimension is included. How can I merge these two…
Yoni Verhaegen
  • 111
  • 1
  • 11