ctools
2.0.0
|
Public Member Functions | |
def | __init__ |
def | process |
def | save |
Private Member Functions | |
def | _get_parameters |
def | _init_ts_map |
def | _merge_ts_map |
def | _get_number_of_ts_pixels |
Private Attributes | |
_files | |
_in_filename | |
_tsmap | |
_statusmap | |
_maps | |
_mapnames | |
_merged_files | |
_overwrite | |
_delete | |
Merge Test Statistic maps.
Definition at line 31 of file cstsmapmerge.py.
def cscripts.cstsmapmerge.cstsmapmerge.__init__ | ( | self, | |
argv | |||
) |
Constructor.
Definition at line 37 of file cstsmapmerge.py.
|
private |
Return number of pixels with TS values. Args: fitsfile: FITS file to be merged. Returns: Number of pixels for which TS has been computed.
Definition at line 227 of file cstsmapmerge.py.
Referenced by cscripts.cstsmapmerge.cstsmapmerge.process().
|
private |
Get parameters from parfile.
Definition at line 60 of file cstsmapmerge.py.
References cscripts.cstsmapmerge.cstsmapmerge._delete, cscripts.cstsmapmerge.cstsmapmerge._files, cscripts.csmodelmerge.csmodelmerge._files, and cscripts.cstsmapmerge.cstsmapmerge._overwrite.
Referenced by cscript_base.cscript_base.process(), cscript_obs.cscript_obs.process(), cscript_like.cscript_like.process(), cscripts.cstsmapsplit.cstsmapsplit.process(), cscripts.cstsmapmerge.cstsmapmerge.process(), cscripts.csworkflow.csworkflow.process(), and cscripts.csviscube.csviscube.process().
|
private |
Initialise Test Statistic map.
Definition at line 122 of file cstsmapmerge.py.
References cscripts.cstsmapmerge.cstsmapmerge._in_filename, cscripts.cstsmapmerge.cstsmapmerge._mapnames, cscripts.cstsmapmerge.cstsmapmerge._maps, cscripts.cstsmapmerge.cstsmapmerge._statusmap, and cscripts.cstsmapmerge.cstsmapmerge._tsmap.
Referenced by cscripts.cstsmapmerge.cstsmapmerge.process().
|
private |
Merge TS map from FITS file into output TS map. Args: fitsfile: FITS file to be merged.
Definition at line 160 of file cstsmapmerge.py.
References cscripts.cstsmapmerge.cstsmapmerge._in_filename, cscripts.cstsmapmerge.cstsmapmerge._maps, cscripts.cstsmapmerge.cstsmapmerge._overwrite, cscripts.cstsmapmerge.cstsmapmerge._statusmap, and cscripts.cstsmapmerge.cstsmapmerge._tsmap.
Referenced by cscripts.cstsmapmerge.cstsmapmerge.process().
def cscripts.cstsmapmerge.cstsmapmerge.process | ( | self | ) |
Process the script.
Definition at line 251 of file cstsmapmerge.py.
References cscripts.cstsmapmerge.cstsmapmerge._files, cscripts.csmodelmerge.csmodelmerge._files, cscripts.cstsmapmerge.cstsmapmerge._get_number_of_ts_pixels(), cscripts.csobsselect.csobsselect._get_parameters(), cscripts.csadd2caldb.csadd2caldb._get_parameters(), cscripts.csebins.csebins._get_parameters(), cscripts.csmodelselect.csmodelselect._get_parameters(), cscripts.csroot2caldb.csroot2caldb._get_parameters(), cscripts.csresmap.csresmap._get_parameters(), cscripts.csresspec.csresspec._get_parameters(), cscripts.csmodelinfo.csmodelinfo._get_parameters(), cscripts.csmodelmerge.csmodelmerge._get_parameters(), cscripts.csobsinfo.csobsinfo._get_parameters(), cscripts.csfindobs.csfindobs._get_parameters(), cscripts.csiactdata.csiactdata._get_parameters(), cscripts.cstsmapmerge.cstsmapmerge._get_parameters(), cscripts.csiactcopy.csiactcopy._get_parameters(), cscripts.cssrcdetect.cssrcdetect._get_parameters(), cscripts.csmodelsois.csmodelsois._get_parameters(), cscripts.cscaldb.cscaldb._get_parameters(), cscripts.csobs2caldb.csobs2caldb._get_parameters(), cscripts.csbkgmodel.csbkgmodel._get_parameters(), cscripts.cspull.cspull._get_parameters(), cscripts.csfootprint.csfootprint._get_parameters(), cscripts.csiactobs.csiactobs._get_parameters(), cscripts.cstsdist.cstsdist._get_parameters(), cscripts.csobsdef.csobsdef._get_parameters(), cscripts.csspec.csspec._get_parameters(), cscripts.cssens.cssens._get_parameters(), cscripts.csphasecrv.csphasecrv._get_parameters(), cscripts.cslightcrv.cslightcrv._get_parameters(), cscripts.csscs.csscs._get_parameters(), cscripts.csphagen.csphagen._get_parameters(), cscripts.cstsmapmerge.cstsmapmerge._init_ts_map(), cscripts.cstsmapmerge.cstsmapmerge._merge_ts_map(), and cscripts.cstsmapmerge.cstsmapmerge._merged_files.
def cscripts.cstsmapmerge.cstsmapmerge.save | ( | self | ) |
Save TS map and remove slices if requested.
Definition at line 372 of file cstsmapmerge.py.
References cscripts.csmodelmerge.csmodelmerge._clobber, cscripts.cstsmapmerge.cstsmapmerge._delete, cscripts.cstsmapmerge.cstsmapmerge._mapnames, cscripts.cstsmapmerge.cstsmapmerge._maps, cscripts.cstsmapmerge.cstsmapmerge._merged_files, and cscripts.cstsmapmerge.cstsmapmerge._statusmap.
|
private |
Definition at line 53 of file cstsmapmerge.py.
Referenced by cscripts.cstsmapmerge.cstsmapmerge._get_parameters(), and cscripts.cstsmapmerge.cstsmapmerge.save().
|
private |
Definition at line 45 of file cstsmapmerge.py.
Referenced by cscripts.cstsmapmerge.cstsmapmerge._get_parameters(), and cscripts.cstsmapmerge.cstsmapmerge.process().
|
private |
Definition at line 46 of file cstsmapmerge.py.
Referenced by cscripts.cstsmapmerge.cstsmapmerge._init_ts_map(), and cscripts.cstsmapmerge.cstsmapmerge._merge_ts_map().
|
private |
Definition at line 50 of file cstsmapmerge.py.
Referenced by cscripts.cstsmapmerge.cstsmapmerge._init_ts_map(), and cscripts.cstsmapmerge.cstsmapmerge.save().
|
private |
Definition at line 49 of file cstsmapmerge.py.
Referenced by cscripts.cstsmapmerge.cstsmapmerge._init_ts_map(), cscripts.cstsmapmerge.cstsmapmerge._merge_ts_map(), and cscripts.cstsmapmerge.cstsmapmerge.save().
|
private |
Definition at line 51 of file cstsmapmerge.py.
Referenced by cscripts.cstsmapmerge.cstsmapmerge.process(), and cscripts.cstsmapmerge.cstsmapmerge.save().
|
private |
Definition at line 52 of file cstsmapmerge.py.
Referenced by cscripts.cstsmapmerge.cstsmapmerge._get_parameters(), and cscripts.cstsmapmerge.cstsmapmerge._merge_ts_map().
|
private |
Definition at line 48 of file cstsmapmerge.py.
Referenced by cscripts.cstsmapmerge.cstsmapmerge._init_ts_map(), cscripts.cstsmapmerge.cstsmapmerge._merge_ts_map(), and cscripts.cstsmapmerge.cstsmapmerge.save().
|
private |
Definition at line 47 of file cstsmapmerge.py.
Referenced by cscripts.cstsmapmerge.cstsmapmerge._init_ts_map(), and cscripts.cstsmapmerge.cstsmapmerge._merge_ts_map().