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

Extract specific particle id variable from a netCDF file

I have a netCDF file output from a particle dispersion model (GNOME). As it is a particle dispersion model, I have every particle identified by a particle id variable: int id(data) ; id:description = "particle ID" ; id:units…
Cla93
  • 1
  • 1
0
votes
1 answer

Save out put merged nc files on NCL

I have tried to merge multiple nc file using ncl in ubuntu windows 10 platform. i have used the following simple code. fils = systemfunc("ls *.nc") ; checks all files with nc file extensions f1 = addfiles(fils,"r") ; reads the files and assigns them…
Yon Balcha
  • 29
  • 6
0
votes
1 answer

Merge hourly netcdf files into daily files with cdo and using shell script

I have the variable: files=$(ls *.nc) Which contain hourly netcdf files that I want to merge into daily files using cdo. I need to create something like "cdo merge $files[1] $files[2] .... $files[24] all.nc" and run the expression. How can I create…
0
votes
2 answers

Extract the data from NC file using R studio

I have the NC file with 0.5 resolution containing yearly PDSI index from 1900 to 2013 of globe. how can I get the one value for each year for entire Europe/Asia/America. thanks a lot
0
votes
2 answers

Why do I get different values when I extract data from netCDF files using CDO and ArcGIS for a same grid point?

details of the raw data (Mnth.nc) netcdf Mnth { dimensions: time = UNLIMITED ; // (480 currently) bnds = 2 ; longitude = 25 ; latitude = 33 ; variables: double time(time) ; time:standard_name =…
Soumik Das
  • 9
  • 2
  • 5
0
votes
1 answer

Using CDO or NCO to combine buoy station datasets (NetCDF), lat and lon gets dropped

I am trying to merge 100+ NDBC buoy netcdf datasets, where each file has an associated latitude and longitude, into one netcdf data set. When I use cdo or ncrcat I get a combined dataset but it only takes the latitude and longitude coordinates from…
Jake
  • 57
  • 5
0
votes
1 answer

How to change Longitude format in a Netcdf file in R?

I have a netcdf file with three dimensions (time, lon, lat): 3 dimensions: time Size:14610 *** is unlimited *** time_origin: 31-DEC-1979:18:00:00 long_name: t calendar: standard units: hours since 1979-01-01 00:00:00 lat Size:201 point_spacing:…
0
votes
1 answer

Cdo operation error of invalid character at position 1! in nc file

I am trying to execute the command cdo subc,SCM5_His_mean.nc ob_MAMJ_mean.nc SCM5_His_mb.nc but I'm getting this error: cdo subc (Abort): Float parameter >SCM5_His_MAMJ_mean.nc< contains invalid character at position 1! The SCM5_His_MAMJ_mean.nc…
0
votes
1 answer

Unable to upgrade cdo to v1.9.7 on google cloud linux VM

I am trying to install CDO v1.9.7 on my Linux VM on Google Cloud but it shows that the latest version available is 1.7. I am trying to regrid some netCDF files using nctoolkit but I can't do this with a CDO version >= 1.9.4 Please see the screenshot…
0
votes
1 answer

Daily anomalies using climate data operator (CDO) in Cygwin (Windows 10)

I'm complete beginner with Cywing and CDO, which both have been installed in Windows 10. I'm working with 3 variables from ERA 5 Land hourly data: 2m temperature, total precipitation and runoff. Some facts about these vars: three variables are in…
Brian
  • 89
  • 1
  • 10
0
votes
1 answer

Averaging multi level data to one single level data using CDO

So I have 3D data of sea currents velocity. I want to calculate/averaging data from z=28 to z=26 so I can display the value in spatial (lat1 lat2 lon1 lon2). I don't think 'merge' command is the solution, because I want to calculate the average, not…
triw
  • 1
  • 1
0
votes
0 answers

How to save a NetCDF file with proper timestamp in R?

I have simply made everything ready for saving my NetCDF but during saving the file I cannot save the timestamp as before. Previously, the timestamp was 1970-01-01 00:00:00.0 and the unit hours since 1900-01-01 00:00:00.0, see the first picture.…
Thomas
  • 441
  • 3
  • 16
0
votes
2 answers

How to remove/delete dimension from a netcdf file without modifying other variables?

Need help. Please have a look and suggest a solution. Note that I'm a beginner. I have a netcdf file named 'Lw_15_21.nc' netcdf Lw_15_21 { dimensions: longitude = 135 ; latitude = 129 ; expver = 2 ; time = 54247…
Soumik Das
  • 9
  • 2
  • 5
0
votes
1 answer

Add new variable to data object in cds toolbox

I'd like to compute the daily climatology and standard deviation of a variable (in this case pressure on two levels). I'm able to do this, but currently can't create a single data object which I can download as a netcdf. My code currently outputs a…
Robbie Mallett
  • 131
  • 1
  • 11
0
votes
1 answer

CDO select variable in parallel

I want to select/split a specific variable TT from a big NetCDF file using the CDO library/package in parallel to speed up the process. I used the following: cdo -P 8 select,name=TT infile.nc outfile_TT.nc but got the following error: -bash:…