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

NETCDF4 file doesn't grow beyond 2GB

I have a NETCDF4 file which doesn't grow beyond 2GB. I am using the following sample data - I am converting over 200 txt files to netcdf4 file STATIONS_ID;MESS_DATUM; QN;FF_10;DD_10;eor 3660;201912150000; 3; 4.6; 170;eor …
super
  • 23
  • 3
2
votes
1 answer

Calculate monthly average and annual sum of precipitation from netcdf with CDO

I am learning netCDF and CDO with a CRU ts_4.04 data. I want to calculate the monthly average and annual sum of precipitation in London. I…
robi
  • 23
  • 1
  • 3
2
votes
2 answers

converting Grib to netcdf4

I downloaded data from ECMWF for Era interim in grib format. Is there a way to convert a grib file with multiple bands to netCDF4, keeping the bands in the NETCDF format? I tried using the cdo operations, but the output will be only the first band…
2
votes
2 answers

Can you extract data based on date range for multiple years in a nc file?

I have a nc file consisting of temperature data. I want to extract the temperature for a date range of May 30th to August 18th for the years 2001 to 2018. The time variable is in the following format 2001-01-23. I do not mind if it is in Python or…
Thomas
  • 441
  • 3
  • 16
2
votes
0 answers

Incompatible library version - cdo version requires version 11.0.0 or later, but libcurl.4.dylib provides version 7.0.0

I'm trying to run CDO on my personal mac laptop. I had no issues with this up until recently when I installed nco - now I am getting the following error message when trying to run cdo: dyld: Library not loaded: /opt/local/lib/libcurl.4.dylib…
2
votes
1 answer

How to remove seasonality from time series data?

How can I remove seasonality data from a timeseries with the data stored in a netcdf file? I would like to find a solution using Linux, while I used Grads and Ferret for visualization. Thanks a lot!
Minh Hiếu
  • 39
  • 1
  • 8
2
votes
0 answers

Problem executing commands from the cdo (climate data operators) package in jupyter notebook / terminal

My aim is to run a simple command from the cdo package (timmean) on a netcdf file. I have successfully installed the package but cannot seem to run commands. In jupyter terminal When I navigate to the relevant directory and run the command I…
2
votes
1 answer

How can i List all files with .nc (netcdf) in a folder and extract 1 variable out of 10 variable?

My task is to get multiple similar NetCDF (.nc) files from a folder and stack one a variable out of 10 variables. I used: a <- list.files(path=ncpath, pattern = "nc$", full.names = TRUE) This gets me all the files with .nc extenstion. How to…
Dipu
  • 123
  • 2
  • 14
2
votes
1 answer

Fill nan values in a netcdf file using another netcdf file

I'm trying to fill nan values in a NetCDF file (let's call is 'Target' file) by getting the values from another NetCDf file ('Source' file). [the two example files can be downloaded from here] I was thinking of doing this in python using the…
Seji
  • 371
  • 1
  • 10
2
votes
2 answers

Concatenate netcdf files with different variables - using nco

I want to concatenate two sets of netcdf files using nco, where each set has about 30 files. Set 1 contains: longitude, latitude, time and v. Set 2 contains: longitude, latitude, time and u. I have tried: ncks *.nc out.nc but I get: Error…
Goose_08
  • 23
  • 1
  • 6
2
votes
1 answer

How can you add a variable from one netcdf file to another netcdf file in python?

I'm working with ERA-Interim data from ECMWF, where the variables I need are spread over multiple files. How can I add a variable from one file to an existing file so that, in the end, I have one file with all the variables I need? I've tried the…
2
votes
2 answers

Faster way of Appending/combining thousands (42000) of netCDF files in NCO

I seem to be having trouble properly combining thousands of netCDF files (42000+) (3gb in size, for this particular folder/variable). The main variable that i want to combine has a structure of (6, 127, 118) i.e (time,lat,lon) Im appending each file…
WDS
  • 337
  • 3
  • 16
2
votes
2 answers

How to disaggregate an accumulated netcdf variable in time using ncl, cdo or nco?

I have a 3D nc variable PP = (time, lat, lon) of accumulated precipitation for an entire year and I want to calculate daily values. I want to do something link in the example, but couldn't find any examples. I've tried to do a loop in which the…
11162273
  • 23
  • 3
2
votes
1 answer

how to write single CSV file from multiple (several thousand) netcdf files in R

I'm trying to get a single csv file from several thousand netcdf files where each file represents a single point in time. The files contain time, latitude, longitude, and 4 different weather variables. My thought process is to merge the files into…
Ktass
  • 47
  • 1
  • 1
  • 7
2
votes
1 answer

How to reorganize netcdf level by increasing order

I got a netcdf data but with strange level sequence. I like the level data to range from 1000, 900, 800, .. to 100 however my data shows 300, 400, 1000, 900, 800, ... 100 What's the cleanest method to reorganize this data by rising or decreasing…
Jen
  • 339
  • 1
  • 2
  • 12