Personal tools
You are here: Home CDAT Tips and Tricks File I/O Tips Mysterious "third argument" in data ingestion
Document Actions

Mysterious "third argument" in data ingestion


  Table of Contents Previous Next
Contents Previous Next

Goal: Learn about the mysterious "third argument" in data ingestion in CDAT.

In the standard data ingest command :
 s=f(‘var’,time=(t1,t2))

there is a third, implied argument,  defaulted to ‘ccn’.  

The first 2 letters represents the bounds of the retrieved segment they can be
c” or “o” as in “Closed” or “Opened”:
‘cc’ : [v1,v2]
‘co’ : [v1,v2[
‘oo’ : ]v1, v2[

The third letter represents the search method, it can be
b’, ’n’, ‘e’ or ‘s’ as in ‘Bounds’,’Node’, ‘Extranode’ or ‘Select
i.e the cell will be considered valid if the bounds or node are
within the interval defined


In the example below:
        (v1,v2,’ccb’) selects
        (v1,v2,’ccn’) does not select
e’: same as n but add an extra node
s’: select axis elements for which the cell boundary is a subset of the interval

third_argument.gif


  Table of Contents Previous Next
Contents Previous Next

Powered by Plone