def __init__(self, verb=False): """ __init__(self, verb=False) -> None Initial function. Welcome the user. @param verb: Get information while operations (Optional, False by default). @type verb: boolean @return: None """ self.envos = myEnv.oOP() if verb: print "Welcome to data Operation class of myFit."
# -*- coding: utf-8 -*- #!/usr/bin/env python """ MYRaf FIT/FITS Module. Note that all modules with name started by 'my' such as myFit, myEnv are MYRaf's third party modules. For further information: from myraflib import myCal help(myCal) """ import myEnv import myFit envos = myEnv.oOP() fitdata = myFit.dOP() fitstat = myFit.sOP() fithead = myFit.hOP() __all__ = ["combine", "zerocombine"] def combine(inFiles, oFile, method, rejection, skp=True, verb=False): """ combine(self, inFiles, oFile, method, rejection, verb=verb) -> None Creates a combine of a list of images. @param inFiles: List of input files name. @type inFiles: string @param oFile: Path for output file. @type oFile: string @param method: Combine type. 'MEDIAN', 'AVERAGE', 'SUM', 'MEAN', 'EXTRACT'.