nctoolkit.DataSet.cdo_command#
- DataSet.cdo_command(command=None, ensemble=False, check=False)#
cdo_command: Apply a cdo command
- Parameters:
command (string) – cdo command to call. This command must be such that “cdo {command} infile outfile” will run.
ensemble (bool) – Is this an ensemble method command? For example ensmean, mergetime, etc.
check (bool) – Check whether the command is valid
Examples
Use CDO to select a year from a dataset >>> ds.cdo_command(“selyear,2000”)