Package invocations :: Package cu2 :: Module cu2jpeg
[hide private]

Module cu2jpeg

source code

Make JPEGS of pixel data. This will make compressed images for all pixel data in the input transfer log.


Author: E. Sutorius

Organization: WFAU, IfA, University of Edinburgh

Contributors: R.S. Collins

Requires: PyFITS

Functions [hide private]
 
createThumbnailImage(fileName, compName, cu2Path, dateVersStr)
Creates a JPEG thumbnail image of the given FITS file.
source code
 
main(argv)
Make JPEGS of pixel data.
source code
Variables [hide private]
  contrast = 0.25
Greyscale contrast: structures: 0.25; smooth: 1.042
  quality = 90
JPEG quality (0-100).
  scrunch = 2
Pixel super bin size in rebinning process.
  re_datevers = re.compile(r'((\d{8})_v(\d)(.?\d+))')
  __package__ = 'invocations.cu2'
Function Details [hide private]

createThumbnailImage(fileName, compName, cu2Path, dateVersStr)

source code 

Creates a JPEG thumbnail image of the given FITS file.

Parameters:
  • fileName (str) - Full path to the FITS file.
  • compName (str) - Full path for the JPEG thumbnail image.
  • cu2Path (str) - Path to the CU2 directory.
  • dateVersStr (str) - Date-version string of the processed file batch.

main(argv)

source code 

Make JPEGS of pixel data. This will make compressed images for all pixel data in the input transfer log.

curator is a string identifying the archive curation scientist that instigated this invocation; xferlog is the filename of the logged successful file transfers from the data processing centre. outpath path where products/jpgs is created comment is a string for the archive curation scientist to supply an optional note for recording in the curation history;