Skip to content

Commit

Permalink
Merge pull request #49 from pllim/add-hst-dq
Browse files Browse the repository at this point in the history
Added DQ plugin data files for HST
  • Loading branch information
pllim committed Nov 23, 2015
2 parents e40b97e + 91ce813 commit ed985d9
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 1 deletion.
19 changes: 19 additions & 0 deletions stginga/data/dqflags_acs.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# INSTRUMENT = ACS
DQFLAG SHORT_DESCRIPTION LONG_DESCRIPTION
0 "OK" "Good pixel"
1 "LOST" "Lost during compression"
2 "FILLED" "Replaced by fill value"
4 "BADPIX" "Bad detector pixel or beyond aperture or HRC upper-right defect"
8 "MASKED" "Masked by aperture feature or HRC occulting finger"
16 "HOT" "Hot pixel"
32 "CTE" "CTE tail"
64 "WARM" "Warm pixel (since Oct 8, 2004) or permanent hot pixel (before Oct 8, 2004)"
128 "BADCOL" "Bad column"
256 "SATURATED" "Full-well or A-to-D saturated pixel"
512 "BADREF" "Bad pixel in reference file (FLAT, polarizer, or dust mote)"
1024 "TRAP" "Charge trap"
2048 "ATODSAT" "A-to-D saturated pixel"
4096 "CRDRIZ" "Cosmic ray and detector artifact (AstroDrizzle, CR-SPLIT)"
8192 "CRREJ" "Cosmic ray (ACSREJ)"
16384 "USER" "Manually flagged by user"
32768 "UNUSED" "Not used"
19 changes: 19 additions & 0 deletions stginga/data/dqflags_hstgen.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# INSTRUMENT = HSTGENERIC
DQFLAG SHORT_DESCRIPTION LONG_DESCRIPTION
0 "OK" "Good pixel"
1 "LOST" "Lost during compression"
2 "FILLED" "Replaced by fill value"
4 "BADPIX" "Bad detector pixel or beyond aperture"
8 "MASKED" "Masked by aperture feature"
16 "HOT" "Hot pixel"
32 "CTE" "CTE tail"
64 "WARM" "Warm pixel"
128 "BADCOL" "Bad column"
256 "SATURATED" "Full-well or A-to-D saturated pixel"
512 "BADREF" "Bad pixel in reference file (FLAT)"
1024 "TRAP" "Charge trap"
2048 "ATODSAT" "A-to-D saturated pixel"
4096 "CRDRIZ" "Cosmic ray and detector artifact (AstroDrizzle, CR-SPLIT)"
8192 "CRREJ" "Cosmic ray (CRREJ)"
16384 "USER" "Manually flagged by user"
32768 "UNUSED" "Not used"
19 changes: 19 additions & 0 deletions stginga/data/dqflags_wfc3.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# INSTRUMENT = WFC3
DQFLAG SHORT_DESCRIPTION LONG_DESCRIPTION
0 "OK" "Good pixel"
1 "LOST" "Lost during compression"
2 "FILLED" "Replaced by fill value"
4 "BADPIX" "Bad detector pixel or beyond aperture"
8 "MASKED" "Masked by occulting bar or deviant IR zero-read pixel"
16 "HOT" "Hot pixel"
32 "CTE" "UVIS CTE tail or IR unstable pixel"
64 "WARM" "Warm pixel"
128 "BADBIAS" "Bad bias value"
256 "SATURATED" "Full-well or A-to-D saturated pixel"
512 "BADREF" "Bad pixel in reference file (FLAT)"
1024 "TRAP" "UVIS charge trap, SINK pixel, or CR spike detected during cridcalc IR"
2048 "ATODSAT" "A-to-D saturated pixel or IR zero-read signal correction"
4096 "CRDRIZ" "Cosmic ray and detector artifact (AstroDrizzle)"
8192 "CRREJ" "Rejected during image combination UVIS or IR CR rejection"
16384 "CRMAX" "Pixel has more than max CRs, ghost, or crosstalk"
32768 "USER" "Manually flagged by user"
2 changes: 1 addition & 1 deletion stginga/examples/configs/plugin_DQInspect.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#dqstr = 'long'

# DQ definition files (JWST)
dqdict = {'NIRCAM': 'data/dqflags_jwst.txt', 'NIRSPEC': 'data/dqflags_jwst.txt', 'NIRISS': 'data/dqflags_jwst.txt', 'MIRI': 'data/dqflags_jwst.txt'}
dqdict = {'NIRCAM': 'data/dqflags_jwst.txt', 'NIRSPEC': 'data/dqflags_jwst.txt', 'NIRISS': 'data/dqflags_jwst.txt', 'MIRI': 'data/dqflags_jwst.txt', 'ACS': 'data/dqflags_acs.txt', 'WFC3': 'data/dqflags_wfc3.txt', 'COS': 'data/dqflags_hstgen.txt', 'STIS': 'data/dqflags_hstgen.txt', 'WFPC2': 'data/dqflags_hstgen.txt'}

# Color to mark a single pixel for inspection
#pxdqcolor = 'red'
Expand Down

0 comments on commit ed985d9

Please sign in to comment.