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

NIRSpec Visibility Fix #619

Closed
wants to merge 1,044 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1044 commits
Select commit Hold shift + click to select a range
ca11c68
Merge pull request #538 from ExoCTK/develop
nespinoza May 12, 2022
b7b3c7e
Added model caching for LDC to speed up calculations
hover2pi May 31, 2022
af14630
Bump version to 1.2.5
hover2pi May 31, 2022
9ea646f
Merge conflicts again
hover2pi Dec 2, 2022
253c48a
Downgrade batman because of install error in current
hover2pi Dec 2, 2022
d25c264
i am the batman
hover2pi Dec 2, 2022
19276fc
Me code pretty one day
hover2pi Dec 2, 2022
29a391e
Dinna dinna dinna dinnna dinna dinna dinna dinna BATMAM
hover2pi Dec 2, 2022
76e9dd0
more conflicts
hover2pi Dec 2, 2022
2eabf2a
Merge pull request #539 from ExoCTK/cache_ldc_model
hover2pi Dec 2, 2022
814f672
Merge pull request #534 from ExoCTK/dependabot/pip/paramiko-2.10.1
hover2pi Dec 2, 2022
9ad71e0
merging with develop
hover2pi Jan 23, 2023
d8eab2c
update version in base.html
jaymedina Oct 30, 2020
088df44
pep8 compliance
jaymedina Oct 30, 2020
af4044c
add condition w/ badPAs
falkben Nov 9, 2020
dafac1a
make binComp a list of floats
jaymedina Oct 20, 2020
83f28e2
removed print statement
jaymedina Oct 20, 2020
6974767
Added CHANGELOG.md to repo
hover2pi Nov 9, 2020
051c737
Minor edit
hover2pi Nov 9, 2020
da77f75
Removed deprecated astropy.extern.six.StringIO dependency, replaced w…
bourque Nov 4, 2020
e7f0b8b
updated asteval dependency
bourque Nov 10, 2020
047d9ba
Attempting to kick-start GitHub which for some reason is not respondi…
bourque Nov 10, 2020
6ae64a4
Repaired logging code and added logging to all Web tools
hover2pi Dec 4, 2020
f3e3adf
Added throughputs from pandeia and helpers function to fetch them
hover2pi Dec 23, 2020
e9c4a1e
Converted fits files to txt so svo_filters can read them and updated …
hover2pi Dec 23, 2020
9a00d5d
Updated LDC code to work with svo_filters 0.3.0
hover2pi Dec 31, 2020
8d7527d
Checking if PyYAML install is case sensitive
hover2pi Dec 31, 2020
6f91963
Trying to resolve scipy1.6.0 requires PyYAML5.1.0 but bandit requires…
hover2pi Dec 31, 2020
e206d28
Removed bandit temporarily to see if builds pass
hover2pi Jan 4, 2021
bbbb8dc
Bump svo_filters to v0.3.0 in py3.7 env
hover2pi Jan 4, 2021
91ff308
Setting scipy bandit and pyyaml versions
hover2pi Jan 4, 2021
f007d8e
PEP compliance for utils.py
hover2pi Jan 4, 2021
9c6e5e5
Removed pinned pyyaml version in setup.py that was breking the conda …
hover2pi Jan 5, 2021
671a84a
werkzug version pin
hover2pi Jan 5, 2021
d1e6b1a
Added code to generate JWST throughputs and populated the throughputs…
hover2pi Feb 17, 2021
a334956
Upgraded PyYAML>=5.4 as per pyup recommendation
hover2pi Feb 17, 2021
63da263
Added try except for pandeia install which is only needed to generate…
hover2pi Feb 18, 2021
1f25891
Update cython from 0.29.21 to 0.29.22
pyup-bot Mar 1, 2021
beca72e
Update pandas from 1.2.0 to 1.2.2
pyup-bot Mar 1, 2021
a314d1f
Update pytest from 6.2.1 to 6.2.2
pyup-bot Mar 1, 2021
1c768a5
Update pyyaml from 5.3.1 to 5.4.1
pyup-bot Mar 1, 2021
abcfac7
Update scipy from 1.6.0 to 1.6.1
pyup-bot Mar 1, 2021
abda2a2
Update sphinx from 3.4.1 to 3.5.1
pyup-bot Mar 1, 2021
5631627
Update sqlalchemy from 1.3.22 to 1.3.23
pyup-bot Mar 1, 2021
55c5ef5
Update boto3 from 1.16.47 to 1.16.63
pyup-bot Feb 1, 2021
d7403c0
Update matplotlib from 3.3.3 to 3.3.4
pyup-bot Feb 1, 2021
a7ecc95
Update numpy from 1.19.4 to 1.20.0
pyup-bot Feb 1, 2021
afe9a36
Update pandas from 1.2.0 to 1.2.1
pyup-bot Feb 1, 2021
1c85830
Update pytest from 6.2.1 to 6.2.2
pyup-bot Feb 1, 2021
63a25f9
Update pyyaml from 5.3.1 to 5.4.1
pyup-bot Feb 1, 2021
9accf8a
Update sphinx from 3.4.1 to 3.4.3
pyup-bot Feb 1, 2021
eb2b858
pyup updates 02/21
bourque Feb 2, 2021
f679fdb
Moving flask-wtf back to pip since the latest version doesnt appear t…
bourque Feb 2, 2021
f0e1870
Reverting svo_filters as I dont think updating this may break some th…
bourque Feb 2, 2021
caf8667
Reverting astropy after some failed tests
bourque Feb 2, 2021
bcf294a
Added explicity pip dependency
bourque Feb 16, 2021
48f002b
Added python3.8 travis build
bourque Feb 16, 2021
f6a9742
Added dependencies
bourque Feb 16, 2021
5c5d668
Initial commit of conda 3.9 env
bourque Feb 16, 2021
445417d
Added 3.9 build
bourque Feb 16, 2021
87e19aa
Skipping jwst_gtvt test when using python3.9
bourque Feb 19, 2021
b2c7394
Remove support for python 3.6
bourque Feb 19, 2021
05b1fec
March 2021 pyup updates
bourque Mar 2, 2021
2265cb9
Added citation information
bourque Feb 22, 2021
d23e8cb
Fixed and added some badges
bourque Feb 22, 2021
895326d
The README logo is a bit unecissarily large
bourque Feb 22, 2021
07c5d6b
Fixed typo
bourque Feb 22, 2021
62b561a
Added pysiaf to NIRISS fieldsim
hover2pi Mar 30, 2021
d82e301
optimizing contam tool but need to fix data sources.
hover2pi Apr 27, 2021
b2e9695
Undoing previous mess
hover2pi Jan 23, 2023
4c220a6
Merging LDC updates into develop
hover2pi Jan 26, 2023
6fa9556
Bump to v1.2.5
hover2pi Jan 26, 2023
743db78
REsolving rest of LDC merge conflicts
hover2pi Jan 26, 2023
e0612fe
Merge conflicts
hover2pi Jan 26, 2023
e959795
pinning docutils version
hover2pi Jan 26, 2023
08a08d2
regions and docutils versions
hover2pi Jan 26, 2023
168ec22
Removing docutils pin in setup.py
hover2pi Jan 26, 2023
1182f5f
Updating test to reflect new value in exomast
hover2pi Jan 26, 2023
89c2701
Play nice, packages
hover2pi Jan 26, 2023
8859e50
Messing with sphinx version
hover2pi Jan 26, 2023
981b1de
This package stuff is the absolute worst part of programming. I hate it.
hover2pi Jan 26, 2023
9b0c8cb
Messing with packages to get build passing
hover2pi Jan 26, 2023
6c967a9
docutils is killing me
hover2pi Jan 26, 2023
777e730
I hate you sphinx
hover2pi Jan 26, 2023
aa0e484
upgrade astropy
hover2pi Jan 26, 2023
7631780
typo
hover2pi Jan 26, 2023
b742fa5
numpy upgrade so astropy 4.2 works
hover2pi Jan 26, 2023
366eb45
astropy bump
hover2pi Jan 30, 2023
5cc7323
astropy bump
hover2pi Jan 30, 2023
6ab7053
Starting over with dependencies
hover2pi Feb 14, 2023
11ee8ba
Updated tests
hover2pi Feb 14, 2023
05fab4c
Removed Python 3.7 support
hover2pi Feb 14, 2023
8e75fdd
Removed Python 3.7 support
hover2pi Feb 14, 2023
a15cf7d
Added python 3.10 support
hover2pi Feb 14, 2023
f2ec2c4
Upgraded hotsoss to v0.1.8 and fixed broken tests
hover2pi Feb 22, 2023
a0e2b4b
Why isnt conda installing the astropy version I specify
hover2pi Feb 22, 2023
8cda4ac
Astro-why
hover2pi Feb 22, 2023
5cef3b8
Rolling back dependencies to see what tests fail with old installs
hover2pi Feb 22, 2023
7a93fbc
I am the batman
hover2pi Feb 22, 2023
ed48b22
Pinning pyvo
hover2pi Feb 23, 2023
e10b112
Perhaps pip installing numpy instead of conda will preserve the versi…
hover2pi Feb 23, 2023
352f062
Removing old Travis env build.
hover2pi Feb 23, 2023
b664ea1
Removing reinstall of numpy from ci.yml file
hover2pi Feb 23, 2023
fa41b40
Adding --no-deps flag to exoctk install because everything else is al…
hover2pi Feb 23, 2023
96629b7
Adding regions to deps
hover2pi Feb 23, 2023
4066e29
Adding erfa to deps
hover2pi Feb 23, 2023
4e27ac0
Adding pyerfa to deps
hover2pi Feb 23, 2023
27554b2
Reconfigure github actions to only run tests on pull_request
hover2pi Feb 23, 2023
6d806dc
Use conda, not pip, to install numpy with python3.9 apparently
hover2pi Feb 23, 2023
20cd6ea
Merge pull request #492 from ExoCTK/optimize_contam
hover2pi Feb 23, 2023
0282a07
Fixed contam_visibility form that got messed up in the merge
hover2pi Mar 1, 2023
7adb793
Switch pyup ownership from bourque to hover2pi
bourque Mar 1, 2023
281510c
Merge branch 'develop' into switch-pyup-ownership
hover2pi Mar 1, 2023
659278d
Merge pull request #557 from ExoCTK/switch-pyup-ownership
hover2pi Mar 2, 2023
568d743
Bug fixes
hover2pi Mar 2, 2023
9ae6c2c
Updated deps
hover2pi Mar 2, 2023
856be6e
astropy looser pin
hover2pi Mar 2, 2023
2e92eb8
Dependencies
hover2pi Mar 2, 2023
d7bbd05
Et tu pip?
hover2pi Mar 2, 2023
1fd7e2b
Numpy update
hover2pi Mar 2, 2023
d77514a
Numpy you scaliwag
hover2pi Mar 2, 2023
d56a712
numpy you fool
hover2pi Mar 2, 2023
37ab56e
gtvt commit pin since 0.3.1 not available
hover2pi Mar 2, 2023
da6864c
gtvt business
hover2pi Mar 2, 2023
49cdaf9
gtvt business
hover2pi Mar 2, 2023
86722f9
Updating deprecated readthedocs build info
hover2pi Mar 3, 2023
ae8ce86
Setting python version maybe?
hover2pi Mar 3, 2023
1e14597
Readthedocs... or dont... see if I care
hover2pi Mar 3, 2023
e4a8b81
Renamed requirements file
hover2pi Mar 3, 2023
da37a34
Fixed broken filepath for contam tool plot
hover2pi Mar 3, 2023
b8a98b4
Merge pull request #559 from ExoCTK/web_patch
hover2pi Mar 7, 2023
190d0a4
Updated LDC header text written before JWST launched
hover2pi Mar 8, 2023
f53fff4
Still messing with numpy version
hover2pi Mar 8, 2023
797d5b6
Still messing with numpy version
hover2pi Mar 8, 2023
b82fbb3
Merge pull request #560 from ExoCTK/batbugs
hover2pi Mar 8, 2023
4414936
Update environment-3.8.yml
hover2pi Mar 8, 2023
6aa0841
Update environment-3.9.yml
hover2pi Mar 8, 2023
480a00e
Fixed indexing bug in ModelGrid and bumped h5py and numpy
hover2pi Mar 9, 2023
db00486
Fixed visPA bug and updated pysiaf and scipy to get tests passing
hover2pi Mar 10, 2023
2492438
Package not found errors in build
hover2pi Mar 10, 2023
3244676
Merge pull request #561 from ExoCTK/brucewayneisbatman
hover2pi Mar 10, 2023
954e031
Fixed pa_val bug in contam tool
hover2pi Mar 29, 2023
d5c71ac
Merge pull request #562 from ExoCTK/pa_val
hover2pi Mar 29, 2023
f7852f2
Removing old envs adding new updates ones
mfixstsci Jul 19, 2023
96960ed
Removing astroconda as install source
mfixstsci Jul 19, 2023
d1b06d7
Updating python versions we support in GHA pipeline
mfixstsci Jul 19, 2023
00c3054
Added alternate model grid function that just selects the model with …
hover2pi Jul 19, 2023
48b388c
Changed arg names
hover2pi Jul 19, 2023
ef7262a
Added print statement
hover2pi Jul 19, 2023
63fb3e3
Adding conda forge to source
mfixstsci Jul 19, 2023
64ccd88
Updated LDC and ModelGrid to skip interpolation and just get closest …
hover2pi Jul 19, 2023
49fb67c
Updated hotsoss to v0.1.9 for python 3.9+ support
hover2pi Jul 21, 2023
912bf61
Bumping hotsoss version
mfixstsci Jul 21, 2023
6f7bad1
Downgrading hotsoss, hasnt been released to pip yet
mfixstsci Jul 21, 2023
4bfe37e
Upgraded svo_filters to v0.5.0 for py10 support
hover2pi Jul 21, 2023
f3cc502
Bumped hotsoss version to v0.1.9
hover2pi Aug 16, 2023
9cfb233
Merge pull request #574 from mfixstsci/update-dependencies-july-18-2023
hover2pi Aug 28, 2023
789a44f
Merge conflicts
hover2pi Aug 28, 2023
d9b33f4
Bumper hotsoss to v0.1.9
hover2pi Aug 28, 2023
f793a43
Loosened up dependencies
hover2pi Aug 28, 2023
b1f87f0
Updated Panel to TabPanel for bokeh
hover2pi Aug 28, 2023
f19b037
Updated LDC tests for bokeh 3.0
hover2pi Aug 28, 2023
4912b90
Merging develop into ldc_fix
hover2pi Aug 29, 2023
596bb60
Adding new_vis_plot.py module
hover2pi Aug 29, 2023
e248829
Added tests for new_vis_plot.py
hover2pi Aug 29, 2023
d103afe
Fixed plotting stuff
hover2pi Aug 29, 2023
00813df
Fixed bokeh plot_width issue in LDC and added wavelength ranges to mo…
hover2pi Aug 29, 2023
ae7f04d
bohel plot keyword fix
hover2pi Aug 30, 2023
8010077
pinning werkzeug
hover2pi Aug 30, 2023
4f95b73
Trying to fix visibility table download button
hover2pi Aug 30, 2023
4ab90c5
Trying download button
hover2pi Aug 30, 2023
7eb5eb0
Trying by passing DF to form
hover2pi Aug 30, 2023
0644427
Save as dat
hover2pi Aug 30, 2023
2fb490c
typo
hover2pi Aug 30, 2023
d4af33d
Fixing visib download
hover2pi Aug 30, 2023
f73c925
Spruced up contam plot reeeeal nice
hover2pi Sep 1, 2023
6a80a6f
Hovertool kwarg update
hover2pi Sep 1, 2023
8d67dae
Reduced max cores to 8
hover2pi Sep 1, 2023
e23a61a
Superfluous line
hover2pi Sep 1, 2023
538859b
Fixed the tap tool for contam plots
hover2pi Sep 5, 2023
48b3b42
Fixed requirements so RTD build passes
hover2pi Sep 26, 2023
e94193a
Merge pull request #575 from ExoCTK/ldc_fix
hover2pi Sep 26, 2023
084c00d
Merge pull request #577 from ExoCTK/develop
hover2pi Sep 28, 2023
814175d
Adding pyproject.toml, updating docs and ci build
mfixstsci Jan 26, 2024
bf66305
Adding dependabot.yml for monthly dependency reminders
mfixstsci Jan 26, 2024
75b4959
updating workflow file
mfixstsci Jan 26, 2024
4e50846
use setup-python for testing
zacharyburnett Jan 26, 2024
b418761
cancel in-progress tests if another commit is pushed to the same ref
zacharyburnett Jan 26, 2024
2c35466
rename workflow to be more explicit
zacharyburnett Jan 26, 2024
4fe28ae
add CITATION.cff from info in README
zacharyburnett Jan 26, 2024
183214a
add acknowledgement text
zacharyburnett Jan 26, 2024
6c849cb
run all jobs
zacharyburnett Jan 29, 2024
6466cb4
write version to _version.py using setuptools_scm
zacharyburnett Jan 29, 2024
1cc01fa
remove version module
zacharyburnett Jan 29, 2024
2789789
use pyproject.toml in docs/conf.py
zacharyburnett Jan 29, 2024
49621ea
add OS to job name
zacharyburnett Jan 29, 2024
6e76179
update setup-python to v5 to address Node 16 deprecation warnings
zacharyburnett Jan 29, 2024
92f7799
Merge pull request #1 from zacharyburnett/pep621
mfixstsci Jan 29, 2024
8588eec
Created CONTRIBUTING file
hover2pi Jan 30, 2024
c20fde8
Added RELEASE procedure
hover2pi Jan 30, 2024
e1cc230
Added missing y-axis label to contam plot order 1
hover2pi Jan 30, 2024
9953d19
Added save button to contam plots
hover2pi Jan 30, 2024
ce76bd3
Added note to contam results page that sources are 2016 coordinates
hover2pi Jan 30, 2024
8f42fbd
Removing atmospheric retrieval codes, docs and tests.
mfixstsci Jan 30, 2024
f617188
update RTD config to use base conda environment and install from proj…
zacharyburnett Feb 1, 2024
9502480
Merge pull request #2 from zacharyburnett/fix/rtd
mfixstsci Feb 1, 2024
e2e8b25
Update .readthedocs.yaml
mfixstsci Feb 2, 2024
bd16703
Merge pull request #591 from mfixstsci/remove-atm-retrieval
nespinoza Feb 27, 2024
b2a5837
Merge pull request #589 from zacharyburnett/citation
nespinoza Apr 23, 2024
ffdddb0
Removed lightcurve Fitting tool
hover2pi May 7, 2024
e60fa56
Merge branch 'develop' into tier2
hover2pi May 7, 2024
2a067aa
Merge pull request #590 from ExoCTK/tier2
hover2pi May 7, 2024
d8cb6a5
Merge pull request #588 from mfixstsci/add-pyproject
hover2pi May 7, 2024
0bdfeef
Added proper motion correction to contam tool
hover2pi May 8, 2024
3ce13da
Added proper motion correction to contam tool
hover2pi May 8, 2024
d111e58
Minor formatting
hover2pi May 8, 2024
32ccc82
Minor formatting
hover2pi May 8, 2024
a46a127
Fixed the tooltips on the calc_vpa3 plot
hover2pi May 8, 2024
88ebafb
Fixed the tooltips on the calc_vpa3 plot
hover2pi May 8, 2024
44bb05c
Fixes broadcasting error with SUBSTRIP96 and galaxy support for conta…
hover2pi Jun 6, 2024
c5ab1de
Fixes broadcasting error with SUBSTRIP96 and galaxy support for conta…
hover2pi Jun 6, 2024
051fc51
Added epoch field to contam tool
hover2pi Jun 18, 2024
f088d24
Notebook update and env fixes
hover2pi Jun 26, 2024
f5345cb
Updated contam tool notebook
hover2pi Jul 2, 2024
0085ba8
Replaced contam tool demo notebook
hover2pi Jul 2, 2024
ed9ce70
Removed MAST download
hover2pi Jul 2, 2024
c05853b
Added SOSS coeffs and removed hotsoss dependency
hover2pi Jul 16, 2024
b1337c7
Resolved merge conflicts
hover2pi Jul 16, 2024
8633837
Deleted old contam notebooks and updated new one.
hover2pi Jul 16, 2024
e7e664c
Resolved import conflict
hover2pi Jul 16, 2024
f65ddc2
Merge branch 'develop' into contam_updates
hover2pi Jul 16, 2024
291c0d6
Fixed Fortney grid select fields so no error is thrown
hover2pi Jul 17, 2024
f4b3d58
Merge pull request #597 from ExoCTK/contam_updates
hover2pi Jul 31, 2024
906dcf6
Updated environment files
mfixstsci Aug 1, 2024
3d983be
Typo fix
mfixstsci Aug 1, 2024
596e175
Updating MIRI keyword for contam-viz
mfixstsci Aug 1, 2024
8878539
Remove merge conflict in requirements.txt
mfixstsci Aug 1, 2024
445935e
Merge pull request #609 from mfixstsci/fix-merge-conflicts
hover2pi Aug 1, 2024
1dc9556
Merge pull request #608 from mfixstsci/contam-viz-instrument-keyword
hover2pi Aug 1, 2024
1944e65
Updated the version number in the footer
hover2pi Aug 5, 2024
c19efe7
Updated plot description text on results page
hover2pi Aug 5, 2024
4f4fdb5
now visibility tool goes from Cycle 3 to 6
nespinoza Aug 5, 2024
053d350
Updated tooltips on contam plot
hover2pi Aug 5, 2024
19f23d2
Merge pull request #612 from nespinoza/new-visibility-dates
hover2pi Aug 5, 2024
ea5f3b9
Merge pull request #613 from ExoCTK/v126_edits
nespinoza Aug 5, 2024
74febc5
Removed MIRI text from contam tool page
hover2pi Aug 27, 2024
7c2a2cd
Adding if else to avoid keyerror in field simulator
mfixstsci Sep 10, 2024
01e6e13
Merge pull request #618 from mfixstsci/update-nrs-viz-plot
hover2pi Sep 10, 2024
caabf34
Fixes add_source call for contam companions
hover2pi Sep 16, 2024
f130b8d
Merge pull request #615 from ExoCTK/patch
hover2pi Sep 16, 2024
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
3 changes: 1 addition & 2 deletions env/environment-3.10.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ dependencies:
- docutils>=0.16
- flask_wtf>=1.1.1
- h5py>=3.9.0
- hotsoss>=0.1.9
- gunicorn>=21.1.0
- numpy>=1.25.1
- platon>=5.4
Expand All @@ -47,6 +46,6 @@ dependencies:
- scipy>=1.11.1
- sphinx_astropy>=1.9.1
- svo-filters>=0.4.4
- werkzeug==2.0.3
- werkzeug>=3.0.1
- jwst_gtvt>=1.0.0
- astroquery>=0.4.6
3 changes: 1 addition & 2 deletions env/environment-3.11.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ dependencies:
- docutils>=0.16
- flask_wtf>=1.1.1
- h5py>=3.9.0
- hotsoss>=0.1.9
- gunicorn>=21.1.0
- numpy>=1.25.1
- platon>=5.4
Expand All @@ -47,6 +46,6 @@ dependencies:
- scipy>=1.11.1
- sphinx_astropy>=1.9.1
- svo-filters>=0.4.4
- werkzeug==2.0.3
- werkzeug>=3.0.1
- jwst_gtvt>=1.0.0
- astroquery>=0.4.6
3 changes: 1 addition & 2 deletions env/environment-3.9.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ dependencies:
- docutils>=0.16
- flask_wtf>=1.1.1
- h5py>=3.9.0
- hotsoss>=0.1.9
- gunicorn>=21.1.0
- markupsafe==2.0.1
- numpy>=1.25.1
Expand All @@ -48,6 +47,6 @@ dependencies:
- scipy>=1.11.1
- sphinx_astropy>=1.9.1
- svo-filters>=0.4.4
- werkzeug==2.0.3
- werkzeug>=3.0.1
- jwst_gtvt>=1.0.0
- astroquery>=0.4.6
378 changes: 292 additions & 86 deletions exoctk/contam_visibility/field_simulator.py

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions exoctk/contam_visibility/new_vis_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ def get_exoplanet_positions(ra, dec, in_FOR=None):
"""Use the jwst_gtvt to obtain positions of exoplanet.
"""

eph = Ephemeris()
# Set ephemeris to go from Cycle 3 to Cycle 6:
eph = Ephemeris(start_date=Time('2024-07-30'), end_date=Time('2028-07-30'))
exoplanet_data = eph.get_fixed_target_positions(ra, dec)

if in_FOR is None:
Expand Down Expand Up @@ -68,4 +69,4 @@ def build_visibility_plot(target_name, instrument, ra, dec):

p.add_tools(HoverTool(tooltips=TOOLTIPS, formatters={'@times': 'datetime'}))

return p
return p
22 changes: 11 additions & 11 deletions exoctk/exoctk_app/app_exoctk.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

from exoctk import log_exoctk
from exoctk.contam_visibility.new_vis_plot import build_visibility_plot, get_exoplanet_positions
#from exoctk.contam_visibility import visibilityPA as vpa
from exoctk.contam_visibility import field_simulator as fs
from exoctk.contam_visibility import contamination_figure as cf
from exoctk.contam_visibility.miniTools import contamVerify
Expand Down Expand Up @@ -139,7 +138,7 @@ def fortney():
plot_div=div,
js_resources=js_resources,
css_resources=css_resources,
temp=temp_out,
temp=sorted(temp_out, key=float),
table_string=table_string
)

Expand Down Expand Up @@ -453,10 +452,12 @@ def contam_visibility():

if form.validate_on_submit() and (form.calculate_submit.data or form.calculate_contam_submit.data):

instrument = fs.APERTURES[form.inst.data]['inst']
if form.inst.data == "NIRSpec":
instrument = form.inst.data
else:
instrument = fs.APERTURES[form.inst.data]['inst']

try:

# Log the form inputs
log_exoctk.log_form_input(request.form, 'contam_visibility', DB)

Expand Down Expand Up @@ -507,7 +508,7 @@ def contam_visibility():
companion = {'name': 'Companion', 'ra': ra_deg, 'dec': dec_deg, 'teff': comp_teff, 'delta_mag': comp_mag, 'dist': comp_dist, 'pa': comp_pa}

# Make field simulation
targframe, starcube, results = fs.field_simulation(ra_deg, dec_deg, form.inst.data, binComp=companion, plot=False, multi=False)
targframe, starcube, results = fs.field_simulation(ra_deg, dec_deg, form.inst.data, target_date=form.epoch.data, binComp=companion, plot=False, multi=False)

# Make the plot
# contam_plot = fs.contam_slider_plot(results)
Expand All @@ -520,20 +521,19 @@ def contam_visibility():
starCube[0, :, :] = (targframe[0]).T[::-1, ::-1]
starCube[1, :, :] = (targframe[1]).T[::-1, ::-1]
starCube[2:, :, :] = starcube.swapaxes(1, 2)[:, ::-1, ::-1]
contam_plot = cf.contam(starCube, 'NIS_SUBSTRIP256', targetName=form.targname.data, badPAs=badPAs)
contam_plot = cf.contam(starCube, form.inst.data, targetName=form.targname.data, badPAs=badPAs)

else:

# Get stars
stars = fs.find_stars(ra_deg, dec_deg, verbose=False)
stars = fs.find_sources(ra_deg, dec_deg, target_date=form.epoch.data, verbose=False)

# Add companion
print(comp_teff, comp_mag, comp_dist, comp_pa)
if comp_teff is not None and comp_mag is not None and comp_dist is not None and comp_pa is not None:
stars = fs.add_star(stars, 'Companion', ra_deg, dec_deg, comp_teff, delta_mag=comp_mag, dist=comp_dist, pa=comp_pa)
stars = fs.add_source(stars, 'Companion', ra, dec, teff=comp_teff, delta_mag=comp_mag, dist=comp_dist, pa=comp_pa, type='STAR')

# Calculate contam
result, contam_plot = fs.calc_v3pa(pa_val, stars, 'NIS_SUBSTRIP256', plot=True, verbose=False)
result, contam_plot = fs.calc_v3pa(pa_val, stars, form.inst.data, plot=True, verbose=False)

# Get scripts
contam_js = INLINE.render_js()
Expand All @@ -551,7 +551,7 @@ def contam_visibility():
vis_css=vis_css, contam_plot=contam_div,
contam_script=contam_script,
contam_js=contam_js,
contam_css=contam_css, pa_val=pa_val)
contam_css=contam_css, pa_val=pa_val, epoch=form.epoch.data)

except Exception as e:
err = 'The following error occurred: ' + str(e)
Expand Down
8 changes: 5 additions & 3 deletions exoctk/exoctk_app/form_validation.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import os

from flask_wtf import FlaskForm
from astropy.time import Time
import numpy as np
from svo_filters import svo
from wtforms import StringField, SubmitField, DecimalField, RadioField, SelectField, SelectMultipleField, IntegerField, FloatField
Expand Down Expand Up @@ -39,7 +40,8 @@ class ContamVisForm(BaseForm):
ra = DecimalField('ra', validators=[NumberRange(min=0, max=360, message='RA must be between 0 and 360 degrees')])
dec = DecimalField('dec', validators=[NumberRange(min=-90, max=90, message='Declinaton must be between -90 and 90 degrees')])
v3pa = DecimalField('v3pa', default=-1, validators=[NumberRange(min=-1, max=360, message='PA must be between 0 and 360 degrees')])
inst = SelectField('inst', choices=[('NIS_SUBSTRIP256', 'NIRISS - SOSS - SUBSTRIP256'), ('NIS_SUBSTRIP96', 'NIRISS - SOSS - SUBSTRIP96'), ('NRCA5_GRISM256_F322W2', 'NIRCam - Grism Time Series - F322W2 (Visibility Only)'), ('NRCA5_GRISM256_F444W', 'NIRCam - Grism Time Series - F444W (Visibility Only)'), ('MIRI_SLITLESSPRISM', 'MIRI - LRS (Visibility Only)'), ('NIRSpec', 'NIRSpec (Visibility Only)')])
epoch = IntegerField('epoch', default=Time.now().value.year, validators=[NumberRange(min=2000, max=2050, message='Epoch must be between 2000 and 2050')])
inst = SelectField('inst', choices=[('NIS_SUBSTRIP256', 'NIRISS - SOSS - SUBSTRIP256'), ('NIS_SUBSTRIP96', 'NIRISS - SOSS - SUBSTRIP96'), ('NRCA5_GRISM256_F322W2', 'NIRCam - Grism Time Series - F322W2 (Visibility Only)'), ('NRCA5_GRISM256_F444W', 'NIRCam - Grism Time Series - F444W (Visibility Only)'), ('MIRIM_SLITLESSPRISM', 'MIRI - LRS (Visibility Only)'), ('NIRSpec', 'NIRSpec (Visibility Only)')])
delta_mag = DecimalField('delta_mag', default=None, validators=[Optional()])
dist = DecimalField('dist', default=None, validators=[Optional()])
pa = DecimalField('pa', default=None, validators=[Optional(), NumberRange(min=0, max=360, message='PA must be between 0 and 360 degrees')])
Expand All @@ -54,9 +56,9 @@ class FortneyModelForm(BaseForm):
planet_mass_unit = SelectField('planet_mass_unit', choices=[('M_jup', 'Jupiter Mass'), ('kilogram', 'kilogram'), ('g', 'gram'), ('M_earth', 'Earth Mass'), ('M_sun', 'Solar Mass')], validators=[InputRequired('A mass unit is required')])
planet_radius = DecimalField('planet_radius', default=1.25, validators=[InputRequired('A planet radius is required!'), NumberRange(min=0, message='Planet radius must be positive')])
planet_radius_unit = SelectField('planet_radius_unit', choices=[('R_jup', 'Jupiter Radius'), ('kilometer', 'kilometer'), ('m', 'meter'), ('R_earth', 'Earth Radius'), ('R_sun', 'Solar Radius')], validators=[InputRequired('A planet radius unit is required')])
stellar_radius = DecimalField('stellar_radius', default=1.0, validators=[InputRequired('A stellar radius is required!'), NumberRange(min=0, message='Stellar radius must be positive')])
stellar_radius = DecimalField('stellar_radius', validators=[InputRequired('A stellar radius is required!'), NumberRange(min=0, message='Stellar radius must be positive')])
stellar_radius_unit = SelectField('stellar_radius_unit', choices=[('R_sun', 'Solar Radius'), ('R_jup', 'Jupiter Radius'), ('kilometer', 'kilometer'), ('m', 'meter'), ('R_earth', 'Earth Radius')], validators=[InputRequired('A stellar radius unit is required')])
chemistry = SelectField('chemistry', choices=[('noTiO', '500'), ('eqchem', '750'), (1000, '1000'), (1250, '1250'), (1500, '1500'), (1750, '1750'), (2000, '2000'), (2250, '2250'), (2500, '2500')], validators=[InputRequired('A chemistry type is required')])
chemistry = SelectField('chemistry', choices=[('noTiO', '500'), ('eqchem', '750')], validators=[InputRequired('A chemistry type is required')])
clouds = SelectField('clouds', choices=[('0', 'Nothing'), ('ray10', 'Weak Rayleigh'), ('ray100', 'Medium Rayleigh'), ('ray1000', 'Strong Rayleigh'), ('flat10', 'Weak Cloud'), ('flat100', 'Medium Cloud'), ('flat1000', 'Strong Cloud')], validators=[InputRequired('A cloud model is required')])

# Form submits
Expand Down
4 changes: 2 additions & 2 deletions exoctk/exoctk_app/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
</li>

<li class="dropdown">
<a href="https://github.com/ExoCTK/exoctk#obtain-the-exoctk-data">ExoCTK Data Downlaod</span></a></li>
<a href="https://github.com/ExoCTK/exoctk#obtain-the-exoctk-data">ExoCTK Data Download</span></a></li>
</div>
</div>
</nav>
Expand Down Expand Up @@ -146,7 +146,7 @@
<div style="float:right; width:120px;text-align:center;">
<p>
Running<br>
<a href='https://github.com/ExoCTK/exoctk/releases/tag/v1.2.5'>exoctk v1.2.5</a>{{version|safe}}
<a href='https://github.com/ExoCTK/exoctk/releases/tag/v1.2.6'>exoctk v1.2.6</a>{{version|safe}}
</p>
<p style='font-size:0.8em'>
<a href='admin' style='color:#aaaaaa;'>Admin Area</a>
Expand Down
30 changes: 23 additions & 7 deletions exoctk/exoctk_app/templates/contam_visibility.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,11 @@ <h1>Contamination & Visibility Calculator</h1>
observation, thus making it useful to plan observations at the optimal PA. The tool also computes the JWST
accessibility windows of the target, along with the corresponding accessible PAs for the chosen instrument/observation mode.
</p>
<p>
<b>NIRCam and MIRI options</b>: Users can calculate contamination levels for NIRCam Grism Time Series (F322W2, F444W) and MIRI Low Resolution
Spectroscopy mode by calling this tool locally on a terminal. Please keep in mind that the calculation for the
NIRCam and MIRI modes can take anywhere from 1-3 hours due to the complexity of their algorithms. For instructions on how to
generate the contamination plots for NIRCam and MIRI, please refer to our Contam Visibility <a href="https://jwst-docs.stsci.edu/jwst-other-tools/exoplanet-observations-proposal-tools/contamination-overlap-tool#ContaminationOverlapTool-Contam_nircam_miriContaminationCalculatorforNIRCamandMIRImodes(availablelocally)">JWST-Docs page</a>.
</p>

<p>Potential caveats:</p>
<ul>
<li>The field stars used for this analysis are retrieved from the Gaia EDR3 point source catalogue. Contamination from stars missing from this catalog are thus not modelled; this may be important for faint targets.</li>
<li>Distortion has been observed to create a trace offset as large as ~4 to 5 pixels in both the X and Y direction in the science frame which may contribute to uncertainty in the contamination plots.</li>
<li>Traces on the MIRI detector may fold over below 4.5 microns. Our model traces assume no spectral foldover. Depending on the observation, this may lead to inaccurate results.</li>
</ul>
<p>If there are any questions regarding these caveats please send us a ticket through the JWST help desk and we will get back to you shortly.</p>
<form class='form-horizontal' action="/contam_visibility" method="POST" />
Expand Down Expand Up @@ -101,6 +95,28 @@ <h1>Contamination & Visibility Calculator</h1>
</div>
</div>

<hr class="col-md-12">

<div class='form-group'>

<label class="col-sm-2 control-label">Epoch</label>

<div class="col-sm-10">

<div class="input-group">
<div class="input-group-addon" style='width:60px'>Year</div>
{{ form.epoch(value=form.epoch.data, size=10, rows=1, class='form-control') }}
<div class="input-group-addon" style='width:60px'></div>
</div>
<span id="helpBlock" class="help-block">The 4-digit year of the planned observations</span>
<br>
{% for error in form.epoch.errors %}
<p style="color: red;">{{ error }}</p>
{% endfor %}

</div>
</div>

<hr class="col-md-12">

<div class='form-group'>
Expand Down
6 changes: 4 additions & 2 deletions exoctk/exoctk_app/templates/contam_visibility_results.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ <h3>Target Visibility</h3>
{% if contam_plot %}
<hr>
{% if pa_val == -1 %}
<h3>Target Contamination at all Position Angles</h3>
<h3>Target Contamination for all Position Angles at Epoch={{ epoch }}</h3>
{% else %}
<h3> Target Contamination at PA={{ pa_val }}</h3>
<h3> Target Contamination for PA={{ pa_val }} at Epoch={{ epoch }}</h3>
{% endif %}
<br>
<!-- <p><img src="data:image/png;base64,{{ contam_plot | safe }}" alt="contam" width='1000px'></p> -->
Expand Down Expand Up @@ -105,6 +105,8 @@ <h3> Target Contamination at PA={{ pa_val }}</h3>
<li>The top plot shows the simulated observation at the given position angle.</li>
<li>The circles show the detector location of the 0th order, which you can click to resolve in Vizier.</li>
<li>Red lines show the predicted order 1, 2, and 3 trace positions for the target (solid) as well as all contaminant sources (dashed).</li>
<li>If a source's Teff value is listed as "---" on hover, a temperature could not be determined and a 2300K model SED will be used for contamination estimation.</li>
<li>Pink dashed lines show the predicted order 1, 2, and 3 trace positions for contaminant extended sources.</li>
<li>The bottom plot shows the fractional contamination of orders 1 (blue), 2 (red), and 3 (green) in each detector column.</li>
</ul>
{% endif %}
Expand Down
3 changes: 0 additions & 3 deletions exoctk/exoctk_app/templates/fortney.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ <h1>Fortney Grid</h1>
<div class="col-sm-3">

<select id="ptemp" name="ptemp" class="form-control" data-placeholder="Select Temp (K)">
<option value=""></option>
{% for i in temp %}
<option {{ i }} value={{ i }}>{{ i }}</option>
{% endfor %}
Expand All @@ -45,7 +44,6 @@ <h1>Fortney Grid</h1>
<div class="col-sm-3">

<select id="pchem" name="pchem" class="form-control" data-placeholder="Select Chemistry">
<option value=""></option>
<option value='noTiO'>Equilibrium Chemistry</option>
<option value='eqchem'>Equilibrium Chemistry, w/ TiO</option>
</select>
Expand All @@ -60,7 +58,6 @@ <h1>Fortney Grid</h1>
<div class="col-sm-3">

<select id="cloud" name="cloud" class="form-control" data-placeholder="Clouds/Scattering">
<option value=""></option>
<option value="0">Nothing</option>
<option value="ray10">Weak Rayleigh</option>
<option value="ray100">Medium Rayleigh</option>
Expand Down
3 changes: 1 addition & 2 deletions exoctk/limb_darkening/limb_darkening_fit.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#!/usr/bin/python
# -*- coding: latin-1 -*-
"""
A module to calculate limb darkening coefficients from a grid of model
spectra
A module to calculate limb darkening coefficients from a grid of model spectra
"""

from copy import copy
Expand Down
Loading