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

Add IFU+datacubes docs page. #917

Merged
merged 2 commits into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ Contents
jwst_measured_opds.ipynb
jwst_detector_effects.ipynb
jwst_matching_psfs_to_data.ipynb
jwst_ifu_datacubes.ipynb
jwst_large_psf.ipynb
jwst_optical_budgets.ipynb
jwst_psf_subtraction.ipynb
Expand Down
579 changes: 579 additions & 0 deletions docs/jwst_ifu_datacubes.ipynb

Large diffs are not rendered by default.

8 changes: 6 additions & 2 deletions docs/jwst_matching_psfs_to_data.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@
"id": "42ce87d3",
"metadata": {},
"source": [
"Often one wants to generate PSFs matched to some particular science dataset or file. The convenience function `webbpsf.setup_sim_to_match_data` helps with this, using the file's FITS header to set up a simulated instrument matched to the appropriate instrument setup and date of observation. "
"Often one wants to generate PSFs matched to some particular science dataset or file. The convenience function `webbpsf.setup_sim_to_match_file` helps with this, using the file's FITS header to set up a simulated instrument matched to the appropriate instrument setup and date of observation. \n",
"\n",
"Let's call that function, providing a filename of a data file already downloaded in the current directory:"
]
},
{
Expand Down Expand Up @@ -91,6 +93,7 @@
"metadata": {},
"source": [
"This function will:\n",
"\n",
" * Create a webbpsf instrument object for the relevant instrument\n",
" * Configure it to have the correct filter, detector, and other relevant instrument parameters for that science data file (e.g. coronagraph masks and so on). \n",
" * Load the measured telescope mirror alignment data from the closest-in-time wavefront sensing visit to that science data. "
Expand Down Expand Up @@ -160,6 +163,7 @@
"metadata": {},
"source": [
"The difference between the oversampled and detector-sampled output products is readily apparent. The distortion effects are generally more subtle: \n",
"\n",
" * In this example case, note the slightly blurred softer look of the DET_DIST output compared to DET_SAMP, or of OVERDIST compared to OVERSAMP. This aspect of the simulation is a model for charge transfer physics and inter-pixel capacitance within the detector which result in crosstalk between adjacent pixels.\n",
" * Also included as part of the distortion is a model for optical geometric distortions (including for instance slight differences between X and Y pixel scales, small rotations and skews of the detector pixel axes, the very-slightly-different position angles for each NIRCam detector, etc.). This attempts to forward-model the distortions which the \"drizzle\" pipeline algorithm corrects for, using the same astrometric calibration information for the instruments recorded in the [science instrument aperture file](https://pysiaf.readthedocs.io/en/latest/). \n",
"\n",
Expand Down Expand Up @@ -488,7 +492,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.7"
"version": "3.12.5"
}
},
"nbformat": 4,
Expand Down
Loading