Package pysynphot :: Module spparser
[hide private]
[frames] | no frames]

Module spparser

source code

Classes [hide private]
  Token
  AST
  BaseScanner
  Scanner
  BaseParser
  Interpreter
Functions [hide private]
 
convertstr(value) source code
 
scan(input) source code
 
parse(tokens) source code
 
interpret(ast) source code
 
ptokens(tlist) source code
 
_handleIRAFName(name)
If there's a $, call irafconvert; if there's a / or a \, just return what you got; otherwise prepend locations.specdir.
source code
 
_handleThroughputFiles(name) source code
Variables [hide private]
  syfunctions = ['spec', 'unit', 'box', 'bb', 'pl', 'em', 'hi', ...
  synforms = ['fnu', 'flam', 'photnu', 'photlam', 'counts', 'abm...
  syredlaws = ['gal1', 'gal2', 'gal3', 'smc', 'lmc', 'xgal']
  zzz = '\n \n top ::= FILELIST\n\n '
Function Details [hide private]

_handleIRAFName(name)

source code 

If there's a $, call irafconvert; if there's a / or a \, just return what you got; otherwise prepend locations.specdir. This should be replaced by one of the many IRAF filename conversion utilities floating around in our system.


Variables Details [hide private]

syfunctions

Value:
['spec',
 'unit',
 'box',
 'bb',
 'pl',
 'em',
 'hi',
 'cat',
...

synforms

Value:
['fnu',
 'flam',
 'photnu',
 'photlam',
 'counts',
 'abmag',
 'stmag',
 'obmag',
...