stips 2.2.2__tar.gz

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.
Files changed (84) hide show
  1. stips-2.2.2/.github/workflows/ci_workflows.yml +81 -0
  2. stips-2.2.2/.gitignore +226 -0
  3. stips-2.2.2/.readthedocs.yaml +33 -0
  4. stips-2.2.2/.rtd-environment.yml +22 -0
  5. stips-2.2.2/CHANGES.rst +83 -0
  6. stips-2.2.2/CITATION +8 -0
  7. stips-2.2.2/CODE_OF_CONDUCT.md +24 -0
  8. stips-2.2.2/CONTRIBUTING.md +5 -0
  9. stips-2.2.2/Dockerfile +32 -0
  10. stips-2.2.2/MANIFEST.in +22 -0
  11. stips-2.2.2/PKG-INFO +21 -0
  12. stips-2.2.2/README.md +45 -0
  13. stips-2.2.2/docs/Makefile +136 -0
  14. stips-2.2.2/docs/basic_tutorial.rst +281 -0
  15. stips-2.2.2/docs/bugs.rst +48 -0
  16. stips-2.2.2/docs/conf.py +189 -0
  17. stips-2.2.2/docs/examples.rst +102 -0
  18. stips-2.2.2/docs/exts/numfig.py +107 -0
  19. stips-2.2.2/docs/help.rst +6 -0
  20. stips-2.2.2/docs/index.rst +55 -0
  21. stips-2.2.2/docs/installation.rst +154 -0
  22. stips-2.2.2/docs/make.bat +170 -0
  23. stips-2.2.2/docs/release.rst +165 -0
  24. stips-2.2.2/docs/requirements.txt +9 -0
  25. stips-2.2.2/docs/roman_figures/stips_basic_tutorial.png +0 -0
  26. stips-2.2.2/docs/roman_figures/stips_demo.png +0 -0
  27. stips-2.2.2/docs/rtd-pip-requirements +8 -0
  28. stips-2.2.2/docs/using_stips/catalogue_formats.rst +315 -0
  29. stips-2.2.2/docs/using_stips/config_file.rst +164 -0
  30. stips-2.2.2/docs/using_stips/psf_grid.rst +27 -0
  31. stips-2.2.2/docs/using_stips.rst +11 -0
  32. stips-2.2.2/environment.yml +76 -0
  33. stips-2.2.2/environment_dev.yml +85 -0
  34. stips-2.2.2/licenses/LICENSE.rst +29 -0
  35. stips-2.2.2/licenses/README.rst +9 -0
  36. stips-2.2.2/licenses/TEMPLATE_LICENCE.rst +31 -0
  37. stips-2.2.2/notebooks/STIPS Advanced I /342/200/223 Further Observations, Noise and Distortion.ipynb" +722 -0
  38. stips-2.2.2/notebooks/STIPS Advanced II - PSFs.ipynb +394 -0
  39. stips-2.2.2/notebooks/STIPS Basic Tutorial.ipynb +354 -0
  40. stips-2.2.2/notebooks/notebooks_data/psf_WFI_2.0.0_F129_sca01.fits +0 -0
  41. stips-2.2.2/ref_data/retrieve_stips_data.py +14 -0
  42. stips-2.2.2/setup.cfg +72 -0
  43. stips-2.2.2/setup.py +7 -0
  44. stips-2.2.2/stips/__init__.py +29 -0
  45. stips-2.2.2/stips/astro_image/__init__.py +4 -0
  46. stips-2.2.2/stips/astro_image/astro_image.py +1391 -0
  47. stips-2.2.2/stips/astro_image/tests/__init__.py +0 -0
  48. stips-2.2.2/stips/astro_image/tests/test_AstroImage.py +130 -0
  49. stips-2.2.2/stips/astro_image/tests/test_header.py +18 -0
  50. stips-2.2.2/stips/astro_image/tests/test_wcs.py +114 -0
  51. stips-2.2.2/stips/conftest.py +12 -0
  52. stips-2.2.2/stips/data/CreateIsochroneGrid.py +395 -0
  53. stips-2.2.2/stips/data/CreatePhoenixGrid.py +136 -0
  54. stips-2.2.2/stips/data/__init__.py +0 -0
  55. stips-2.2.2/stips/data/psf_WFI_2.0.0_F129_sca01.fits +0 -0
  56. stips-2.2.2/stips/data/stips_config.yaml +102 -0
  57. stips-2.2.2/stips/errors/__init__.py +3 -0
  58. stips-2.2.2/stips/errors/make_cosmic_ray.py +175 -0
  59. stips-2.2.2/stips/instruments/__init__.py +3 -0
  60. stips-2.2.2/stips/instruments/instrument.py +1151 -0
  61. stips-2.2.2/stips/instruments/roman_instrument.py +39 -0
  62. stips-2.2.2/stips/instruments/wfi.py +214 -0
  63. stips-2.2.2/stips/observation_module/__init__.py +3 -0
  64. stips-2.2.2/stips/observation_module/observation_module.py +326 -0
  65. stips-2.2.2/stips/scene_module/__init__.py +3 -0
  66. stips-2.2.2/stips/scene_module/convert_units.py +198 -0
  67. stips-2.2.2/stips/scene_module/scene_module.py +594 -0
  68. stips-2.2.2/stips/stellar_module/__init__.py +3 -0
  69. stips-2.2.2/stips/stellar_module/star_generator.py +335 -0
  70. stips-2.2.2/stips/tests/__init__.py +0 -0
  71. stips-2.2.2/stips/utilities/DataTable.py +220 -0
  72. stips-2.2.2/stips/utilities/__init__.py +17 -0
  73. stips-2.2.2/stips/utilities/makePSF.py +384 -0
  74. stips-2.2.2/stips/utilities/testing.py +82 -0
  75. stips-2.2.2/stips/utilities/tests/test_config.py +63 -0
  76. stips-2.2.2/stips/utilities/tests/test_makePSF.py +357 -0
  77. stips-2.2.2/stips/utilities/utilities.py +700 -0
  78. stips-2.2.2/stips.egg-info/PKG-INFO +21 -0
  79. stips-2.2.2/stips.egg-info/SOURCES.txt +83 -0
  80. stips-2.2.2/stips.egg-info/dependency_links.txt +1 -0
  81. stips-2.2.2/stips.egg-info/not-zip-safe +1 -0
  82. stips-2.2.2/stips.egg-info/requires.txt +11 -0
  83. stips-2.2.2/stips.egg-info/top_level.txt +1 -0
  84. stips-2.2.2/tox.ini +19 -0
@@ -0,0 +1,81 @@
1
+ # GitHub Actions workflow for testing and continuous integration.
2
+
3
+ name: CI
4
+
5
+ on:
6
+ push:
7
+ pull_request:
8
+
9
+ jobs:
10
+ ci_tests:
11
+ name: ${{ matrix.name }}
12
+ runs-on: ${{ matrix.os }}
13
+ strategy:
14
+ matrix:
15
+ include:
16
+
17
+ - name: Python 3.10
18
+ os: ubuntu-latest
19
+ python: "3.10"
20
+
21
+ - name: Python 3.11
22
+ os: ubuntu-latest
23
+ python: 3.11
24
+
25
+ - name: Python 3.11 Mac
26
+ os: macos-latest
27
+ python: 3.11
28
+
29
+ - name: Python Long
30
+ os: ubuntu-latest
31
+ python: 3.11
32
+
33
+ steps:
34
+ - name: Checkout code
35
+ uses: actions/checkout@v2
36
+ with:
37
+ fetch-depth: 0
38
+
39
+ - name: Set up environment
40
+ uses: conda-incubator/setup-miniconda@v2
41
+ with:
42
+ activate-environment: stips
43
+ environment-file: environment.yml
44
+ python-version: ${{ matrix.python }}
45
+ auto-activate-base: false
46
+ miniconda-version: "latest" # Ensure Miniconda is installed if not found
47
+
48
+ - name: Test with tox
49
+ shell: bash -l {0}
50
+ if: ${{ matrix.name != 'Python Long' }}
51
+ run: |
52
+ tox -e test
53
+
54
+ - name: Test slow tests with pytest
55
+ shell: bash -l {0}
56
+ if: ${{ matrix.name == 'Python Long' }}
57
+ run: |
58
+ tox -e test-all
59
+
60
+ docs_test:
61
+ name: "docs_test"
62
+ runs-on: ubuntu-latest
63
+ steps:
64
+
65
+ - name: Checkout code
66
+ uses: actions/checkout@v2
67
+ with:
68
+ fetch-depth: 0
69
+
70
+ - name: Set up environment
71
+ uses: conda-incubator/setup-miniconda@v2
72
+ with:
73
+ activate-environment: stips
74
+ environment-file: environment.yml
75
+ python-version: 3.11
76
+ auto-activate-base: false
77
+
78
+ - name: Build Docs
79
+ shell: bash -l {0}
80
+ run: |
81
+ tox -e build_docs
stips-2.2.2/.gitignore ADDED
@@ -0,0 +1,226 @@
1
+ ###################
2
+ ## AstroPy ##
3
+ ###################
4
+
5
+ # Compiled files
6
+ *.py[cod]
7
+ *.a
8
+ *.o
9
+ *.so
10
+ __pycache__
11
+
12
+ # Ignore .c files by default to avoid including generated code. If you want to
13
+ # add a non-generated .c extension, use `git add -f filename.c`.
14
+ *.c
15
+
16
+ # Other generated files
17
+ */version.py
18
+ */cython_version.py
19
+ htmlcov
20
+ .coverage
21
+ MANIFEST
22
+ .ipynb_checkpoints
23
+
24
+ # Sphinx
25
+ docs/api
26
+ docs/_build
27
+ docs/_static
28
+
29
+ # Eclipse editor project files
30
+ .project
31
+ .pydevproject
32
+ .settings
33
+
34
+ # Pycharm editor project files
35
+ .idea
36
+
37
+ # Floobits project files
38
+ .floo
39
+ .flooignore
40
+
41
+ # Packages/installer info
42
+ *.egg
43
+ *.egg-info
44
+ dist
45
+ build
46
+ eggs
47
+ parts
48
+ bin
49
+ var
50
+ sdist
51
+ develop-eggs
52
+ .installed.cfg
53
+ distribute-*.tar.gz
54
+
55
+ # Other
56
+ .cache
57
+ .tox
58
+ .*.sw[op]
59
+ *~
60
+ .project
61
+ .pydevproject
62
+ .settings
63
+
64
+ # Mac OSX
65
+ .DS_Store
66
+
67
+
68
+ ###################
69
+ ## Custom ##
70
+ ###################
71
+
72
+ # Compiled source #
73
+ ###################
74
+ *.com
75
+ *.class
76
+ *.dll
77
+ *.exe
78
+ *.o
79
+ *.so
80
+
81
+ # Packages #
82
+ ############
83
+ # it's better to unpack these files and commit the raw source
84
+ # git has its own built in compression methods
85
+ *.7z
86
+ *.dmg
87
+ *.gz
88
+ *.iso
89
+ *.jar
90
+ *.rar
91
+ *.tar
92
+ *.zip
93
+
94
+ # Logs and databases #
95
+ ######################
96
+ *.log
97
+ *.sql
98
+ *.sqlite
99
+
100
+ # OS generated files #
101
+ ######################
102
+ .DS_Store
103
+ .DS_Store?
104
+ ._*
105
+ .Spotlight-V100
106
+ .Trashes
107
+ ehthumbs.db
108
+ Thumbs.db
109
+
110
+ # Byte-compiled / optimized / DLL files #
111
+ #########################################
112
+ __pycache__/
113
+ *.py[cod]
114
+ *$py.class
115
+
116
+ # Distribution / packaging #
117
+ ############################
118
+ .Python
119
+ build/
120
+ develop-eggs/
121
+ dist/
122
+ downloads/
123
+ eggs/
124
+ .eggs/
125
+ lib/
126
+ lib64/
127
+ parts/
128
+ sdist/
129
+ var/
130
+ wheels/
131
+ *.egg-info/
132
+ .installed.cfg
133
+ *.egg
134
+
135
+ # PyInstaller #
136
+ # Usually these files are written by a python script from a template #
137
+ # before PyInstaller builds the exe, so as to inject date/other infos into it. #
138
+ #################################################################################
139
+ *.manifest
140
+ *.spec
141
+
142
+ # Installer logs #
143
+ ##################
144
+ pip-log.txt
145
+ pip-delete-this-directory.txt
146
+
147
+ # Unit test / coverage reports #
148
+ ################################
149
+ htmlcov/
150
+ .tox/
151
+ .coverage
152
+ .coverage.*
153
+ .cache
154
+ nosetests.xml
155
+ coverage.xml
156
+ *.cover
157
+ .hypothesis/
158
+ ref_data/
159
+
160
+ # Translations #
161
+ ################
162
+ *.mo
163
+ *.pot
164
+
165
+ # Django stuff: #
166
+ #################
167
+ *.log
168
+ local_settings.py
169
+
170
+ # Flask stuff: #
171
+ ################
172
+ instance/
173
+ .webassets-cache
174
+
175
+ # Scrapy stuff: #
176
+ #################
177
+ .scrapy
178
+
179
+ # Sphinx documentation #
180
+ ########################
181
+ docs/_build/
182
+
183
+ # PyBuilder #
184
+ #############
185
+ target/
186
+
187
+ # Jupyter Notebook #
188
+ ####################
189
+ .ipynb_checkpoints
190
+
191
+ # pyenv #
192
+ #########
193
+ .python-version
194
+
195
+ # celery beat schedule file #
196
+ #############################
197
+ celerybeat-schedule
198
+
199
+ # SageMath parsed files #
200
+ #########################
201
+ *.sage.py
202
+
203
+ # Environments #
204
+ ################
205
+ .env
206
+ .venv
207
+ env/
208
+ venv/
209
+ ENV/
210
+
211
+ # Spyder project settings #
212
+ ###########################
213
+ .spyderproject
214
+ .spyproject
215
+
216
+ # Rope project settings #
217
+ #########################
218
+ .ropeproject
219
+
220
+ # mkdocs documentation #
221
+ ########################
222
+ /site
223
+
224
+ # mypy #
225
+ ########
226
+ .mypy_cache/
@@ -0,0 +1,33 @@
1
+ # Read the Docs configuration file for Sphinx projects
2
+ # See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
3
+
4
+ # Required
5
+ version: 2
6
+
7
+ # Set the OS, Python version and other tools you might need
8
+ build:
9
+ os: ubuntu-22.04 # (now required to build RTD)
10
+ tools:
11
+ python: "3.12"
12
+ # You can also specify other tool versions:
13
+ # nodejs: "20"
14
+
15
+ # Build documentation in the "docs/" directory with Sphinx
16
+ sphinx:
17
+ configuration: docs/conf.py
18
+ # You can configure Sphinx to use a different builder, for instance use the dirhtml builder for simpler URLs
19
+ # builder: "dirhtml"
20
+ # Fail on all warnings to avoid broken references
21
+ # fail_on_warning: true
22
+
23
+ # Optionally build your docs in additional formats such as PDF and ePub
24
+ # formats:
25
+ # - pdf
26
+ # - epub
27
+
28
+ # Optional but recommended, declare the Python requirements required
29
+ # to build your documentation
30
+ # See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
31
+ python:
32
+ install:
33
+ - requirements: docs/requirements.txt
@@ -0,0 +1,22 @@
1
+ name: stips
2
+
3
+ channels:
4
+ - conda-forge
5
+ - astropy
6
+ - http://ssb.stsci.edu/astroconda
7
+ - defaults
8
+
9
+ dependencies:
10
+ - python>=3.7
11
+ - astropy
12
+
13
+ # Docs
14
+ - sphinx
15
+ - docutils
16
+ - sphinx_rtd_theme
17
+ - stsci_rtd_theme
18
+
19
+ - pip:
20
+ # Docs
21
+ - astropy_helpers
22
+ - sphinx_astropy
@@ -0,0 +1,83 @@
1
+ #############
2
+ Release Notes
3
+ #############
4
+
5
+ Version History and Change Log
6
+ ------------------------------
7
+
8
+ Version 2.2.2
9
+ =============
10
+ - Updated pandeia.engine version to be >= 3.1 instead of == 3.1
11
+
12
+ Version 2.2.1
13
+ =============
14
+ - Fixed a bug on the version of STIPS in __init__.py
15
+ - Updated WebbPSF version to be >= 1.1.1 instead of == 1.1.1
16
+ - Updated synphot>=1.1.1 and stsynphot>=1.1.0 from forced to specific version.
17
+
18
+ Version 2.2.0
19
+ =============
20
+ - Added a functionality to allow for faster simulations of extended sources.
21
+ - Fixed a bug related to the simulation of extended sources.
22
+ - Fixed a bug related to the WCS.
23
+ - Updated pandeia to version 3.1 and its corresponding reference files.
24
+ - Changed the minimum required Python version to 3.10
25
+
26
+ Version 2.1.0
27
+ =============
28
+ - Updated the Flux PHOTFNU values to match Pandeia
29
+ - Updated the background and noise estimates to use Pandeia
30
+ - Updated webbpsf to version 1.1
31
+ - Updated pandeia to version 2.0
32
+
33
+ Version 2.0.0
34
+ =============
35
+
36
+ - STIPS now uses an ePSF, and calculates source appearance on a per-source basis
37
+ - Dropped support for python 2, and python <= 3.7
38
+ - Dropped support for HST and JWST instruments
39
+ - Dropped support for jbt background tool, as its results are JWST-specific
40
+ - Updated pandeia to 1.7
41
+ - Updated webbpsf to 1.0.0
42
+ - Dropped astropy helpers code
43
+
44
+
45
+ Version 1.0.8
46
+ =============
47
+ *2020 May 22*
48
+
49
+ **STIPS Improvements**
50
+
51
+ - PSFs generated with `webbpsf` are now PSF grids. [:pr:``, :user:`york-stsci`]
52
+ - STIPS has the option to keep all data in memory. [:pr:``, :user:`york-stsci`]
53
+ - Data files have been removed from the repo to allow STIPS to be uploaded to PyPi (pip). The data has been migrated to a STScI box folder. Users can now download the data and set their `stips_data` to allow access to the data that once lived in the repository. [:pr:`59`, :user:`york-stsci`]
54
+ - Travis was setup to run and pass tests. Outdated tests have been removed to allow Travis to pass. [:pr:`65`, :user:`robelgeda`]
55
+ - Test data has been moved to a STScI box folder. [:pr:`64`, :user:`robelgeda`]
56
+ - `dev` folder added for any developer related tools. [:pr:`69`, :user:`robelgeda`]
57
+ - Frozen environments saved at `dev/conda_envs`. [:pr:`69`, :user:`robelgeda`]
58
+
59
+ Version 1.0.7
60
+ =============
61
+ *2020 January 8*
62
+
63
+ **STIPS Improvements**
64
+
65
+ - Cookie cutter template used to create better package infrastructure. [:pr:`40`, :user:`robelgeda`]
66
+ - Docker file added for ease of install. [:pr:`48`, :user:`robelgeda`]
67
+ - environment.yml added for easy conda env build. [:pr:`42`, :user:`robelgeda`]
68
+ - Read the Docs documentation established. [:pr:`55`, :user:`robelgeda`]
69
+ - F062 filter added to Roman WFI. [:pr:`51`, :user:`york-stsci`]
70
+ - Update STIPS to use WbbPSF 0.9.0. [:pr:`51`, :user:`york-stsci`]
71
+ - Travis CI initiated for unit and regression testing. [:pr:`40`, :user:`robelgeda`]
72
+ - Python version set to 3.7 [:pr:`40`, :user:`robelgeda`]
73
+ - Licenses updated [:pr:`40`, :user:`robelgeda`]
74
+
75
+ **General bug fixes and small changes**
76
+
77
+ - Updated astro_image.py to use a PC matrix rather than a CD matrix for the image WCS, which hopefully will result in astropy actually giving you a correctly formatted FITS WCS. [:pr:`46`, :user:`york-stsci`]
78
+ - Adding WCS information to PSF files. PSF files will now have the following:
79
+ - RA equal to the observation RA at which they were produced
80
+ - DEC equal to the observation DEC at which they were produced
81
+ - PA equal to the observation PA at which they were produced
82
+ - CDELT keywords equal to the PIXELSCL keyword, but adjusted to degrees rather than arcsec.
83
+ - [:pr:`47`, :user:`york-stsci`]
stips-2.2.2/CITATION ADDED
@@ -0,0 +1,8 @@
1
+ See http://journals.aas.org/authors/references.html#Software on how to
2
+ cite software.
3
+
4
+ GitHub has Zenodo DOI integration:
5
+ https://guides.github.com/activities/citable-code/
6
+
7
+ Also see https://swcarpentry.github.io/git-novice/12-citation/
8
+ for further reading.
@@ -0,0 +1,24 @@
1
+ # Spacetelescope Open Source Code of Conduct
2
+
3
+ We expect all "spacetelescope" organization projects to adopt a code of conduct that ensures a productive, respectful environment for all open source contributors and participants. We are committed to providing a strong and enforced code of conduct and expect everyone in our community to follow these guidelines when interacting with others in all forums. Our goal is to keep ours a positive, inclusive, successful, and growing community. The community of participants in open source Astronomy projects is made up of members from around the globe with a diverse set of skills, personalities, and experiences. It is through these differences that our community experiences success and continued growth.
4
+
5
+
6
+ As members of the community,
7
+
8
+ - We pledge to treat all people with respect and provide a harassment- and bullying-free environment, regardless of sex, sexual orientation and/or gender identity, disability, physical appearance, body size, race, nationality, ethnicity, and religion. In particular, sexual language and imagery, sexist, racist, or otherwise exclusionary jokes are not appropriate.
9
+
10
+ - We pledge to respect the work of others by recognizing acknowledgment/citation requests of original authors. As authors, we pledge to be explicit about how we want our own work to be cited or acknowledged.
11
+
12
+ - We pledge to welcome those interested in joining the community, and realize that including people with a variety of opinions and backgrounds will only serve to enrich our community. In particular, discussions relating to pros/cons of various technologies, programming languages, and so on are welcome, but these should be done with respect, taking proactive measure to ensure that all participants are heard and feel confident that they can freely express their opinions.
13
+
14
+ - We pledge to welcome questions and answer them respectfully, paying particular attention to those new to the community. We pledge to provide respectful criticisms and feedback in forums, especially in discussion threads resulting from code contributions.
15
+
16
+ - We pledge to be conscientious of the perceptions of the wider community and to respond to criticism respectfully. We will strive to model behaviors that encourage productive debate and disagreement, both within our community and where we are criticized. We will treat those outside our community with the same respect as people within our community.
17
+
18
+ - We pledge to help the entire community follow the code of conduct, and to not remain silent when we see violations of the code of conduct. We will take action when members of our community violate this code such as such as contacting conduct@stsci.edu (all emails sent to this address will be treated with the strictest confidence) or talking privately with the person.
19
+
20
+ This code of conduct applies to all community situations online and offline, including mailing lists, forums, social media, conferences, meetings, associated social events, and one-to-one interactions.
21
+
22
+ Parts of this code of conduct have been adapted from the Astropy and Numfocus codes of conduct.
23
+ http://www.astropy.org/code_of_conduct.html
24
+ https://www.numfocus.org/about/code-of-conduct/
@@ -0,0 +1,5 @@
1
+ Please open a new issue or new pull request for bugs, feedback, or new features you would like to see. If there is an issue you would like to work on, please leave a comment and we will be happy to assist. New contributions and contributors are very welcome!
2
+
3
+ New to github or open source projects? If you are unsure about where to start or haven't used github before, please feel free to contact the package maintainers.
4
+
5
+ Feedback and feature requests? Is there something missing you would like to see? Please open an issue or send an email to the maintainers. This package follows the Spacetelescope [Code of Conduct](CODE_OF_CONDUCT.md) strives to provide a welcoming community to all of our users and contributors.
stips-2.2.2/Dockerfile ADDED
@@ -0,0 +1,32 @@
1
+ FROM continuumio/miniconda3
2
+ MAINTAINER Space Telescope Science Institute <help@stsci.edu>
3
+
4
+ #########
5
+ # Setup #
6
+ #########
7
+
8
+ ENV HOME /root
9
+ WORKDIR $HOME
10
+
11
+ # Clone STScI-STIPS
12
+ RUN git clone https://github.com/spacetelescope/STScI-STIPS.git
13
+ ENV STIPSDIR $HOME/STScI-STIPS
14
+
15
+ ##########################
16
+ # Basic apt Requirements #
17
+ ##########################
18
+
19
+ WORKDIR $STIPSDIR
20
+
21
+ RUN conda env create -f environment.yml
22
+ RUN echo "conda activate stips" >> ~/.bashrc
23
+ SHELL ["/bin/bash", "--login", "-c"]
24
+
25
+ ##################
26
+ # Reference Data #
27
+ ##################
28
+
29
+ WORKDIR $HOME
30
+
31
+ RUN echo -e "import stips\nstips.DownloadReferenceData()" >> activate_stips.py
32
+ RUN python activate_stips.py
@@ -0,0 +1,22 @@
1
+ include *
2
+ recursive-include * *
3
+ exclude *.pyc *.pyo
4
+
5
+ include README.rst
6
+ include CHANGES.rst
7
+
8
+ include setup.cfg
9
+ include stips/tests/coveragerc
10
+
11
+ recursive-include stips *.pyx *.c *.pxd
12
+ recursive-include docs *
13
+ recursive-include licenses *
14
+ recursive-include cextern *
15
+ recursive-include scripts *
16
+
17
+ prune build
18
+ prune docs/_build
19
+ prune docs/api
20
+ prune dist
21
+
22
+ global-exclude *.pyc *.o
stips-2.2.2/PKG-INFO ADDED
@@ -0,0 +1,21 @@
1
+ Metadata-Version: 2.1
2
+ Name: stips
3
+ Version: 2.2.2
4
+ Summary: STIPS is the Space Telescope Imaging Product Simulator.
5
+ Home-page: https://github.com/spacetelescope/STScI-STIPS
6
+ Author: Space Telescope Science Institute
7
+ Author-email: york@stsci.edu
8
+ License: BSD 3-Clause
9
+ Requires-Dist: astropy
10
+ Requires-Dist: numpy
11
+ Requires-Dist: scipy
12
+ Requires-Dist: photutils
13
+ Requires-Dist: synphot>=1.1.1
14
+ Requires-Dist: stsynphot>=1.1.0
15
+ Requires-Dist: webbpsf>=1.1.1
16
+ Requires-Dist: pandeia.engine>=3.1
17
+ Requires-Dist: montage-wrapper
18
+ Requires-Dist: pyyaml
19
+ Requires-Dist: soc_roman_tools
20
+
21
+ STIPS is the Space Telescope Imaging Product Simulator. It is designed to create simulations of full-detector post-pipeline astronomical scenes for the Nancy Grace Roman Space Telescope.
stips-2.2.2/README.md ADDED
@@ -0,0 +1,45 @@
1
+ # STScI-STIPS
2
+
3
+ [![Build Status](https://github.com/spacetelescope/STScI-STIPS/actions/workflows/ci_workflows.yml/badge.svg?branch=main)](https://github.com/spacetelescope/STScI-STIPS/actions/workflows/ci_workflows.yml?query=branch:main)
4
+ [![STScI](https://img.shields.io/badge/powered%20by-STScI-blue.svg?colorA=707170&colorB=3e8ddd&style=flat)](http://www.stsci.edu)
5
+
6
+ For documentation and installation instructions please visit https://stips.readthedocs.io
7
+
8
+ ## Table of Contents
9
+
10
+ * [Overview](#overview)
11
+ * [Why use STIPS?](#why-use-stips)
12
+
13
+ ## Overview
14
+
15
+ STIPS is the Space Telescope Imaging Product Simulator. It is designed to create
16
+ simulations of full-detector post-pipeline astronomical scenes for the Nancy Grace Roman
17
+ Space Telescope's Wide-Field Instrument (WFI). STIPS has the ability to add
18
+ instrumental distortion (if available) as well as calibration residuals from flatfields,
19
+ dark currents, and cosmic rays. It automatically includes Poisson noise and readout noise.
20
+ It does not include instrument saturation effects.
21
+
22
+ ## Why use STIPS?
23
+
24
+ STIPS is intended to produce quick simulations of Level 2 (L2) images, and is provided for
25
+ cases where [Pandeia](https://pypi.org/project/pandeia.engine) does not
26
+ provide a large enough simulation area (e.g., full-detector or multiple-detector
27
+ observations). STIPS obtains its Roman instrument and filter values from
28
+ Pandeia, so it should produce output within 10% of output produced by Pandeia.
29
+
30
+ STIPS does not start with Level 1 (L1) images and propagate instrumental calibrations
31
+ through the simulations. While it does have the ability to add error residuals (representing
32
+ the remaining uncertainty after pipeline calibration), these residuals are not validated
33
+ against actual pipeline calibrations of L1 images. STIPS is not the ideal choice if
34
+ extremely good instrumental accuracy is needed. Pandeia is the preferred tool for
35
+ high-accuracy observations.
36
+
37
+ Developed by Brian York ([@york-stsci](https://github.com/york-stsci)),
38
+ Robel Geda ([@robelgeda](https://github.com/robelgeda)), and
39
+ O. Justin Otor ([@ojustino](https://github.com/ojustino)).
40
+ Python ePSF code developed by
41
+ Sebastian Gomez ([@gmzsebastian](https://github.com/gmzsebastian)) based on Fortran code
42
+ developed by Andrea Bellini ([@AndreaBellini](https://github.com/AndreaBellini)).
43
+
44
+ ![Alt text](docs/roman_figures/stips_demo.png?raw=true "Roman WFI Image of a Star Cluster and Background Galaxies")
45
+