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

Module etc

source code

Module intended to replace the existing etc interface with the refactored user interface.

Functions [hide private]
 
getparms(parlist)
The ETC presently sends along a bunch of information in key-value pairs that pysynphot utterly ignores.
source code
 
parse_spec(syncommand)
Parse the synphot-classic command and return the resulting spectrum
source code
 
calcphot(parlist)
Calculate either effstim or efflam, depending on the input argument
source code
 
calcspec(parlist)
Calculate the spectrum & write it to a FITS file
source code
 
countrate(parlist)
Return the pivot wavelength and countrate of the spectrum as observed through the obsmode, but based on the native waveset
source code
 
specrate(parlist)
Return the countrate of the spectrum as observed through the obsmode, based on the binned wavelength set; and write the resulting spectrum to a file, returning the filename.
source code
 
thermback(parlist)
Return the thermal background rate for the obsmode
source code
 
updatetabs(dummy)
Check for new GRAPH/COMP/THERM tables
source code
 
showfiles(parlist)
For debugging: print tmg/tmc/tmt and showfiles to a file for the given obsmode.
source code
 
Suicide(dummy)
Kill this process
source code
 
version(dummy)
Return version string stashed in versioninfo.dat
source code
 
etccalc(obsmode, spectrum, filename=None) source code
Variables [hide private]
  tasks = {'calcphot': calcphot, 'calcspec': calcspec, 'countrat...
Function Details [hide private]

getparms(parlist)

source code 

The ETC presently sends along a bunch of information in key-value pairs that pysynphot utterly ignores. This function builds a dictionary from the few elements it actually uses.

showfiles(parlist)

source code 

For debugging: print tmg/tmc/tmt and showfiles to a file for the given obsmode.

For nonserver use: foo='showfiles&obsmode="acs,hrc,f555w"&output="testme2.txt"' etc.showfiles(foo.split('&')[1:])


Variables Details [hide private]

tasks

Value:
{'calcphot': calcphot, 'calcspec': calcspec, 'countrate': countrate, '\
showfiles': showfiles, 'SpecSourcerateSpec': specrate, 'thermback': th\
ermback, 'updatetabs': updatetabs, 'version': version, 'quit': Suicide\
}