diff options
author | Nadia Dencheva <nadia.astropy@gmail.com> | 2016-08-07 12:23:24 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-07 12:23:24 -0400 |
commit | a2e16e39b0eb8ac0251a6473c60fee0d437c3a5f (patch) | |
tree | 7b6771e9c1974852eb8a283507677651078ce32a /lib/stwcs/gui/pars | |
parent | 86d1bc5a77491770d45b86e5cf18b79ded68fb9b (diff) | |
parent | 2dc0676bc00f66a87737e78484876051633b731a (diff) | |
download | stwcs_hcf-a2e16e39b0eb8ac0251a6473c60fee0d437c3a5f.tar.gz |
Merge pull request #9 from nden/refactor-and-tests
restructure and add stwcs tests
Diffstat (limited to 'lib/stwcs/gui/pars')
-rw-r--r-- | lib/stwcs/gui/pars/apply_headerlet.cfg | 10 | ||||
-rw-r--r-- | lib/stwcs/gui/pars/apply_headerlet.cfgspc | 12 | ||||
-rw-r--r-- | lib/stwcs/gui/pars/archive_headerlet.cfg | 14 | ||||
-rw-r--r-- | lib/stwcs/gui/pars/archive_headerlet.cfgspc | 14 | ||||
-rw-r--r-- | lib/stwcs/gui/pars/attach_headerlet.cfg | 4 | ||||
-rw-r--r-- | lib/stwcs/gui/pars/attach_headerlet.cfgspc | 4 | ||||
-rw-r--r-- | lib/stwcs/gui/pars/delete_headerlet.cfg | 6 | ||||
-rw-r--r-- | lib/stwcs/gui/pars/delete_headerlet.cfgspc | 6 | ||||
-rw-r--r-- | lib/stwcs/gui/pars/extract_headerlet.cfg | 7 | ||||
-rw-r--r-- | lib/stwcs/gui/pars/extract_headerlet.cfgspc | 7 | ||||
-rw-r--r-- | lib/stwcs/gui/pars/headerlet_summary.cfg | 8 | ||||
-rw-r--r-- | lib/stwcs/gui/pars/headerlet_summary.cfgspc | 8 | ||||
-rw-r--r-- | lib/stwcs/gui/pars/restore_headerlet.cfg | 10 | ||||
-rw-r--r-- | lib/stwcs/gui/pars/restore_headerlet.cfgspc | 12 | ||||
-rw-r--r-- | lib/stwcs/gui/pars/updatewcs.cfg | 8 | ||||
-rw-r--r-- | lib/stwcs/gui/pars/updatewcs.cfgspc | 8 | ||||
-rw-r--r-- | lib/stwcs/gui/pars/write_headerlet.cfg | 18 | ||||
-rw-r--r-- | lib/stwcs/gui/pars/write_headerlet.cfgspc | 18 |
18 files changed, 0 insertions, 174 deletions
diff --git a/lib/stwcs/gui/pars/apply_headerlet.cfg b/lib/stwcs/gui/pars/apply_headerlet.cfg deleted file mode 100644 index 06d6daf..0000000 --- a/lib/stwcs/gui/pars/apply_headerlet.cfg +++ /dev/null @@ -1,10 +0,0 @@ -_task_name_ = apply_headerlet -filename = "" -hdrlet = "" -attach = True -primary = True -archive = True -force = False -wcskey = "" -wcsname = "" -logging = False diff --git a/lib/stwcs/gui/pars/apply_headerlet.cfgspc b/lib/stwcs/gui/pars/apply_headerlet.cfgspc deleted file mode 100644 index 648e562..0000000 --- a/lib/stwcs/gui/pars/apply_headerlet.cfgspc +++ /dev/null @@ -1,12 +0,0 @@ -_task_name_ = string_kw(default="apply_headerlet") -filename = string_kw(default="", comment="Input file name") -hdrlet = string_kw(default="", comment="Headerlet FITS filename") -attach = boolean_kw(default=True, comment= "Append headerlet to FITS file as new extension?") -primary = boolean_kw(default=True, triggers="_rule1_", comment="Replace PRIMARY WCS with headerlet WCS?") -archive = boolean_kw(default=True, active_if="_rule1_", comment="Save PRIMARY WCS as new headerlet extension?") -force = boolean_kw(default=False, active_if="_rule1_", comment="If distortions do not match, force update anyway?") -wcskey = option_kw("A","B","C","D","E","F","G","H","I","J","K","L","M","N","P","Q","R","S","T","U","V","W","X","Y","Z","", default="", inactive_if="_rule1_", comment="Apply headerlet as alternate WCS with this letter") -wcsname = string_kw(default="", inactive_if="_rule1_", comment="Apply headerlet as alternate WCS with this name") -logging = boolean_kw(default=False, comment= "Enable logging to a file") -[ _RULES_ ] -_rule1_ = string_kw(default=True, code='tyfn={"yes":True, "no":False}; OUT = tyfn[VAL]') diff --git a/lib/stwcs/gui/pars/archive_headerlet.cfg b/lib/stwcs/gui/pars/archive_headerlet.cfg deleted file mode 100644 index 97cd7ef..0000000 --- a/lib/stwcs/gui/pars/archive_headerlet.cfg +++ /dev/null @@ -1,14 +0,0 @@ -_task_name_ = archive_headerlet -filename = "" -hdrname = "" -sciext = "SCI" -wcsname = "" -wcskey = "PRIMARY" -destim = "" -sipname = "" -npolfile = "" -d2imfile = "" -author = "" -descrip = "" -history = "" -logging = False
\ No newline at end of file diff --git a/lib/stwcs/gui/pars/archive_headerlet.cfgspc b/lib/stwcs/gui/pars/archive_headerlet.cfgspc deleted file mode 100644 index 03e67f0..0000000 --- a/lib/stwcs/gui/pars/archive_headerlet.cfgspc +++ /dev/null @@ -1,14 +0,0 @@ -_task_name_ = string_kw(default="archive_headerlet") -filename = string_kw(default="", comment="Input file name") -hdrname = string_kw(default="", comment="Unique name(HDRNAME) for headerlet") -sciext = string_kw(default="SCI", comment="EXTNAME of extension with WCS") -wcsname = string_kw(default="", comment="Name of WCS to be archived") -wcskey = option_kw("A","B","C","D","E","F","G","H","I","J","K","L","M","N","P","Q","R","S","T","U","V","W","X","Y","Z","PRIMARY", default="PRIMARY", comment="Archive the WCS with this letter") -destim = string_kw(default="", comment="Rootname of image to which this headerlet applies ") -sipname = string_kw(default="", comment="Name for source of polynomial distortion keywords") -npolfile = string_kw(default="", comment="Name for source of non-polynomial residuals") -d2imfile = string_kw(default="", comment="Name for source of detector correction table") -author = string_kw(default="", comment="Author name for creator of headerlet") -descrip = string_kw(default="", comment="Short description of headerlet solution") -history = string_kw(default="", comment="Name of ASCII file containing history for headerlet") -logging = boolean_kw(default=False, comment= "Enable logging to a file")
\ No newline at end of file diff --git a/lib/stwcs/gui/pars/attach_headerlet.cfg b/lib/stwcs/gui/pars/attach_headerlet.cfg deleted file mode 100644 index d131a70..0000000 --- a/lib/stwcs/gui/pars/attach_headerlet.cfg +++ /dev/null @@ -1,4 +0,0 @@ -_task_name_ = attach_headerlet -filename = "" -hdrlet = "" -logging = False diff --git a/lib/stwcs/gui/pars/attach_headerlet.cfgspc b/lib/stwcs/gui/pars/attach_headerlet.cfgspc deleted file mode 100644 index bc91bca..0000000 --- a/lib/stwcs/gui/pars/attach_headerlet.cfgspc +++ /dev/null @@ -1,4 +0,0 @@ -_task_name_ = string_kw(default="attach_headerlet") -filename = string_kw(default="", comment="FITS image file name") -hdrlet = string_kw(default="", comment="Headerlet FITS filename") -logging = boolean_kw(default=False, comment= "Enable logging to a file")
\ No newline at end of file diff --git a/lib/stwcs/gui/pars/delete_headerlet.cfg b/lib/stwcs/gui/pars/delete_headerlet.cfg deleted file mode 100644 index d156937..0000000 --- a/lib/stwcs/gui/pars/delete_headerlet.cfg +++ /dev/null @@ -1,6 +0,0 @@ -_task_name_ = delete_headerlet -filename = "" -hdrname = "" -hdrext = None -distname = "" -logging = False
\ No newline at end of file diff --git a/lib/stwcs/gui/pars/delete_headerlet.cfgspc b/lib/stwcs/gui/pars/delete_headerlet.cfgspc deleted file mode 100644 index 43790b1..0000000 --- a/lib/stwcs/gui/pars/delete_headerlet.cfgspc +++ /dev/null @@ -1,6 +0,0 @@ -_task_name_ = string_kw(default="delete_headerlet") -filename = string_kw(default="", comment="FITS image file name(s), list or wild-card") -hdrname = string_kw(default="", comment="Delete headerlet with this HDRNAME") -hdrext = integer_or_none_kw(default=None, comment="Delete headerlet from this extension") -distname = string_kw(default="", comment="Delete *ALL* with this DISTNAME") -logging = boolean_kw(default=False, comment= "Enable logging to a file") diff --git a/lib/stwcs/gui/pars/extract_headerlet.cfg b/lib/stwcs/gui/pars/extract_headerlet.cfg deleted file mode 100644 index 3dd0a7a..0000000 --- a/lib/stwcs/gui/pars/extract_headerlet.cfg +++ /dev/null @@ -1,7 +0,0 @@ -_task_name_ = extract_headerlet -filename = "" -output = "" -extnum = None -hdrname = "" -clobber = True -logging = False diff --git a/lib/stwcs/gui/pars/extract_headerlet.cfgspc b/lib/stwcs/gui/pars/extract_headerlet.cfgspc deleted file mode 100644 index b50d4bf..0000000 --- a/lib/stwcs/gui/pars/extract_headerlet.cfgspc +++ /dev/null @@ -1,7 +0,0 @@ -_task_name_ = string_kw(default="extract_headerlet") -filename = string_kw(default="", comment="Input file name") -output = string_kw(default="", comment="Output headerlet FITS filename") -extnum = integer_or_none_kw(default=None, comment="FITS extension number of headerlet") -hdrname = string_kw(default="", comment="Unique name(HDRNAME) for headerlet") -clobber = boolean_kw(default=True, comment= "Overwrite existing headerlet FITS file?") -logging = boolean_kw(default=False, comment= "Enable logging to a file") diff --git a/lib/stwcs/gui/pars/headerlet_summary.cfg b/lib/stwcs/gui/pars/headerlet_summary.cfg deleted file mode 100644 index 7203552..0000000 --- a/lib/stwcs/gui/pars/headerlet_summary.cfg +++ /dev/null @@ -1,8 +0,0 @@ -_task_name_ = headerlet_summary -filename = "" -columns = None -pad = 2 -maxwidth = None -output = "" -clobber = True -quiet = False diff --git a/lib/stwcs/gui/pars/headerlet_summary.cfgspc b/lib/stwcs/gui/pars/headerlet_summary.cfgspc deleted file mode 100644 index ce65930..0000000 --- a/lib/stwcs/gui/pars/headerlet_summary.cfgspc +++ /dev/null @@ -1,8 +0,0 @@ -_task_name_ = string_kw(default="headerlet_summary") -filename = string_kw(default="", comment="FITS image file name") -columns = string_kw(default="", comment="Headerlet keyword(s) to be reported") -pad = integer_kw(default=2, comment="Number of spaces between output columns") -maxwidth = integer_or_none_kw(default=None, comment="Max width for each column") -output = string_kw(default="", comment="Name of output file for summary") -clobber = boolean_kw(default=True, comment="Overwrite previously written summary?") -quiet = boolean_kw(default=False, comment="Suppress output of summary to STDOUT?") diff --git a/lib/stwcs/gui/pars/restore_headerlet.cfg b/lib/stwcs/gui/pars/restore_headerlet.cfg deleted file mode 100644 index b0ec427..0000000 --- a/lib/stwcs/gui/pars/restore_headerlet.cfg +++ /dev/null @@ -1,10 +0,0 @@ -_task_name_ = restore_headerlet -filename = "" -archive = True -force = False -distname = "" -primary = None -sciext = "SCI" -hdrname = "" -hdrext = None -logging = False
\ No newline at end of file diff --git a/lib/stwcs/gui/pars/restore_headerlet.cfgspc b/lib/stwcs/gui/pars/restore_headerlet.cfgspc deleted file mode 100644 index df47e3f..0000000 --- a/lib/stwcs/gui/pars/restore_headerlet.cfgspc +++ /dev/null @@ -1,12 +0,0 @@ -_task_name_ = string_kw(default="restore_headerlet") -filename = string_kw(default="", comment="Input file name") -archive = boolean_kw(default=True, comment= "Create headerlets from WCSs being replaced?") -force = boolean_kw(default=False, comment="If distortions do not match, force update anyway?") -distname = string_kw(default="", triggers="_rule1_", comment="Restore ALL headerlet extensions with this DISTNAME") -primary = integer_or_none_kw(default=None, inactive_if="_rule1_", comment="Headerlet extension to restore as new primary WCS") -sciext = string_kw(default="SCI", inactive_if="_rule1_", comment="EXTNAME of extension with WCS") -hdrname = string_kw(default="", active_if="_rule1_", comment="HDRNAME of headerlet extension to be restored") -hdrext = integer_or_none_kw(default=None, active_if="_rule1_", comment="Extension number for headerlet to be restored") -logging = boolean_kw(default=False, comment= "Enable logging to a file") -[ _RULES_ ] -_rule1_ = string_kw(default=True, code='from stwcs import wcsutil;from stwcs.wcsutil import headerlet;OUT = headerlet.is_par_blank(VAL)') diff --git a/lib/stwcs/gui/pars/updatewcs.cfg b/lib/stwcs/gui/pars/updatewcs.cfg deleted file mode 100644 index 35360f2..0000000 --- a/lib/stwcs/gui/pars/updatewcs.cfg +++ /dev/null @@ -1,8 +0,0 @@ -_task_name_ = updatewcs -input = "*flt.fits" -extname = "SCI" -vacorr = True -tddcorr = True -npolcorr = True -d2imcorr = True -checkfiles = True diff --git a/lib/stwcs/gui/pars/updatewcs.cfgspc b/lib/stwcs/gui/pars/updatewcs.cfgspc deleted file mode 100644 index a3a3fb5..0000000 --- a/lib/stwcs/gui/pars/updatewcs.cfgspc +++ /dev/null @@ -1,8 +0,0 @@ -_task_name_ = string_kw(default="updatewcs") -input = string_kw(default="", comment="Input files (name, suffix, or @list)") -extname = string_kw(default="SCI", comment="EXTNAME of extensions to be archived") -vacorr = boolean_kw(default=True, comment= "Apply velocity aberration correction?") -tddcorr = boolean_kw(default=True, comment= "Apply time dependent distortion correction?") -npolcorr = boolean_kw(default=True, comment= "Apply lookup table distortion?") -d2imcorr = boolean_kw(default=True, comment= "Apply detector to image correction?") -checkfiles = boolean_kw(default=True, comment= "Check format of input files?") diff --git a/lib/stwcs/gui/pars/write_headerlet.cfg b/lib/stwcs/gui/pars/write_headerlet.cfg deleted file mode 100644 index 9eb4592..0000000 --- a/lib/stwcs/gui/pars/write_headerlet.cfg +++ /dev/null @@ -1,18 +0,0 @@ -_task_name_ = write_headerlet -filename = "" -output = "" -clobber = True -hdrname = "" -wcskey = "PRIMARY" -wcsname = "" -author = "" -descrip = "" -catalog = "" -history = "" -sciext = "SCI" -destim = "" -sipname = "" -npolfile = "" -d2imfile = "" -attach = True -logging = False
\ No newline at end of file diff --git a/lib/stwcs/gui/pars/write_headerlet.cfgspc b/lib/stwcs/gui/pars/write_headerlet.cfgspc deleted file mode 100644 index ba28b05..0000000 --- a/lib/stwcs/gui/pars/write_headerlet.cfgspc +++ /dev/null @@ -1,18 +0,0 @@ -_task_name_ = string_kw(default="write_headerlet") -filename = string_kw(default="", comment="Input file name") -output = string_kw(default="", comment="Filename for headerlet FITS file") -clobber = boolean_kw(default=True, comment= "Overwrite existing headerlet FITS file?") -hdrname = string_kw(default="", comment="Unique name(HDRNAME) for headerlet[REQUIRED]") -wcskey = option_kw("A","B","C","D","E","F","G","H","I","J","K","L","M","N","P","Q","R","S","T","U","V","W","X","Y","Z","PRIMARY", default="PRIMARY", comment="Create headerlet from WCS with this letter") -wcsname = string_kw(default="", comment="Create headerlet from WCS with this name") -author = string_kw(default="", comment="Author name for creator of headerlet") -descrip = string_kw(default="", comment="Short description of headerlet solution") -catalog = string_kw(default="", comment="Reference frame for headerlet solution") -history = string_kw(default="", comment="Name of ASCII file containing history for headerlet") -sciext = string_kw(default="SCI", comment="EXTNAME of extension with WCS") -destim = string_kw(default="", comment="Rootname of image to which this headerlet applies ") -sipname = string_kw(default="", comment="Name for source of polynomial distortion keywords") -npolfile = string_kw(default="", comment="Name for source of non-polynomial residuals") -d2imfile = string_kw(default="", comment="Name for source of detector correction table") -attach = boolean_kw(default=True, comment="Create headerlet FITS extension?") -logging = boolean_kw(default=False, comment= "Enable logging to a file")
\ No newline at end of file |