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

Adding links to ramp fitting docs for roman and jwst in rampviz #3301

Merged
merged 6 commits into from
Nov 21, 2024
Merged
Show file tree
Hide file tree
Changes from 2 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
17 changes: 14 additions & 3 deletions docs/rampviz/plugins.rst
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,17 @@ Slice
Ramp Extraction
===============

Coming soon.


Extract a ramp from a ramp cube.

Data products from infrared detectors flow through the official
`JWST <https://jwst-pipeline.readthedocs.io/en/latest/>`_ or
bmorris3 marked this conversation as resolved.
Show resolved Hide resolved
`Roman <https://roman-pipeline.readthedocs.io/en/latest/>`_ mission pipelines in levels. Infrared detectors use
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally this should also be using :ref: but I cannot find a good place to do it where it exist already. Might need to add one upstream or maybe use :doc: as you have.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

an "up-the-ramp" readout pattern, which is summarized in the
`JWST documentation <https://jwst-docs.stsci.edu/understanding-exposure-times>`_.

The Ramp Extraction plugin is a quick-look tool, and it does not support all of the features of the mission pipelines.
The mission pipelines produce rate images from ramp cubes by fitting the samples up the ramp while accounting for
non-linearity, jumps detected during an integration, saturation, and detector defects. These data quality checks and
corrections are not applied in the Ramp Extraction plugin. For details on how rate images are derived from ramps, see
the `JWST pipeline's ramp fitting step <https://roman-pipeline.readthedocs.io/en/latest/roman/ramp_fitting/index.html>`_
pllim marked this conversation as resolved.
Show resolved Hide resolved
or the `Roman pipeline's ramp fitting step <https://jwst-pipeline.readthedocs.io/en/latest/jwst/ramp_fitting/index.html#ramp-fitting-step>`_.
10 changes: 4 additions & 6 deletions jdaviz/components/external_link.vue
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kecnry – is this ok for you? This removes the line break after the div, but also removes the top margin.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how does it look everywhere else that we use it? If those look ok, then great, otherwise we might want a toggle (can also have dynamic styling on the div to force in the same line).

Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
<template>
<div style="margin-top: 4px">
<a :href="link" target="__blank" style="color: #A75000">
<b>{{ linktext || "Learn More" }}</b>
<v-icon x-small color="#A75000">mdi-open-in-new</v-icon>
</a>
</div>
<a :href="link" target="__blank" style="color: #A75000">
<b>{{ linktext || "Learn More" }}</b>
<v-icon x-small color="#A75000">mdi-open-in-new</v-icon>
</a>
</template>

<script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,17 @@
<div @mouseover="() => active_step='extract'">
<j-plugin-section-header :active="active_step==='extract'">Extract</j-plugin-section-header>

<v-row>
<span class="v-messages v-messages__message text--secondary">
Note: this plugin does not detecting defects in ramps, fit the ramps, or apply corrections. For details on
how rate images are derived from ramps, see the documentation for the
<j-external-link link='https://roman-pipeline.readthedocs.io/en/latest/roman/ramp_fitting/index.html' linktext='Roman pipeline'>
</j-external-link> or the
<j-external-link link='https://jwst-pipeline.readthedocs.io/en/latest/jwst/ramp_fitting/index.html#ramp-fitting-step' linktext='JWST pipeline'>
</j-external-link>.
</span>
</v-row>

<v-row v-if="aperture_selected !== 'None' && !aperture_selected_validity.is_aperture">
<span class="v-messages v-messages__message text--secondary">
Aperture: '{{aperture_selected}}' does not support subpixel: {{aperture_selected_validity.aperture_message}}.
Expand Down