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

Select data along non-conventional dimension with CDO or NCO

I have a large number of NetCDF files from which I would like to extract a small number of variables for one location, and merge them into a new NetCDF file. The dimensions of the files are: dimensions: time = 18 ; level = 65 ; levelh =…
Bart
  • 9,825
  • 5
  • 47
  • 73
2
votes
2 answers

NetCDF: How to mask/filter out non-land values in global dataset, preferably using Python and/or NCO?

I have a global data at 0.25 degree resolution that I'd like to mask so that it only contains data values over land. The data covers full 360 degrees in the lon dimension and from -60 to 60 degrees in the lat dimension. The file header, as well as…
James Adams
  • 8,448
  • 21
  • 89
  • 148
2
votes
2 answers

nco cut daily netcdf file to 10 minute files

I have a daily netcdf file (20060101) and the time dimension has 144 steps, so 10 minutes time steps within the file. Now I want to create one netcdf file for each 10 min time step with nco. So at the end it should create 144 files. I already found…
Krystian
  • 887
  • 5
  • 21
  • 52
2
votes
1 answer

converting float to byte in netcdf file

I have a large netcdf file with a standard float field which consists of only 0.0 or 1.0. I would like to convert it to a byte type from the command line to save some space and also make it easier to read in the array to a byte type in fortran. I…
ClimateUnboxed
  • 7,106
  • 3
  • 41
  • 86
2
votes
1 answer

extracting data from a domain ncfile

I am trying to extract data from each grid cell in a user-specified (non rectangular) domain defined by lat / lon boundaries. My input file is on a curvilinear grid. I have tried various methods python ,cdo, ncks, but I still cannot figure it out.…
pwprnt
  • 521
  • 3
  • 9
  • 27
2
votes
2 answers

How to append new data into existing netcdf file

I have a multivariable ncdf that I created and wanted to add additional data to each variable. the lat and long dimensions will remain the same but I want to extend the time dimension by appending new data to each variable. The new data set has the…
Yami
  • 21
  • 1
  • 3
2
votes
2 answers

Computing the median of a nc file with nco

As the title indicates, I want to compute the median of a .nc file named sfcWind_1999.nc. On each grid point (lat/lon combination) I want to compute the median in the time dimension. Is there any nco attribute that does this?
David Halley
  • 417
  • 3
  • 6
  • 18
2
votes
3 answers

Loop through year, month, day for netCDF file name

I am using a for loop in R to read netCDF file from a folder and extract values for given list of longitude, latitude. It looks like working, except ONE PROBLEM. When the loop returns values against date, it creates January 29 to 31 after February…
2
votes
2 answers

Calculating grid-centred values when using data on a staggered grid

I am working with MITgcm to make some simulations, specifically to work with internal waves models; I got .nc files with my results but some variables are not in exactly the same coordinates. I'll explain myself: I want to work out the components of…
2
votes
3 answers

Combining a large amount of netCDF files

I have a large folder of netCDF (.nc) files each one with a similar name. The data files contain variables of time, longitude, latitude, and monthly precipitation. The goal is to get the average monthly precipitation over X amount of years for each…
BBHuggin
  • 85
  • 1
  • 11
2
votes
2 answers

How to convert daily to monthly netcdf files

I have downloaded climate model output in the form of netcdf files with one variable (pr) for the whole world with a daily time-step. My final goal is to have monthly data for Europe. I have never used netcdf files before and all the specific…
sbg
  • 1,772
  • 8
  • 27
  • 45
2
votes
2 answers

regrid netcdf data in R for interpolation

So, I have some variables from a .nc file that are in 4D arrays (x,y,z,t). The thing is, the z coordinates are not evenly spaced like the x and y coordinates are, i.e., z goes something like 25 meters, 75m, 125, 175,..., 500, 600, 700,..., 20000,…
2
votes
2 answers

How to extract readable values from .grib2

I have installed wgrib2 and degrib but cannot figure out how to extract values (human readable) for a specifig lat/lng. degrib multi_1.nww3.t00z.grib2 -P -pnt -33.883,18.254 gives me: SWPER, [s], 201403290000, 201403300900, 9999.000 WVDIR, [Degree…
HKandulla
  • 1,101
  • 12
  • 17
2
votes
3 answers

Calculate variables mean in a selective area , in gridded netCDF file

Let say we have TRMM precipitation data, each file represents data for each month. For example, the files in the folder are: 3B42.1998.01.01.7A.nc, 3B42.1998.02.01.7A.nc, 3B42.1998.03.01.7A.nc, 3B42.1998.04.01.7A.nc, …
Fir Nor
  • 163
  • 2
  • 13
1
vote
1 answer

Remap Generic grid to lon/lat

I am trying remap interpolation using cdo by: cdo remapbil,black_sea.mask.nc out.nc out_bs_mask.nc I got this error: remapbil (Abort): Unsupported target grid type (generic)! I guess cdo does not handle with generic type. So, I tried to edit the…
rocinantes
  • 39
  • 4