Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STIPS 2.1 Pull Request #167

Merged
merged 34 commits into from
Oct 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
b7b1aa1
Implemented Pandeia Background
gmzsebastian Oct 23, 2022
a6d17ee
Updated to WebbPSF 1.1
gmzsebastian Oct 31, 2022
f39c816
Updating and expanding STIPS tutorials
halkowsi Nov 5, 2022
5b8aca4
Adding makePSF testing
halkowsi Nov 5, 2022
221a821
test
gmzsebastian Nov 7, 2022
016ec7c
update gitignore
gmzsebastian Nov 7, 2022
c9d2293
Fixed WCS orientation
gmzsebastian Nov 9, 2022
271c5a4
Merge remote-tracking branch 'halkowsi/master'
gmzsebastian Nov 9, 2022
cbec0cd
Small cleanup
gmzsebastian Nov 9, 2022
accc805
Auto stash before checking out "HEAD"
gmzsebastian Nov 9, 2022
cfe5fc3
Rewrote to use AB zeropoints
gmzsebastian Dec 12, 2022
f4f6934
Implemented Hanna's tests
gmzsebastian Jan 19, 2023
8b81e94
Remove tests for unsupported catalog creation
gmzsebastian Jan 19, 2023
e11d14a
Warning about area
gmzsebastian Feb 6, 2023
32d7d16
simplified detector offsets
gmzsebastian Feb 6, 2023
bc5e795
Included SIAF requirement and offsets
gmzsebastian Feb 20, 2023
2389d96
Corrected SIAF offsets
gmzsebastian Feb 21, 2023
be9d215
Fix offset location
gmzsebastian Feb 28, 2023
761261b
add filter
gmzsebastian Mar 4, 2023
7f7411f
fixed pandeia backgrounds
gmzsebastian May 16, 2023
4a8be76
Updated Zeropoints with Pandeia 2.0
gmzsebastian May 24, 2023
04db260
Pandeia 2.0 reference files
gmzsebastian Jun 2, 2023
51c1f90
Fix poppy version = 1.1.1
gmzsebastian Jun 2, 2023
1163c27
Test with poppy 1.0.3
gmzsebastian Jun 2, 2023
6ce5649
version conflicts
gmzsebastian Jun 4, 2023
606448c
Update to Pandeia 3.0
gmzsebastian Sep 13, 2023
5db0344
Fix filter capitalization problem
gmzsebastian Sep 13, 2023
ff0ec16
Scene creation bugs
gmzsebastian Sep 13, 2023
8e4fa3b
Update docs
gmzsebastian Sep 21, 2023
eee56a3
PEP8 and format changes
gmzsebastian Oct 11, 2023
6a00bbd
file created
gmzsebastian Oct 11, 2023
1029b97
fixed import
gmzsebastian Oct 11, 2023
9363996
Fixed import, for real.
gmzsebastian Oct 11, 2023
9c55876
Missing DataTable
gmzsebastian Oct 11, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ MANIFEST
# Sphinx
docs/api
docs/_build
docs/_static

# Eclipse editor project files
.project
Expand Down Expand Up @@ -154,6 +155,7 @@ nosetests.xml
coverage.xml
*.cover
.hypothesis/
ref_data/

# Translations #
################
Expand Down
7 changes: 7 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ Release Notes
Version History and Change Log
------------------------------

Version 2.1.0
=============
- Updated the Flux PHOTFNU values to match Pandeia
- Updated the background and noise estimates to use Pandeia
- Updated webbpsf to version 1.1
- Updated pandeia to version 2.0

Version 2.0.0
=============

Expand Down
25 changes: 14 additions & 11 deletions docs/basic_tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ population parameters. In this example, we will create the following:

#. A stellar population representing a global cluster with:

* 10000 stars
* 100 stars
* An age of 7.5 billion years
* A metallicity of -2.0
* A Salpeter IMF with alpha = -2.35
Expand All @@ -81,12 +81,16 @@ population parameters. In this example, we will create the following:

.. code-block:: python

obs_prefix = 'notebook_example'
obs_ra = 150.0
obs_dec = -2.5

from stips.scene_module import SceneModule

scm = SceneModule(out_prefix=obs_prefix, ra=obs_ra, dec=obs_dec)

stellar_parameters = {
'n_stars': 10000,
'n_stars': 100,
'age_low': 7.5e12,
'age_high': 7.5e12,
'z_low': -2.0,
Expand All @@ -98,12 +102,12 @@ population parameters. In this example, we will create the following:
'distribution': 'invpow',
'radius': 100.0,
'radius_units': 'pc',
'distance_low': 10.0,
'distance_high': 10.0,
'distance_low': 20.0,
'distance_high': 20.0,
'offset_ra': 0.0,
'offset_dec':0.0
}

'offset_dec': 0.0
}
stellar_cat_file = scm.CreatePopulation(stellar_parameters)
print("Stellar population saved to file {}".format(stellar_cat_file))

Expand All @@ -113,7 +117,7 @@ population parameters. In this example, we will create the following:
'z_high': 0.2,
'rad_low': 0.01,
'rad_high': 2.0,
'sb_v_low': 28.0,
'sb_v_low': 30.0,
'sb_v_high': 25.0,
'distribution': 'uniform',
'clustered': False,
Expand All @@ -122,10 +126,9 @@ population parameters. In this example, we will create the following:
'offset_ra': 0.0,
'offset_dec': 0.0,
}

galaxy_cat_file = scm.CreateGalaxies(galaxy_parameters)
print("Galaxy population saved to file{}".format(galaxy_cat_file))

print("Galaxy population saved to file {}".format(galaxy_cat_file))

Creating a STIPS Observation
----------------------------
Expand Down
12 changes: 11 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def setup(app):
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
sys.path.insert(0, os.path.abspath('../'))

'''
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.intersphinx',
Expand All @@ -59,6 +59,15 @@ def setup(app):
'sphinx_automodapi.automodapi',
'autoapi.extension',
]
'''
extensions = [
'sphinx.ext.intersphinx',
'sphinx.ext.autodoc',
'sphinx.ext.autosummary',
'sphinx.ext.mathjax',
'sphinx.ext.viewcode',
'sphinx_rtd_theme',
]

numpydoc_show_class_members = False

Expand Down Expand Up @@ -92,6 +101,7 @@ def setup(app):

# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx'
#pygments_style = 'default'

# -- Options for HTML output --------------------------------------------------

Expand Down
4 changes: 2 additions & 2 deletions docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ in this section along with instructions.
STIPS Requirements
##################

\• ``pandeia>=1.7``: Exposure time calculator.
\• ``pandeia>=3.0``: Exposure time calculator.

\• ``webbpsf>=1.0.0``: Nancy Grace Roman PSF calculator. STIPS also requires that ``poppy``, a
\• ``webbpsf==1.1.1``: Nancy Grace Roman PSF calculator. STIPS also requires that ``poppy``, a
support package used by WebbPSF, have version ``>=1.0.3``.

\• ``astropy``: STIPS uses Astropy in order to:
Expand Down
11 changes: 3 additions & 8 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,15 @@ dependencies:
- esutil # installed from conda because you need the pre-compiled binaries.

- pip:
#
# Special Modules. These are temporary entries and require documentation.
#
# poppy 1.0.3 fixes a bug with the way poppy was calling factorial with non-integer
# values. Currently this is the only way to ensure that webbpsf picks up the correct
# poppy version. This peg should be removed as soon as webbpsf has updated to only
# use poppy versions that include this fix.
- poppy==1.0.3

# Core Modules
- webbpsf==1.0.0
- pandeia.engine==1.7
- webbpsf==1.1.1
- pandeia.engine==3.0
- synphot==1.1.1
- stsynphot==1.1.0
- soc_roman_tools

# Major modules
- astropy
Expand Down
5 changes: 3 additions & 2 deletions environment_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,11 @@ dependencies:
- poppy==1.0.3

# Core Modules
- webbpsf==1.0.0
- pandeia.engine==1.7
- webbpsf==1.1.0
- pandeia.engine==3.0
- synphot==1.1.1
- stsynphot==1.1.0
- soc_roman_tools

# Major modules
- astropy
Expand Down
Loading