Package nictools :: Module nic_rem_persist :: Class NicRemPersist
[hide private]
[frames] | no frames]

Class NicRemPersist

source code

Remove bright earth persistence persistence from CAL file of NICMOS data (on which pedsub has been run) using a medianed persistence model,
    based on correction calculated from PED file.

pyraf example:
--> nrp = nic_rem_persist.NicRemPersist('n9r7b2bjq_ped.fits', persist_model = 'persistring.fits', persist_mask = 'persist_mask.fits',
              used_lo = .3, persist_lo = 0.8)
--> nrp.persist()

linux command line example: 
   hal> ./nic_rem_persist.py 'n9r7b2bjq_ped.fits','n9r7b2bjq_cal.fits' -d 'same_as_persistring.fits' -m 'same_as_persist_mask.fits' -u 0.4 -p 1.3 -v

Instance Methods [hide private]
 
__init__(self, calcfile, targfile, verbosity=1, persist_lo=None, used_lo=None, persist_model=None, persist_mask=None, run_stdout=None)
constructor
source code
 
persist(self)
remove persistence due to the full bright Earth.
source code
 
print_pars(self)
Print input parameters and calculated values.
source code
Method Details [hide private]

__init__(self, calcfile, targfile, verbosity=1, persist_lo=None, used_lo=None, persist_model=None, persist_mask=None, run_stdout=None)
(Constructor)

source code 

constructor

Parameters:
  • calcfile (string) - name of ped file
  • targfile (string) - name of cal file
  • persist_lo (Float32) - minimum allowed value of the persistence
  • used_lo (Float32) - minimum allowed value of the fraction of pixels used
  • persist_model (string) - filename containing persistence frame (ring median of)
  • persist_mask (string) - filename containing pixel mask
  • run_stdout (file handle) - open trailer file (pipeline use only)