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

Warning (cdfInqContents): Coordinates variable XTIME can't be assigned

I have a high number of daily WRF outputs, each one consisting of 24 time steps for every single hour of the day. Now I would like to combine these single output files to one resulting file that comprises the entire time period by using cdo…
climsaver
  • 341
  • 2
  • 15
0
votes
1 answer

Merge Two Datasets with Different Number of Variables per Timestep Using CDO

I am analyzing a time series of data that is split by time into two NetCDF files (infiles). These files have a different number of variables/fields, by design. Traditionally I have been using Climate Data Operators (CDO) to easily merge two datasets…
Brandon
  • 91
  • 1
  • 11
0
votes
1 answer

How to plot ensemble models mean?

#read data dset = xr.open_mfdataset('/home/users/ruoou/projects/data/cmip6/scenaromip/ssp126/tas/*'+ mod+ '*.nc', parallel=True) #define timescale time = dset.time clim_set_t = dset.sel(time=slice("2015-01-16", "2100-12-16")) clim_ta =…
0
votes
1 answer

Merge nc files with different longitude and latitude but same timestamps

I have downloaded some ERA5 data for eastern North America at noon (12:00). This means I had to download nc-files separately to match 12:00 noon for different longitudes. Hence, between longitude -52.5 and -67.5, the timestamp is 16.00, while it is…
Thomas
  • 441
  • 3
  • 16
0
votes
1 answer

Offset satellite timseries data

I have been working with the PERSIANN data validation and I have noticed that the data collection time has a different time than the stations that I have in the data observed in the field. Is it possible that with CDO an offset can be made on the…
0
votes
2 answers

How to subset netcdf variable by a constant threshold

I have a netcdf file with global temperature (tas, degC) data over the 1990-2001 period at daily time-steps in a 1x1deg lat-lon grid. I am interested only in tas days > 10degC. Is there a way I can subset with CDO the netcdf file and create a new…
aaaaa
  • 149
  • 2
  • 18
  • 44
0
votes
0 answers

CDO Daily data to total annual rainfall

I am working with IMERG data of daily rainfall. I use the command with a wildcard (since it is 365 data) cdo merge *.nc4 outfile.nc4 I get: cdo merge: Processed 365 variables over 365 timesteps [3.48s 431MB]. Now the question is how I can do to…
0
votes
1 answer

why isnt my gridded data showing up on basemap?

I am trying to plot NASA GISS gridded temperature data but my maps keep showing up blank. Below is my code: import pandas as pd import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.basemap import Basemap import geopandas as…
0
votes
2 answers

Calculate difference in variable within same day in two nc file

I have two NC files with ERA5land precipitation data from the months AMJJASO of 2001-2020. One NC file of precipitation data from UTC 00.00 and one NC file with precipitation data from UTC 12.00. I would like to subtract the precipitation from UTC…
Thomas
  • 441
  • 3
  • 16
0
votes
1 answer

How to multiply with a constant a selected region of a gridded Netcdf file for all the variables with NCO or CDO?

I have a gridded netcdf file with several variables. I want to multiply all the variables with a constant value c but ONLY for a selected region of the grid. with NCO for one variable for example I do the following ncap2 -s 'where((lat >= 40.55 &&…
Nat
  • 325
  • 2
  • 13
0
votes
1 answer

Extracting dates that satisfied multiple conditions using NCO/CDO or bash

I have a netcdf file containing vorticity (per sec) and winds (m/s). I want to print the dates of gridpoints that satisfy the following conditions: 1). Vorticity > 1x10^-5 per sec and winds >= 5 m/s at a gridpoint. 2). The average of vorticity and…
Lyndz
  • 347
  • 1
  • 13
  • 30
0
votes
1 answer

chanaging standard_name and long_name with NCO

I calculated the potential temperaure from a NetCDF file. I would like to change standard_name and long_name with NCO. I have tried some commands without sucess, e.g.: > ncatted -a name,Temperature,o,c,"Potential_Temperature"…
ahmathelte
  • 559
  • 3
  • 15
0
votes
1 answer

How to return the season of each yearly maximum value is in?

I have a daily netcdf dataset. I want to get each year maximum value, and return the season of the maximum value is in. I have tried the xarray.DataArray.idxmax, below is the example, it can return the coordinate label of the maximum value along a…
shen159876
  • 11
  • 1
0
votes
1 answer

Problems with NetCDF regridding, python

Hello, everyone, this is my first question here ^^ I need to regrid some NetCDF files, so I've tried to do it with cdo and cf modules, but everything failed. Maybe someone knows some other modules for this purposes or can help me to get rid of my…
vakuoka
  • 1
  • 2
0
votes
1 answer

ESGF `wget` scripts incorrectly generating; linking to a random unrelated file

About half the time when I click on WGET script following a CMIP6 data search on the ESGF (LLNL node), I get a wget script that only points to one, unrelated file. It's always the same one, too. Here's the relevant line that shows up in each wget…
ks905383
  • 160
  • 7