Package nictools :: Module fsutil
[hide private]
[frames] | no frames]

Module fsutil

source code


Version: 0.1 (2008 Mar 12)

Functions [hide private]
 
all_printMsg(message, level=1) source code
 
printMsg(message, level=0) source code
 
setVerbosity(verbosity_level)
Copy verbosity to a variable that is global for this file.
source code
bool
checkVerbosity(level)
Returns: true if verbosity is at least as great as level.
source code
 
setThresh(thresh_value)
Copy thresh to a variable that is global for this file.
source code
 
setMedfile(medfile_value)
Copy medfile to a variable that is global for this file.
source code
 
setCallist(callist_value)
Copy callist to a variable that is global for this file.
source code
Variables [hide private]
  QUIET = 0
  VERBOSE = 1
  VERY_VERBOSE = 2
  verbosity = 1
  thresh = 0.5
  medfile = 'PY_Med_image.fits'
  callist = '/hal/data2/dev/nicmos_ped/inlist1.lst'
  __package__ = 'nictools'

Imports: sys


Function Details [hide private]

all_printMsg(message, level=1)

source code 
Parameters:
  • message (string) - message to print
  • level (int) - verbosity level

printMsg(message, level=0)

source code 
Parameters:
  • message (string) - message to print
  • level (int) - verbosity level

setVerbosity(verbosity_level)

source code 

Copy verbosity to a variable that is global for this file.

Parameters:
  • verbosity_level (int) - level of verbosity

checkVerbosity(level)

source code 
Parameters:
  • level (int) - level of verbosity
Returns: bool
true if verbosity is at least as great as level.

setThresh(thresh_value)

source code 

Copy thresh to a variable that is global for this file.

Parameters:
  • thresh_value (float) - level of threshold

setMedfile(medfile_value)

source code 

Copy medfile to a variable that is global for this file.

Parameters:
  • medfile_value (string) - name of output file for masked median image

setCallist(callist_value)

source code 

Copy callist to a variable that is global for this file.

Parameters:
  • callist_value (string) - name of file listing cal files