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

Bilinear interpolation from structured grid to unstructured grid (arbitrary points)

I need to interpolate bilinearly some air data of a hdf4/netcdf4/hdf5 file from a 240x240 structured grid on an arbitrary collection of coordinates. I have no idea on how to do this. I have tried using pyresample but that needs an AreaDefinition of…
MNK
  • 634
  • 4
  • 18
0
votes
1 answer

How to apply a Sea mask over a NetCDF file using CDO

Let's say I have made a netCDF file, which has a lot of zeros. I want to apply a sea mask to the data, such that only the regions in the sea are really masked and the data on the land is retained. The data that I have has a lot of zeros on land…
Ep1c1aN
  • 683
  • 9
  • 25
0
votes
2 answers

How to merge netcdf files separately in R?

I am a user of R and would like some help in the following: I have two netcdf files (each of dimensions 30x30x365) and one more with 30x30x366. These 3 files contain a year's worth of daily data, where the last dimension refers to the time…
Keegan C
  • 3
  • 5
0
votes
1 answer

Regrid multiple netcdf files in R by using CDO

I need to regrid hundreds of netCDF files but when I used the CDO command in R, there is always a problem like this: cdo remapnn (Abort): Too few streams specified! Operator needs 1 input and 1 output streams. the code is as follows: files <-…
Hong
  • 49
  • 6
0
votes
2 answers

NCO netcdf4 operations - ncwa (Averaging)

I am having trouble trying to combine three files to be averaged. I am not so sure how to even start. I have three files "nday1.06.nc , nday1.07.nc, nday.08.nc" each with the variables "filling on), ('SST',
posh8593
  • 21
  • 4
0
votes
1 answer

split .nc file in R

I have a file, clip_pr_day_GFDL-ESM2M_historical_r1i1p1_19810101-19851231.nc. It has 5 years data from 1981-1985. I want to split it into yearly data. I need 5 files rather than 1 single file. I am beginner at R and have installed cdo 1.6.4. Could…
Santosh
  • 1
  • 3
0
votes
1 answer

Extract and sum certain layers of NetCDF variable

I have a NetCDF file, here is a truncated output of ncdump -h: dimensions: lat = 720 ; lon = 1440 ; cft = 64 ; natpft = 14 ; double PCT_CFT(cft, lat, lon) ; PCT_CFT:long_name = "percent cft" ; PCT_CFT:units = "unitless" ; …
Janina
  • 441
  • 1
  • 4
  • 13
0
votes
1 answer

Bash script loop through netCDF files via placeholder and use cdo commands

I want to loop through 40 netCDF files. There are 20 files with the variable PRECC and 20 files with the variable PRECL("modelmember001.PRECC.192001-200512.nc", "modelmember002.PRECC.192001-200512.nc", ... ,"modelmember020.PRECC.192001-200512.nc"…
Angie
  • 21
  • 1
  • 4
0
votes
0 answers

Merge all NETCDF files from one directory

I have daily data in NETCDF format and every ".nc" file include one year of data while I have data for 1948 to 2017. The name of files are like this: tmax.2m.gauss.1948.nc tmax.2m.gauss.1949.nc .. tmax.2m.gauss.2017.nc I want to merge all of them…
Amy
  • 119
  • 1
  • 1
  • 6
0
votes
2 answers

NetCDF: How to extract data which crosses a boundary?

I have a NetCDF file with 4 dimensions: time, level, latitude and longitude. The shape of the data is: 1, 60, 1440, 2880 This means that there is 1 timepoint, 60 levels, 1440 latitudes and 2880 longitudes. Latitudes range from -90 to 90 and…
pookie
  • 3,796
  • 6
  • 49
  • 105
0
votes
2 answers

Creating a time series from a netcdf file for specific coordinates

I am currently trying to create a time series of precipitation data from the CRU global land precipitation data. The file I am working has 60 time slices, from 2011-2015. My code so far is: b<-brick('/Volumes/LDRIVE2/Masters/Dissertation/Global…
0
votes
2 answers

Split Netcdf variable and re-write the file

I have a netcdf file that contains air quality data. There are 4 dimensions: time : 24 hours (midnight to midnight) level : 1 to 8 (this is the height in meters (0, 50, 250, 500, 1000, 2000, 3000, 5000 m)) latitude : 1 to 400 longitude : 1 to…
John
  • 4,711
  • 9
  • 51
  • 101
0
votes
1 answer

cdo showname displays different variables than ncdump

I am confused why cdo and ncdump display different variables. I have found that WRF data does not have a coordinate variable of time, like typical ncfiles (http://www.ncl.ucar.edu/Applications/wrfnetcdf.shtml) . So I have added a time variable to…
pwprnt
  • 521
  • 3
  • 9
  • 27
0
votes
2 answers

Change resolution of half-degree netCDF to quarter degree netCDF using nco tools

I can change the resolution of a netCDF file to a coarser one by doing something like this: ncks --dmn lon,0,1384,5 --dmn lat,0,583,4 original.nc reduced.nc How do I go the other way? I.e. change resolution of coarser scale netCDF to finer scale?
user308827
  • 21,227
  • 87
  • 254
  • 417
0
votes
2 answers

Read Multiple ncdf files and make average in R

By using R ill try to open my NetCDF data that contain 5 dimensional space with 15 variables. (variable for calculation is in matrix 1000X920 ) This problem actually look like the same with the other question before. I got explanation from here and…
totti saga
  • 3
  • 1
  • 4