nctoolkit.DataSet.nco_command#

DataSet.nco_command(self, command=None, ensemble=False)#

Apply an nco command

Parameters
  • command (string) – nco command to call. This must be of a form such that “nco {command} infile outfile” will run.

  • ensemble (boolean) – Set to True if you want the command to take all of the files as input. This is useful for ensemble methods.

Examples

Select a variable from a file >>> ds.nco_command(“ncks -v tas”)