Personal tools
You are here: Home CDAT Tips and Tricks File I/O Tips Keywords to data ingestion in CDAT
Document Actions

Keywords to data ingestion in CDAT


  Table of Contents Previous Next
Contents Previous Next

Goal: Learn about keywords to data ingestion in CDAT.

Some important keywords for data ingestion (cdms manual  page 103)

squeeze=0/1 # deletes dimensions of length 1 

order=‘…zyxt(mydim)…’ # Reorders the data

cdms selectors - a specification of a region of data to be selected, 
predefined in cdutils (cdms manual  page 104)

from cdms.selectors import Selector

sel = Selector(time=(’1979-1-1’,’1979-2-1’),level=1000.)
x1 = v1(sel) # equivalent to x1 = f('varid', sel)
x2 = v2(sel)
Other important selector keywords (cdms manual  page 104)
  • required    - Require that the axis IDs be present. value = List of axis identifiers. 
  • raw    -  Return a masked array; 0: return a transient variable (default); =1: return a masked array.
  • grid    -  Regrid the result to the grid. value = Grid object.

  Table of Contents Previous Next
Contents Previous Next

Powered by Plone