Skip to main content

basic instrument signature removal for the NIRWALS instrument on the SALT telescope

Project description

nirwals_reduce - instrumental detrending pipeline for SALT NIRWALS

How to run

rss_reduce [options] file.fits

Available options

--maxfiles=N specifies the maximum number of files to open for a given up-the-ramp group. This is mostly to limit RAM usage. Default is no limit.

--nonlinearity=file.fits Apply non-linearity corrections to the reference-pixel/first-read subtracted dataset. The reference file should be a file generated via the rssnir_fit_nonlinearity tool to contain the pixel-level corrections in the correct format

--flat=flat.fits Specify a flatfield frame. Not implemented yet.

--dark=dark.fits Subtract a dark-current correction from the entire input data cube. Use rssnir_makedark.py to generate the dark calibration frame.

--output=suffix When generating the output filename, the specified suffix is inserted into the input filename. Example: for input file rss_test.fits the output filename would be _rss_test.suffix.fits. Default is "reduced".

--refpixel Use the reference pixel in the first & last 4 rows and columns to subtraced an instrumental pedestal level off all the input data. If not specified the first read is considered to contain this zero-exposure offset.

--dumps Mostly used for debugging. When provided the tool also writes a number of intermediate data products to disk that allow testing and verification.

Example call:

/work/rss/rss_reduce.py --refpixel --maxfiles=70 SALT_data_RN_20220606/20220606_RN_URG_2reads_9dB.540.1.20.fits

output:

rkotulla@legion:/work/rss/salt> ../rss_reduce/rss_reduce.py --refpixel \
    --maxfiles=70 SALT_data_RN_20220606/20220606_RN_URG_2reads_9dB.540.1.20.fits
/work/rss/salt/SALT_data_RN_20220606/20220606_RN_URG_2reads_9dB.540.1.20.fits
/work/rss/salt/SALT_data_RN_20220606/20220606_RN_URG_2reads_9dB.540.1.1.fits
 -- /work/rss/salt/SALT_data_RN_20220606/20220606_RN_URG_2reads_9dB.540.1.2.fits
 -- /work/rss/salt/SALT_data_RN_20220606/20220606_RN_URG_2reads_9dB.540.1.3.fits
 -- /work/rss/salt/SALT_data_RN_20220606/20220606_RN_URG_2reads_9dB.540.1.4.fits
...
 -- /work/rss/salt/SALT_data_RN_20220606/20220606_RN_URG_2reads_9dB.540.1.247.fits
 -- /work/rss/salt/SALT_data_RN_20220606/20220606_RN_URG_2reads_9dB.540.1.248.fits
 -- /work/rss/salt/SALT_data_RN_20220606/20220606_RN_URG_2reads_9dB.540.1.249.fits
 -- /work/rss/salt/SALT_data_RN_20220606/20220606_RN_URG_2reads_9dB.540.1.250.fits
Limiting filelist to 70 frames
(70, 2048, 2048)
Applying non-linearity corrections
No nonlinearity corrections loaded, skipping
No linearized data found, using raw data instead
No dark correction requested, skipping
diff stack: (70, 2048, 2048)
Identifying bad pixels
Cleaning image cube
calculating final image from stack
Writing reduced results to 20220606_RN_URG_2reads_9dB.540.1.reduced.fits
all done!

Caveats and limitations

  • Not yet supported are fowler-reads of any kind, in particular when combined with up the ramp sampling.
  • Watch out when running on large numbers of up-the-ramp samples to avoid running out of memory (RAM). At this time the tool is optimized towards computing time at the expense of memory demand. If in doubt or to begin use the --maxfiles option to limit the number the number of open files and thus the memory footprint.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nirwals-0.0.5.tar.gz (39.7 kB view details)

Uploaded Source

Built Distribution

nirwals-0.0.5-py3-none-any.whl (44.1 kB view details)

Uploaded Python 3

File details

Details for the file nirwals-0.0.5.tar.gz.

File metadata

  • Download URL: nirwals-0.0.5.tar.gz
  • Upload date:
  • Size: 39.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for nirwals-0.0.5.tar.gz
Algorithm Hash digest
SHA256 e9ab3a48012ea97b07ba93aab0719976ca68173451c80430d68d74e45130164f
MD5 375031141d8d39eaf11bf7d211756d8d
BLAKE2b-256 4d1279f7a57e1f34af2cacba3b856df27c7c5f5335267ac5b8101947027fa403

See more details on using hashes here.

File details

Details for the file nirwals-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: nirwals-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 44.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for nirwals-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 2efd7f15901f20aa5236055e0b95535d7515c7c3d721d89a74d4eb51c497eec8
MD5 7806db86c8c11760c2565737d624d984
BLAKE2b-256 be7eca2867785bd6019f1660dee06cde74227b31ef42377920e7f01ca6d533b5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page