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

Convert specific humidity into relative humidity in R or CDO for gridded data

How can I implement the code in the package Humidity to convert specific humidity into relative humidity using gridded time series data? The required input variables are air temperature, specific humidity and pressure. Although a solution in CDO is…
code123
  • 2,082
  • 4
  • 30
  • 53
0
votes
1 answer

Duplicate NETCDF data values across timesteps using R

I have 6-hourly data and will like to 'duplicate' it to hourly data. The first 6-hour timestep starts on 2017-01-01 00:00:00 and the next 6-hour timestep starts on 2017-01-01 06:00:00. I would like to copy the value of 2017-01-01 00:00:00 and assign…
code123
  • 2,082
  • 4
  • 30
  • 53
0
votes
1 answer

Calculate 3-dekad accumulation from dekad data in netCDF

I have dekad rainfall from CHIRPS in netCDF: https://data.chc.ucsb.edu/products/CHIRPS-2.0/global_dekad/netcdf/ 1 dekad data in nc format is for 1 year ie. chirps-v2.0.1981.dekads.nc Then I merge all the nc files into single nc ncrcat *.nc…
user97103
  • 235
  • 1
  • 7
0
votes
0 answers

Extracting data from CMIP5-data (netCDF files) with python

I have recieved the following code (down below) from my supervisor for extracting data from CMIP5-netCDF files (daily data) for multiple locations from multiple files. Unfortunately it is not working as it is supposed to and I am not that well…
BierBaron
  • 1
  • 1
  • 3
0
votes
1 answer

"Unprocessed input" error using `cdo` in loop with variable

I am trying to embed a cdo line in a shell script with variables. As a command line it works, but not in a script. This is the cdo line: cdo -expr,'T_mask=((T > 200 ))' file_in.nc file_out.nc In the shell script I want to run it for three…
Zeusuez
  • 3
  • 2
0
votes
2 answers

Add or subtract one array in the Z dimension from another, where latitude (Y dimension) and longitude (X) are different

Ultimately, I want to calculate the difference between modelled and measured air quality. I have two netcdf files. The first one (A) contains air particle data from a model with latitude (y1) index-length 100 and longitude (x1) index-length 200.…
pwi
  • 51
  • 7
0
votes
1 answer

Importing nco package: TypeError: object of type 'NoneType' has no len()

I'm trying to use the nco package to merge multiple netcdf files using ncrcat. This in itself is easy to do, but I'm unable to get past the second line: from nco import Nco nco=Nco() mrms1=…
tornadogal
  • 13
  • 3
0
votes
2 answers

Extract a given variable from multiple Netcdf files and concatenate to a single file

I am trying to extract a single variable (DUEXTTAU) from multiple NC files, and then combine all the individual files into a single NC file. I am using nco, but have an issue with ncks. The NC filenames…
peteron30
  • 69
  • 7
0
votes
2 answers

upload many .tif files from unzipped or zipped file in rstudio to rasterbrick

Forgive me as I am very new to coding and using r. I am trying to import many .tif files into rstudio that I obtained from WorldClim (historical monthly weather data 2010-2018). There are 120 .tif files in a zipped folder which I have unzipped. I…
0
votes
0 answers

getting error using timeselavg in Climate Data Operator

I am changing my daily data Netcdf file to decade data with CDO in matlab with command like this cdo timselavg,10 -seldate,2005-05-21,2005-05-31 sst_indonesia_80_18v2.nc 20050503.nc but I get an error like this Assertion failed: offset >= 0, file…
ExHunter
  • 307
  • 4
  • 11
0
votes
1 answer

How to fix Cygwin error: while loading shared libraries: cygproj-13.dll: cannot open shared object file?

I have tried to run cdo sinfon command on Windows 7 cygwin -x86_64 environment but have consistently encountered with the following error. I have installed all required packages like gcc, gcc-gfortran, openssl, openssh, curl, zlib, netcdf,…
Jit
  • 11
  • 1
  • 4
0
votes
1 answer

installing CDO in cygwin environoment

how i can install CDO? i am getting this error ./cdo.exe C:/Users/Ahmad/Downloads/cdo/cdo.exe: error while loading shared libraries: cygp roj-13.dll: cannot open shared object file: No such file or directory Reards
hindo kush
  • 19
  • 2
0
votes
2 answers

How to remove the scaling and offset attributes of a variable in a netcdf file to get the actual data values

I have a variable which has the dimensions time x lat x lon x levels and I am trying to read this in my global climate model. The problem I am facing is that the data is scaled and offset in the original file and it is a hassle to incorporate this…
tech_climate
  • 153
  • 6
0
votes
2 answers

How to make time variable continuous in a netcdf forcing climatology file?

I am having a forcing NetCDF climatology file that has 4 dimensions, i.e. time, lat, long and lev. I am reading this file using Flexible Modelling System (FMS) from GFDL. I want to keep the time continuous, or something like a periodic boundary…
tech_climate
  • 153
  • 6
0
votes
2 answers

CDO libraries not available when using Load function from s2dverifications package

I'm trying to use climate data from Copernicus using the s2dverification package. The package requires CDO (Climate Data Operator) installed in the system for data manipulation. I have CDO version 1.9.5 installed on computer (windows 10) under…
JMCosta
  • 11
  • 1