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

Calculate monthly statistics for WRF outputs using wrf-python

I use wrf-python in order to read in WRFOUT files. wrflist = [Dataset("wrfout_d01_2012-12-01_00:00:00"), Dataset("wrfout_d01_2012-12-02_00:00:00"), Dataset("wrfout_d01_2012-12-03_00:00:00"), …
1
vote
1 answer

Is there a way to calculate and save a new variable that is a function of multiple netCDF or tif files?

I have multiple .nc which are also in .tif files that I would like to use to calculate the probability based on a statistical model. I have 5 files (V1.nc, V2.nc, V3.nc, V4.nc, V5.nc), and a statistical model being: y = 1 / (1 + exp(-(Intercept + V1…
Thomas
  • 441
  • 3
  • 16
1
vote
3 answers

How to calculate daily average from ERA5 hourly netCDF data?

Hi dear all, I do apologize for repeating the question. I have downloaded and merged the ERA5 hourly dew-point temperature data (d2m_wb.nc) from the Copernicus web platform. Now, I want to calculate the daily mean from the hourly d2m_wb.nc data. The…
Soumik Das
  • 9
  • 2
  • 5
1
vote
1 answer

How to add time dimension and merge TRMM daily data using cdo or any other software?

I have downloaded the TRMM daily data which doesn't contain time dimension and I tried cdo mergetime *nc4 out.nc4 but the file size is too small if I compare to original files as combined and there is no time dimension to it and also in outfile…
Utkarsh
  • 13
  • 2
1
vote
1 answer

How to correct timestamp after time linear interpolation (inttime) in cdo

I have a dataset at hourly timesteps and I am interpolating it to 30-min with 'inttime' in cdo. However, the timestamp outputted is not correct, it is just duplicated from the original data. How can I correct that using cdo (or nco)? I am…
1
vote
1 answer

Clip NetCDF files by non-associated coordinates

Look at this NetCDF EURO-CORDEX file: Dimensions: (bnds: 2, rlat: 412, rlon: 424, time: 1800) Coordinates: lat (rlat, rlon) float64 ... lon (rlat, rlon) float64 ... * rlat (rlat) float64…
janchytry
  • 320
  • 2
  • 12
1
vote
2 answers

Average a Month's worth of NetCDF data to one 24hr-day to give the mean diurnal cycle

I hope you're well -- I have multiple files all having one month of hourly data. Wind = Jun1.variables['wind'][:,:,:] Wind = Jun2.variables['winds'][:,:,:] etc Below shows the dimensions I want to average each individual files in a way to calculate…
user12285992
1
vote
1 answer

Remap data from Polar Stereographic projection to Lat-Lon

I have a NetCDF file with storm track density data over south polar stereographic projection. Both X and Y coordinates range from -1.924274 to 1.88504 (I don't know the units here). The link for the .nc file is here. When I open the file with Xarray…
Maartaud
  • 45
  • 4
1
vote
2 answers

Multiplication and addition of Netcdf files

I have two timeseries netcdf files with the same number of steps: U.nc with variable name u10. V.nc with variable name v10. Now I want to add multiply U.nc with U.nc similarily, V.nc with V.nc. I also want to add U.nc with V.nc., the variables…
1
vote
3 answers

Merge thousand of IMERG 30-min rainfall netcdf files into single netcdf

I have 8736 nc4 files (30-minute rainfall from 1 Jun - 31 Dec 2000) downloaded from https://disc.gsfc.nasa.gov/datasets/GPM_3IMERGHH_06/summary?keywords=IMERG with naming…
user97103
  • 235
  • 1
  • 7
1
vote
1 answer

Extracting ocean bottom data from 4d NetCDF files

I have global 4D NetCDF files for ocean pH, o2, etc. Each file has 1 variable and 4 dimensions (time, longitude, latitude and depth). I am looking to extract data from the bottom-most depth for each cell that does not contain an NA. I have tried…
rgasbarro
  • 23
  • 5
1
vote
2 answers

Problem with cygnetcdf-13.dll needed to use new versions of CDO with Cygwin

I have problems with the use of newest version CDO, like CDO-1.9.7.1. This appears when I try tu use any CDO operator with Cygwin in windows 10: "error while loading shared libraries: cygnetcdf-13.dll: cannot open shared object file: No such file or…
Bondo
  • 43
  • 3
1
vote
1 answer

Date error in netcdf converted using climate data operator

I am trying to convert annual temperature and rainfall data from the Indian Met Office from .grd to netcdf using CDO in Linux. However when I import the netcdf file into R & inspect the dates, there is no value for Jan 1st for a given year & either…
1
vote
3 answers

How do I use a list of Dates from .txt as input in shell script?

I'm trying to extract dates from a .nc file and I wanted to write a script to automate the process by using a .txt file, the data looks like this: 1995 04 05 1995 06 12 1995 06 30 1995 07 16 1995 07 19 1995 07 20 1995 07 28 1996 03 09 …
1
vote
1 answer

Extracting CRU precipitation data from netcdf into separate GeoTIFF files

I would like to extract CRU precipitation data in netcdf format into separate GeoTIFF files. Usually if the netcdf file only have variables: lon, lat, time and pre I can manage to extract it using below script: for t in `cdo showdate input.nc`; do …
user97103
  • 235
  • 1
  • 7