wfc3tools 1.5.0__py3-none-any.whl → 1.6.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- wfc3tools/sampinfo.py +41 -41
- wfc3tools/sub2full.py +3 -3
- wfc3tools/version.py +22 -4
- wfc3tools-1.6.0.dist-info/METADATA +91 -0
- {wfc3tools-1.5.0.dist-info → wfc3tools-1.6.0.dist-info}/RECORD +8 -8
- {wfc3tools-1.5.0.dist-info → wfc3tools-1.6.0.dist-info}/WHEEL +1 -1
- wfc3tools-1.5.0.dist-info/METADATA +0 -30
- {wfc3tools-1.5.0.dist-info → wfc3tools-1.6.0.dist-info/licenses}/LICENSE.txt +0 -0
- {wfc3tools-1.5.0.dist-info → wfc3tools-1.6.0.dist-info}/top_level.txt +0 -0
wfc3tools/sampinfo.py
CHANGED
|
@@ -26,50 +26,50 @@ Usage:
|
|
|
26
26
|
|
|
27
27
|
>>> from wfc3tools import sampinfo
|
|
28
28
|
>>> sampinfo('ibcf02faq_raw.fits')
|
|
29
|
-
>>> IMAGE
|
|
30
|
-
ibcf02faq_raw.fits
|
|
31
|
-
|
|
32
|
-
IMSET
|
|
33
|
-
1
|
|
34
|
-
2
|
|
35
|
-
3
|
|
36
|
-
4
|
|
37
|
-
5
|
|
38
|
-
6
|
|
39
|
-
7
|
|
40
|
-
8
|
|
41
|
-
9
|
|
42
|
-
10
|
|
43
|
-
11
|
|
44
|
-
12
|
|
45
|
-
13
|
|
46
|
-
14
|
|
47
|
-
15
|
|
48
|
-
16
|
|
29
|
+
>>> IMAGE NEXTEND SAMP_SEQ NSAMP EXPTIME
|
|
30
|
+
ibcf02faq_raw.fits 80 STEP50 16 499.234009
|
|
31
|
+
|
|
32
|
+
IMSET SAMPNUM SAMPTIME DELTATIM
|
|
33
|
+
1 15 499.234009 50.000412
|
|
34
|
+
2 14 449.233582 50.000412
|
|
35
|
+
3 13 399.233154 50.000412
|
|
36
|
+
4 12 349.232727 50.000412
|
|
37
|
+
5 11 299.2323 50.000412
|
|
38
|
+
6 10 249.231873 50.000412
|
|
39
|
+
7 9 199.231461 50.000412
|
|
40
|
+
8 8 149.231049 50.000412
|
|
41
|
+
9 7 99.230637 50.000412
|
|
42
|
+
10 6 49.230225 25.000511
|
|
43
|
+
11 5 24.229715 12.500551
|
|
44
|
+
12 4 11.729164 2.932291
|
|
45
|
+
13 3 8.796873 2.932291
|
|
46
|
+
14 2 5.864582 2.932291
|
|
47
|
+
15 1 2.932291 2.932291
|
|
48
|
+
16 0 0.0 0.0
|
|
49
49
|
|
|
50
50
|
Include median:
|
|
51
51
|
|
|
52
52
|
>>> sampinfo('ibcf02faq_raw.fits',median=True)
|
|
53
|
-
>>> IMAGE
|
|
54
|
-
ibcf02faq_raw.fits
|
|
55
|
-
|
|
56
|
-
IMSET
|
|
57
|
-
1
|
|
58
|
-
2
|
|
59
|
-
3
|
|
60
|
-
4
|
|
61
|
-
5
|
|
62
|
-
6
|
|
63
|
-
7
|
|
64
|
-
8
|
|
65
|
-
9
|
|
66
|
-
10
|
|
67
|
-
11
|
|
68
|
-
12
|
|
69
|
-
13
|
|
70
|
-
14
|
|
71
|
-
15
|
|
72
|
-
16
|
|
53
|
+
>>> IMAGE NEXTEND SAMP_SEQ NSAMP EXPTIME
|
|
54
|
+
ibcf02faq_raw.fits 80 STEP50 16 499.234009
|
|
55
|
+
|
|
56
|
+
IMSET SAMPNUM SAMPTIME DELTATIM
|
|
57
|
+
1 15 499.234009 50.000412 MedPixel: 11384.0
|
|
58
|
+
2 14 449.233582 50.000412 MedPixel: 11360.0
|
|
59
|
+
3 13 399.233154 50.000412 MedPixel: 11335.0
|
|
60
|
+
4 12 349.232727 50.000412 MedPixel: 11309.0
|
|
61
|
+
5 11 299.2323 50.000412 MedPixel: 11283.0
|
|
62
|
+
6 10 249.231873 50.000412 MedPixel: 11256.0
|
|
63
|
+
7 9 199.231461 50.000412 MedPixel: 11228.0
|
|
64
|
+
8 8 149.231049 50.000412 MedPixel: 11198.0
|
|
65
|
+
9 7 99.230637 50.000412 MedPixel: 11166.0
|
|
66
|
+
10 6 49.230225 25.000511 MedPixel: 11131.0
|
|
67
|
+
11 5 24.229715 12.500551 MedPixel: 11111.0
|
|
68
|
+
12 4 11.729164 2.932291 MedPixel: 11099.0
|
|
69
|
+
13 3 8.796873 2.932291 MedPixel: 11097.0
|
|
70
|
+
14 2 5.864582 2.932291 MedPixel: 11093.0
|
|
71
|
+
15 1 2.932291 2.932291 MedPixel: 11090.0
|
|
72
|
+
16 0 0.0 0.0 MedPixel: 11087.0
|
|
73
73
|
|
|
74
74
|
"""
|
|
75
75
|
|
|
@@ -174,7 +174,7 @@ def sampinfo(imagelist, add_keys=None, mean=False, median=False):
|
|
|
174
174
|
dataminval = np.min(current["SCI", samp].data)
|
|
175
175
|
if "DATAMAX" in key:
|
|
176
176
|
datamax = True
|
|
177
|
-
datamaxval = np.
|
|
177
|
+
datamaxval = np.max(current["SCI", samp].data)
|
|
178
178
|
try:
|
|
179
179
|
printline += ("\t"+str(current["SCI", samp].header[key]))
|
|
180
180
|
except KeyError:
|
wfc3tools/sub2full.py
CHANGED
|
@@ -85,7 +85,7 @@ def sub2full(filename, x=None, y=None, fullExtent=False):
|
|
|
85
85
|
|
|
86
86
|
infiles, dummy_out = parseinput.parseinput(filename)
|
|
87
87
|
if len(infiles) < 1:
|
|
88
|
-
|
|
88
|
+
raise ValueError("Please input a valid HST filename")
|
|
89
89
|
|
|
90
90
|
coords = list()
|
|
91
91
|
|
|
@@ -112,10 +112,10 @@ def sub2full(filename, x=None, y=None, fullExtent=False):
|
|
|
112
112
|
numcols = int(fd2[1].header['NUMCOLS'])
|
|
113
113
|
fd2.close()
|
|
114
114
|
except KeyError as e:
|
|
115
|
-
raise KeyError("Required header keyword missing
|
|
115
|
+
raise KeyError(f"Required header keyword missing: {e}")
|
|
116
116
|
|
|
117
117
|
if "NO" in subarray:
|
|
118
|
-
raise ValueError("Image is not a subarray:
|
|
118
|
+
raise ValueError(f"Image is not a subarray: {f}")
|
|
119
119
|
|
|
120
120
|
sizaxis1 = numcols
|
|
121
121
|
sizaxis2 = numrows
|
wfc3tools/version.py
CHANGED
|
@@ -1,16 +1,34 @@
|
|
|
1
|
-
# file generated by
|
|
1
|
+
# file generated by setuptools-scm
|
|
2
2
|
# don't change, don't track in version control
|
|
3
|
+
|
|
4
|
+
__all__ = [
|
|
5
|
+
"__version__",
|
|
6
|
+
"__version_tuple__",
|
|
7
|
+
"version",
|
|
8
|
+
"version_tuple",
|
|
9
|
+
"__commit_id__",
|
|
10
|
+
"commit_id",
|
|
11
|
+
]
|
|
12
|
+
|
|
3
13
|
TYPE_CHECKING = False
|
|
4
14
|
if TYPE_CHECKING:
|
|
5
|
-
from typing import Tuple
|
|
15
|
+
from typing import Tuple
|
|
16
|
+
from typing import Union
|
|
17
|
+
|
|
6
18
|
VERSION_TUPLE = Tuple[Union[int, str], ...]
|
|
19
|
+
COMMIT_ID = Union[str, None]
|
|
7
20
|
else:
|
|
8
21
|
VERSION_TUPLE = object
|
|
22
|
+
COMMIT_ID = object
|
|
9
23
|
|
|
10
24
|
version: str
|
|
11
25
|
__version__: str
|
|
12
26
|
__version_tuple__: VERSION_TUPLE
|
|
13
27
|
version_tuple: VERSION_TUPLE
|
|
28
|
+
commit_id: COMMIT_ID
|
|
29
|
+
__commit_id__: COMMIT_ID
|
|
30
|
+
|
|
31
|
+
__version__ = version = '1.6.0'
|
|
32
|
+
__version_tuple__ = version_tuple = (1, 6, 0)
|
|
14
33
|
|
|
15
|
-
|
|
16
|
-
__version_tuple__ = version_tuple = (1, 5, 0)
|
|
34
|
+
__commit_id__ = commit_id = 'g1206755c4'
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: wfc3tools
|
|
3
|
+
Version: 1.6.0
|
|
4
|
+
Summary: Python Tools for HST WFC3 Data
|
|
5
|
+
Author: STScI
|
|
6
|
+
Project-URL: Homepage, http://wfc3tools.readthedocs.io/
|
|
7
|
+
Project-URL: Bug Reports, https://github.com/spacetelescope/wfc3tools/issues/
|
|
8
|
+
Project-URL: Source, https://github.com/spacetelescope/wfc3tools/
|
|
9
|
+
Project-URL: Help, https://hsthelp.stsci.edu
|
|
10
|
+
Classifier: Intended Audience :: Science/Research
|
|
11
|
+
Classifier: Operating System :: OS Independent
|
|
12
|
+
Classifier: Programming Language :: Python
|
|
13
|
+
Classifier: Topic :: Scientific/Engineering :: Astronomy
|
|
14
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
15
|
+
Requires-Python: >=3.9
|
|
16
|
+
Description-Content-Type: text/x-rst
|
|
17
|
+
License-File: LICENSE.txt
|
|
18
|
+
Requires-Dist: astropy>=4.2.0
|
|
19
|
+
Requires-Dist: numpy>=1.21.0
|
|
20
|
+
Requires-Dist: matplotlib>=3.5.1
|
|
21
|
+
Requires-Dist: stsci.tools>=4.0.1
|
|
22
|
+
Requires-Dist: scipy>=1.8.0
|
|
23
|
+
Provides-Extra: tests
|
|
24
|
+
Requires-Dist: pytest; extra == "tests"
|
|
25
|
+
Requires-Dist: astroquery; extra == "tests"
|
|
26
|
+
Provides-Extra: docs
|
|
27
|
+
Requires-Dist: sphinx; extra == "docs"
|
|
28
|
+
Requires-Dist: sphinx-automodapi; extra == "docs"
|
|
29
|
+
Requires-Dist: sphinx-rtd-theme; extra == "docs"
|
|
30
|
+
Dynamic: license-file
|
|
31
|
+
|
|
32
|
+
WFC3TOOLS
|
|
33
|
+
=========
|
|
34
|
+
|
|
35
|
+
.. image:: https://readthedocs.org/projects/wfc3tools/badge/?version=latest
|
|
36
|
+
:target: http://wfc3tools.readthedocs.io/en/latest/?badge=latest
|
|
37
|
+
:alt: Documentation Status
|
|
38
|
+
|
|
39
|
+
.. image:: http://img.shields.io/badge/powered%20by-AstroPy-orange.svg?style=flat
|
|
40
|
+
:target: http://www.astropy.org
|
|
41
|
+
:alt: Powered by Astropy Badge
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
For more information please see the `online documentation <http://wfc3tools.readthedocs.io/>`_.
|
|
45
|
+
|
|
46
|
+
You can also display the docs locally after install, import ``wfc3tools`` and then issue the following command to display the help docs in your local browser:
|
|
47
|
+
|
|
48
|
+
::
|
|
49
|
+
|
|
50
|
+
wfc3tools.display_help()
|
|
51
|
+
|
|
52
|
+
To install using pip:
|
|
53
|
+
|
|
54
|
+
::
|
|
55
|
+
|
|
56
|
+
pip install wfc3tools
|
|
57
|
+
|
|
58
|
+
pip install --upgrade wfc3tools # if you already have an older version installed
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
Contributing
|
|
63
|
+
------------
|
|
64
|
+
|
|
65
|
+
Please open a new issue or new pull request for bugs, feedback, or new features
|
|
66
|
+
you would like to see. If there is an issue you would like to work on, please
|
|
67
|
+
leave a comment and we will be happy to assist. New contributions and
|
|
68
|
+
contributors are very welcome!
|
|
69
|
+
|
|
70
|
+
New to github or open source projects? If you are unsure about where to start
|
|
71
|
+
or haven't used github before, please feel free to contact `HST Help Desk <https://stsci.service-now.com/hst>`_.
|
|
72
|
+
|
|
73
|
+
Feedback and feature requests? Is there something missing you would like
|
|
74
|
+
to see? Please open an issue or contact `HST Help Desk <https://stsci.service-now.com/hst>`_.
|
|
75
|
+
|
|
76
|
+
``wfc3tools`` follows the `Astropy Code of Conduct`_ and strives to provide a
|
|
77
|
+
welcoming community to all of our users and contributors.
|
|
78
|
+
|
|
79
|
+
Want more information about how to make a contribution? Take a look at
|
|
80
|
+
the the astropy `contributing`_ and `developer`_ documentation.
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
License
|
|
84
|
+
-------
|
|
85
|
+
|
|
86
|
+
``wfc3tools`` is licensed under a 3-clause BSD style license (see the ``LICENSE.txt`` file).
|
|
87
|
+
|
|
88
|
+
.. _AstroPy: http://www.astropy.org/
|
|
89
|
+
.. _contributing: http://docs.astropy.org/en/stable/index.html#contributing
|
|
90
|
+
.. _developer: http://docs.astropy.org/en/stable/index.html#developer-documentation
|
|
91
|
+
.. _Astropy Code of Conduct: http://www.astropy.org/about.html#codeofconduct
|
|
@@ -3,17 +3,17 @@ wfc3tools/calwf3.py,sha256=B-kFOtZb5ZHgAOV1OVBE9cfuNPmDfExI8akO8kvJnDw,6794
|
|
|
3
3
|
wfc3tools/embedsub.py,sha256=0kBeNCEua7VMj2e2cNAMOklolaL60K1id2M3btJxq4w,3883
|
|
4
4
|
wfc3tools/pstack.py,sha256=6ytoFD8pBY2NAd_QuNBjkho17h85QjIndxr4fUN8LeU,6857
|
|
5
5
|
wfc3tools/pstat.py,sha256=VBvFcUgGImd0LgpK7zg5cfrqgyOhL8UchgOoviLIb_g,10151
|
|
6
|
-
wfc3tools/sampinfo.py,sha256=
|
|
7
|
-
wfc3tools/sub2full.py,sha256=
|
|
6
|
+
wfc3tools/sampinfo.py,sha256=3-3ORCdN2ir26frbtTr2AMwqBO6JcU_SDgjFmBvLkjs,6970
|
|
7
|
+
wfc3tools/sub2full.py,sha256=KrXPaG-XRVvUNxxof11uWYbCeV6bnDXAMfKAcuBItuA,5624
|
|
8
8
|
wfc3tools/util.py,sha256=Q2vha6PKu_5P1C8K0nAj8bjrl1qLCc_91wtJn_ZVHME,1826
|
|
9
|
-
wfc3tools/version.py,sha256=
|
|
9
|
+
wfc3tools/version.py,sha256=e6EGE-zfqfrGkBHDAkcJH8wzWg-QqsXiHlpX2I5kvxA,712
|
|
10
10
|
wfc3tools/wf32d.py,sha256=ZAGdhxN4pQ8j1TOYuFB1G-ccnullykJpzb4JS80jxJM,5100
|
|
11
11
|
wfc3tools/wf3ccd.py,sha256=xC91xv0cwrRWQx-y0tahOrV6nlMYrh-z3Q0TV6qVwH8,5536
|
|
12
12
|
wfc3tools/wf3cte.py,sha256=CfdKjCoNdR3virbJkdv4CWmvcdEfHDGMVt-WXRs_3lo,2413
|
|
13
13
|
wfc3tools/wf3ir.py,sha256=-U29B8DZTkJSeOCfg61lBdZRkXp7JFGDCCAWojVv_TA,4377
|
|
14
14
|
wfc3tools/wf3rej.py,sha256=2cFzw4MBwy2uNYoWPK-OCuqHpIKTE14aNMDtJ-F8qJg,6624
|
|
15
|
-
wfc3tools-1.
|
|
16
|
-
wfc3tools-1.
|
|
17
|
-
wfc3tools-1.
|
|
18
|
-
wfc3tools-1.
|
|
19
|
-
wfc3tools-1.
|
|
15
|
+
wfc3tools-1.6.0.dist-info/licenses/LICENSE.txt,sha256=psOKqD89Ruy_VuezmDEHL4M8MFGFePSOSRZ7NnuEyQM,1464
|
|
16
|
+
wfc3tools-1.6.0.dist-info/METADATA,sha256=-ufUwRfHx2mazpbuAaSbJk3odWQgdZ6QP3agaLVSxr4,3252
|
|
17
|
+
wfc3tools-1.6.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
18
|
+
wfc3tools-1.6.0.dist-info/top_level.txt,sha256=v9YyAr2gaseWI3B1PZpcZN1e8yeao5hGnM6-20IbQ50,10
|
|
19
|
+
wfc3tools-1.6.0.dist-info/RECORD,,
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: wfc3tools
|
|
3
|
-
Version: 1.5.0
|
|
4
|
-
Summary: Python Tools for HST WFC3 Data
|
|
5
|
-
Home-page: http://wfc3tools.readthedocs.io/
|
|
6
|
-
Author: STScI
|
|
7
|
-
Author-email: help@stsci.edu
|
|
8
|
-
License: BSD
|
|
9
|
-
Project-URL: Bug Reports, https://github.com/spacetelescope/wfc3tools/issues/
|
|
10
|
-
Project-URL: Source, https://github.com/spacetelescope/wfc3tools/
|
|
11
|
-
Project-URL: Help, https://hsthelp.stsci.edu
|
|
12
|
-
Classifier: Intended Audience :: Science/Research
|
|
13
|
-
Classifier: License :: OSI Approved :: BSD License
|
|
14
|
-
Classifier: Operating System :: OS Independent
|
|
15
|
-
Classifier: Programming Language :: Python
|
|
16
|
-
Classifier: Topic :: Scientific/Engineering :: Astronomy
|
|
17
|
-
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
18
|
-
Requires-Python: >=3.9
|
|
19
|
-
License-File: LICENSE.txt
|
|
20
|
-
Requires-Dist: astropy >=4.2.0
|
|
21
|
-
Requires-Dist: numpy >=1.21.0
|
|
22
|
-
Requires-Dist: matplotlib >=3.5.1
|
|
23
|
-
Requires-Dist: stsci.tools >=4.0.1
|
|
24
|
-
Requires-Dist: scipy >=1.8.0
|
|
25
|
-
Provides-Extra: docs
|
|
26
|
-
Requires-Dist: sphinx ; extra == 'docs'
|
|
27
|
-
Requires-Dist: sphinx-automodapi ; extra == 'docs'
|
|
28
|
-
Requires-Dist: sphinx-rtd-theme ; extra == 'docs'
|
|
29
|
-
|
|
30
|
-
A package which contains wrappers for the calwf3 reduction scripts and tools to aid data analysis.
|
|
File without changes
|
|
File without changes
|