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

How to subset netcdf CRU V4.00 data in R using lat-lon?

I want to subset a region from cru global data. The "cmsaf" package , box_mergetime function can subset the CMIP5 and CORDEX .nc data but in CRU .nc data it gives following error. >library(cmsaf) >wd<-getwd() >box_mergetime("tmp", wd,…
1
vote
3 answers

converting an accumulated variable to timestep values in a netcdf file with CDO

I have a netcdf-file with about 100 timesteps on a grid with one variable, which is accumulated over the timesteps. I am now interested in calculating the contribution of each timestep to the variable's value (i.e. the difference of consecutive…
Jannek S.
  • 365
  • 3
  • 16
1
vote
2 answers

Create a NetCDF file with data masked to retain land points only

I have masked a NetCDF file using basemap.gs script in grads. Here is what I got using the mask: So, I would like to obtain a NetCDF file which only contains the continental data, can anyone help me with this?
Erincon
  • 389
  • 1
  • 7
  • 21
1
vote
3 answers

Concatenate two nc4 files of different time span

Assuming two netCDF files (nc4 in my case), each of one variable with 3 dimensions: latitude, longitude and time (year). They are of different time spans (e.g. 1700-2005 and 2005-2100 - they overlap at 2005). How can I concatenate them to obtain one…
Valentin_Ștefan
  • 6,130
  • 2
  • 45
  • 68
1
vote
2 answers

how to find the time/date of the first positive entry in a netcdf file using nco or cdo?

I have a timeseries of values and I want to find the time or date of the first timestep when the data series becomes positive. I know I can read it into a python, R or Fortran script to do it, but I was wondering if I can do it from the command…
ClimateUnboxed
  • 7,106
  • 3
  • 41
  • 86
1
vote
3 answers

Generate timeseries vector (spatial average) from NETCDF R

I have a NETCDF file with attributes being lon,lat,time,precipitation. The data covers a certain spatial domain. It is daily data from 1960 to 2100. 1) I will like to subset the data spatially (e.g lat[45,50] and lon[-78,-85])from the main domain 2)…
code123
  • 2,082
  • 4
  • 30
  • 53
1
vote
3 answers

How to calculate monthly data from a daily netcdf

I was able to open a netcdf file in R using the package "ncdf4" and extract rainfall (using ncvar_get). However I can't find information on how to calculate monthly values from daily values. Is this possible while staying in the netcdf format or…
sbg
  • 1,772
  • 8
  • 27
  • 45
1
vote
3 answers

how to convert Grib1 to Netcdf using R?

I have just downloaded some climate data in grib format. I want to use "R" to convert it to NetCDF format. Furthermore, as the file consists of different variables, I would like to extract one variable at a time into individual files.
SaZa
  • 311
  • 2
  • 7
  • 14
0
votes
1 answer

cdo in Python: Problem chaining more than two operators

I am trying to process some netcdf files while operator chaining for speed in python. When I chain more than two operators, I get an "too many inputs" error. Testing the generated cdo command shows that the problem is the dash ('-') in front of the…
0
votes
0 answers

how can I transform netcdf data from a rotated pole to normal grid?

Hy everyone, I'm struggling with the transformation of netcdf data that comes from a climate model simulation and is on a rotated grid. This is how my file is built up. I want to make some plots and stuff with the TOT_PREC variable. It says, taht…
0
votes
0 answers

CARRA .grib file with Lambert Conic Conformal gridtype - how to extract a certain location (lat/lon) or change the grid type?

I have downloaded the dataset from https://cds.climate.copernicus.eu/. I am looking at different meteorological parameters and the dataset is split in west and east domain. Hence, I have several grib file, one each per parameter. Now I would like to…
Kim
  • 1
  • 1
0
votes
0 answers

CDO installation in conda

I am trying since yesterday to convert a grib file to a netcdf file (ECMWF dataset). As the grib file has to be interpolated from reduced to regular Gaussian grid before I can apply grib_to_netcdf, I will use CDO in my MacOS terminal. However, I…
Kim
  • 1
  • 1
0
votes
1 answer

NCO: Change time dimension back to unlimited

I've been trying to change the time dimension back to unlimited in a NetCDF file and haven't been successful. I made a new file and appended everything together: dimensions: lon = UNLIMITED ; // (71 currently) lat = 36 ; expver = 2 ; …
0
votes
1 answer

CDO application issue

I run a climate model on cluster. The necessary moudels have been loaded, icluding: module load netcdf/c/4.6.1-intel-2013.1 module load netcdf/fortran/4.4.4-intel-2013.1 module load cdo/1.9.1 The error message is: cdo genbil: Started child process…
M Wang
  • 1
0
votes
1 answer

How to extract single variable from multiple nc files and save it to new nc file using cdo?

I have monthly data from 2015-01 to 2099-12 with hundreds of variables (big dataset). Now I just want to extract single variable (say, FAREA_BURNED) from each nc files and save it as FAREA_BURNED.nc file. I find several ways on internet, but none of…