casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables
Functions
vishead_util Namespace Reference

Functions

def getput_keyw
def keyword_exists
def dict2direction_strs
def getrefunits
def valref2direction_strs
def secArray2localDate
def valref2localDate
def strip_r1
def digest

Function Documentation

def vishead_util.dict2direction_strs (   raddict,
  csys = 'J2000',
  units = ('rad', 'rad' 
)
Returns a list containing the values of raddict, sorted by the keys, and
converted to directions if possible.

Definition at line 96 of file vishead_util.py.

Referenced by valref2direction_strs().

def vishead_util.digest (   tup)
Given a (val, dict) tuple, returns a string with the boring stuff removed.

Definition at line 154 of file vishead_util.py.

References asap.asapmath.keys, tests.test_imcontsub.list, and strip_r1().

def vishead_util.getput_keyw (   mode,
  vis,
  key,
  hdindex,
  hdvalue = '',
  hdref = None 
)

Definition at line 9 of file vishead_util.py.

References tests.test_imcontsub.list.

Referenced by task_vishead.vishead().

def vishead_util.getrefunits (   d,
  defunits = None 
)
Given a dictionary d, this tries to extract a reference system and units
from it.  Returns some combination of ('UNKNOWN', defunits) on failure.

Definition at line 113 of file vishead_util.py.

Referenced by valref2direction_strs(), and valref2localDate().

def vishead_util.keyword_exists (   vis,
  key 
)

Definition at line 79 of file vishead_util.py.

Referenced by task_vishead.vishead().

def vishead_util.secArray2localDate (   secArray,
  timesys = 'UTC',
  timeunit = 's' 
)
Given an array containing a float assumed to be timesys timeunits, returns a
string of it as a local date.

Definition at line 133 of file vishead_util.py.

Referenced by valref2localDate().

def vishead_util.strip_r1 (   scheddict)
Given a dictionary with an 'r1' key, remove the r1 layer.

Definition at line 148 of file vishead_util.py.

Referenced by digest().

def vishead_util.valref2direction_strs (   valreftuple)
Splits a (values, ref_desc) pair and passes it on to dict2direction_strs().

Definition at line 126 of file vishead_util.py.

References dict2direction_strs(), and getrefunits().

def vishead_util.valref2localDate (   valreftuple)
Splits a (values, ref_desc) pair and passes it on to secArray2localDate().

Definition at line 141 of file vishead_util.py.

References getrefunits(), and secArray2localDate().