pyreduce-astro 0.7a3__tar.gz → 0.7a5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pyreduce_astro-0.7a5/.python-version +1 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/CHANGELOG.md +14 -1
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/CLAUDE.md +3 -3
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/PKG-INFO +4 -6
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/README.md +2 -2
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/examples/aj_example.py +8 -4
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/examples/crires_plus_example.py +14 -20
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/examples/custom_instrument_example.py +6 -2
- pyreduce_astro-0.7a5/examples/harpn_example.py +48 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/examples/harps_example.py +7 -3
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/examples/harps_gridsearch.py +10 -6
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/examples/just_one_swath.py +4 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/examples/jwst_miri_example.py +9 -13
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/examples/jwst_niriss_example.py +9 -16
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/examples/lick_apf_example.py +11 -15
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/examples/mcdonald_example.py +6 -2
- pyreduce_astro-0.7a5/examples/metis_ifu_example.py +52 -0
- pyreduce_astro-0.7a5/examples/metis_lss_example.py +52 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/examples/micado_example.py +6 -2
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/examples/neid_example.py +7 -3
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/examples/nirspec_example.py +6 -2
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/examples/toes_example.py +6 -2
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/examples/uves_callfunc.py +9 -5
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/examples/uves_example.py +7 -3
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/examples/xshooter_example.py +6 -2
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyproject.toml +3 -5
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/__main__.py +42 -11
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/combine_frames.py +25 -25
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/instruments/aj.yaml +1 -1
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/instruments/andes.py +17 -17
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/instruments/andes.yaml +1 -1
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/instruments/common.py +58 -56
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/instruments/crires_plus.py +26 -36
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/instruments/crires_plus.yaml +0 -2
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/instruments/filters.py +1 -1
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/instruments/harpn.py +12 -12
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/instruments/harpn.yaml +2 -2
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/instruments/harps.py +19 -12
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/instruments/harps.yaml +2 -2
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/instruments/instrument_info.py +14 -14
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/instruments/jwst_miri.py +6 -4
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/instruments/jwst_miri.yaml +2 -2
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/instruments/jwst_niriss.py +12 -8
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/instruments/jwst_niriss.yaml +2 -2
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/instruments/lick_apf.py +3 -3
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/instruments/lick_apf.yaml +2 -2
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/instruments/mcdonald.py +5 -5
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/instruments/mcdonald.yaml +3 -3
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/instruments/metis_ifu.py +5 -5
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/instruments/metis_ifu.yaml +3 -3
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/instruments/metis_lss.py +5 -5
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/instruments/metis_lss.yaml +3 -3
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/instruments/micado.py +5 -5
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/instruments/micado.yaml +3 -3
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/instruments/models.py +6 -6
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/instruments/neid.py +12 -12
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/instruments/neid.yaml +2 -2
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/instruments/nirspec.py +8 -8
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/instruments/nirspec.yaml +1 -1
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/instruments/nte.py +6 -6
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/instruments/nte.yaml +1 -1
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/instruments/uves.py +8 -8
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/instruments/uves.yaml +2 -2
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/instruments/xshooter.py +4 -4
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/instruments/xshooter.yaml +3 -3
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/pipeline.py +26 -26
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/reduce.py +34 -34
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/uv.lock +3 -454
- pyreduce_astro-0.7a3/README_METIS.md +0 -130
- pyreduce_astro-0.7a3/examples/harpn_example.py +0 -52
- pyreduce_astro-0.7a3/examples/metis_ifu_example.py +0 -77
- pyreduce_astro-0.7a3/examples/metis_lss_example.py +0 -77
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/.gitattributes +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/.gitignore +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/.pre-commit-config.yaml +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/.pyup.yml +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/.readthedocs.yaml +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/AGENTS.md +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/LICENSE +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/codemeta.json +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/environment.yml +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/hatch_build.py +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/ipy_startup.py +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/plots_for_paper/dimensionality.py +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/plots_for_paper/settings_HARPS.json +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/plots_for_paper/wavecal_plot.py +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyproject.toml.sav +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/__init__.py +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/cli.py +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/clib/__init__.py +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/clib/build_extract.py +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/clib/slit_func_2d_xi_zeta_bd.c +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/clib/slit_func_2d_xi_zeta_bd.h +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/clib/slit_func_bd.c +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/clib/slit_func_bd.h +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/clipnflip.py +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/configuration.py +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/continuum_normalization.py +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/cwrappers.py +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/datasets.py +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/echelle.py +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/estimate_background_scatter.py +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/extract.py +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/extraction_width.py +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/instruments/__init__.py +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/instruments/aj.py +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/instruments/common.yaml +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/make_shear.py +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/masks/mask_crires_plus_det1.fits.gz +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/masks/mask_crires_plus_det2.fits.gz +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/masks/mask_crires_plus_det3.fits.gz +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/masks/mask_ctio_chiron.fits.gz +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/masks/mask_elodie.fits.gz +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/masks/mask_feros3.fits.gz +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/masks/mask_flames_giraffe.fits.gz +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/masks/mask_harps_blue.fits.gz +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/masks/mask_harps_red.fits.gz +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/masks/mask_hds_blue.fits.gz +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/masks/mask_hds_red.fits.gz +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/masks/mask_het_hrs_2x5.fits.gz +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/masks/mask_jwst_miri_lrs_slitless.fits.gz +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/masks/mask_jwst_niriss_gr700xd.fits.gz +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/masks/mask_lick_apf_.fits.gz +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/masks/mask_mcdonald.fits.gz +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/masks/mask_nes.fits.gz +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/masks/mask_nirspec_nirspec.fits.gz +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/masks/mask_sarg.fits.gz +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/masks/mask_sarg_2x2a.fits.gz +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/masks/mask_sarg_2x2b.fits.gz +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/masks/mask_subaru_hds_red.fits.gz +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/masks/mask_uves_blue.fits.gz +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/masks/mask_uves_blue_binned_2_2.fits.gz +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/masks/mask_uves_middle.fits.gz +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/masks/mask_uves_middle_2x2_split.fits.gz +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/masks/mask_uves_middle_binned_2_2.fits.gz +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/masks/mask_uves_red.fits.gz +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/masks/mask_uves_red_2x2.fits.gz +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/masks/mask_uves_red_2x2_split.fits.gz +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/masks/mask_uves_red_binned_2_2.fits.gz +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/masks/mask_xshooter_nir.fits.gz +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/rectify.py +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/settings/settings_AJ.json +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/settings/settings_ANDES.json +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/settings/settings_CRIRES_PLUS.json +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/settings/settings_HARPN.json +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/settings/settings_HARPS.json +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/settings/settings_JWST_MIRI.json +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/settings/settings_JWST_NIRISS.json +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/settings/settings_LICK_APF.json +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/settings/settings_MCDONALD.json +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/settings/settings_METIS_IFU.json +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/settings/settings_METIS_LSS.json +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/settings/settings_MICADO.json +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/settings/settings_NEID.json +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/settings/settings_NIRSPEC.json +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/settings/settings_NTE.json +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/settings/settings_UVES.json +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/settings/settings_XSHOOTER.json +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/settings/settings_pyreduce.json +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/settings/settings_schema.json +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/tools/__init__.py +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/tools/combine.py +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/trace.py +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/util.py +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/wavecal/MICADO_HK_3arcsec_chip5.npz +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/wavecal/atlas/thar.fits +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/wavecal/atlas/thar_list.txt +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/wavecal/atlas/une.fits +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/wavecal/convert.py +0 -0
- /pyreduce_astro-0.7a3/pyreduce/wavecal/crires_plus_J1228_Open_det1.npz → /pyreduce_astro-0.7a5/pyreduce/wavecal/crires_plus_J1228_det1.npz +0 -0
- /pyreduce_astro-0.7a3/pyreduce/wavecal/crires_plus_J1228_Open_det2.npz → /pyreduce_astro-0.7a5/pyreduce/wavecal/crires_plus_J1228_det2.npz +0 -0
- /pyreduce_astro-0.7a3/pyreduce/wavecal/crires_plus_J1228_Open_det3.npz → /pyreduce_astro-0.7a5/pyreduce/wavecal/crires_plus_J1228_det3.npz +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/wavecal/harpn_harpn_2D.npz +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/wavecal/harps_blue_2D.npz +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/wavecal/harps_blue_pol_2D.npz +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/wavecal/harps_red_2D.npz +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/wavecal/harps_red_pol_2D.npz +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/wavecal/mcdonald.npz +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/wavecal/metis_lss_l_2D.npz +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/wavecal/metis_lss_m_2D.npz +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/wavecal/nirspec_K2.npz +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/wavecal/uves_blue_360nm_2D.npz +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/wavecal/uves_blue_390nm_2D.npz +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/wavecal/uves_blue_437nm_2D.npz +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/wavecal/uves_middle_2x2_2D.npz +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/wavecal/uves_middle_565nm_2D.npz +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/wavecal/uves_middle_580nm_2D.npz +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/wavecal/uves_middle_600nm_2D.npz +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/wavecal/uves_middle_665nm_2D.npz +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/wavecal/uves_middle_860nm_2D.npz +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/wavecal/uves_red_580nm_2D.npz +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/wavecal/uves_red_600nm_2D.npz +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/wavecal/uves_red_665nm_2D.npz +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/wavecal/uves_red_760nm_2D.npz +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/wavecal/uves_red_860nm_2D.npz +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/wavecal/xshooter_nir.npz +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/pyreduce/wavelength_calibration.py +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/tools/argon.line +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/tools/bpm_creator.py +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/tools/create_wavelength_guess.py +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/tools/download_files.py +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/tools/neon.lin +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/tools/neon.line +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/tools/pymultispec.py +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/tools/thar.npz +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/tools/wavecal_creator.py +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/tools/wavecal_creator_from_existing.py +0 -0
- {pyreduce_astro-0.7a3 → pyreduce_astro-0.7a5}/tools/xshooter_nir.json +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.14
|
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
3
|
|
|
4
|
+
## [0.7a5] - 2025-12-30
|
|
5
|
+
|
|
6
|
+
### Changed
|
|
7
|
+
- Rename `arm` to `channel` throughout codebase (API, CLI, configs)
|
|
8
|
+
- Remove decker from CRIRES+ channel format (`J1228_det1` instead of `J1228_Open_det1`)
|
|
9
|
+
- Example scripts now use `$REDUCE_DATA` env var instead of hardcoded paths
|
|
10
|
+
|
|
11
|
+
## [0.7a4] - 2025-12-23
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
- `reduce examples --run` flag to download and execute examples directly
|
|
15
|
+
- PEP 723 inline metadata in examples for `uv run` compatibility
|
|
16
|
+
|
|
4
17
|
## [0.7a3] - 2025-12-23
|
|
5
18
|
|
|
6
19
|
### Added
|
|
@@ -35,7 +48,7 @@
|
|
|
35
48
|
- `filter_x` and `filter_type` options for order tracing
|
|
36
49
|
|
|
37
50
|
### Changed
|
|
38
|
-
- Rename `mode` to `
|
|
51
|
+
- Rename `mode` to `channel` terminology throughout
|
|
39
52
|
- Output extension changed from `.ech` to `.fits`
|
|
40
53
|
- Documentation converted from RST to Markdown
|
|
41
54
|
- Trace detection parameters renamed (`opower` -> `degree`, `filter_size` -> `filter_y`)
|
|
@@ -95,7 +95,7 @@ Defines what the instrument IS - hardware properties and header mappings:
|
|
|
95
95
|
# Basic identification
|
|
96
96
|
instrument: HARPS
|
|
97
97
|
telescope: ESO-3.6m
|
|
98
|
-
|
|
98
|
+
channels: [red, blue]
|
|
99
99
|
|
|
100
100
|
# Detector properties
|
|
101
101
|
naxis: [4096, 4096]
|
|
@@ -175,7 +175,7 @@ result = Pipeline.from_instrument(
|
|
|
175
175
|
instrument="UVES",
|
|
176
176
|
target="HD132205",
|
|
177
177
|
night="2010-04-01",
|
|
178
|
-
|
|
178
|
+
channel="middle",
|
|
179
179
|
steps=("bias", "flat", "orders", "science"),
|
|
180
180
|
base_dir="/data",
|
|
181
181
|
plot=1,
|
|
@@ -196,7 +196,7 @@ from pyreduce.pipeline import Pipeline
|
|
|
196
196
|
pipe = Pipeline(
|
|
197
197
|
instrument="UVES",
|
|
198
198
|
output_dir="/output",
|
|
199
|
-
|
|
199
|
+
channel="middle",
|
|
200
200
|
plot=0,
|
|
201
201
|
)
|
|
202
202
|
pipe.bias(bias_files)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pyreduce-astro
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.7a5
|
|
4
4
|
Summary: A data reduction package for echelle spectrographs
|
|
5
5
|
Project-URL: Homepage, https://github.com/ivh/PyReduce
|
|
6
6
|
Project-URL: Documentation, https://pyreduce-astro.readthedocs.io
|
|
@@ -15,12 +15,10 @@ Classifier: Intended Audience :: Science/Research
|
|
|
15
15
|
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
|
|
16
16
|
Classifier: Programming Language :: C
|
|
17
17
|
Classifier: Programming Language :: Python :: 3
|
|
18
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
19
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
20
18
|
Classifier: Programming Language :: Python :: 3.13
|
|
21
19
|
Classifier: Programming Language :: Python :: 3.14
|
|
22
20
|
Classifier: Topic :: Scientific/Engineering :: Astronomy
|
|
23
|
-
Requires-Python: >=3.
|
|
21
|
+
Requires-Python: >=3.13
|
|
24
22
|
Requires-Dist: astropy>=5.3.0
|
|
25
23
|
Requires-Dist: cffi>=1.17.1
|
|
26
24
|
Requires-Dist: click>=8.1.0
|
|
@@ -44,7 +42,7 @@ Description-Content-Type: text/markdown
|
|
|
44
42
|
|
|
45
43
|
[](https://github.com/ivh/PyReduce/actions/workflows/python-publish.yml)
|
|
46
44
|
[](https://pyreduce-astro.readthedocs.io/en/latest/?badge=latest)
|
|
47
|
-
[](https://www.python.org/downloads/)
|
|
48
46
|
|
|
49
47
|
# PyReduce
|
|
50
48
|
|
|
@@ -93,7 +91,7 @@ Pipeline.from_instrument(
|
|
|
93
91
|
instrument="UVES",
|
|
94
92
|
target="HD132205",
|
|
95
93
|
night="2010-04-01",
|
|
96
|
-
|
|
94
|
+
channel="middle",
|
|
97
95
|
).run()
|
|
98
96
|
```
|
|
99
97
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[](https://github.com/ivh/PyReduce/actions/workflows/python-publish.yml)
|
|
2
2
|
[](https://pyreduce-astro.readthedocs.io/en/latest/?badge=latest)
|
|
3
|
-
[](https://www.python.org/downloads/)
|
|
4
4
|
|
|
5
5
|
# PyReduce
|
|
6
6
|
|
|
@@ -49,7 +49,7 @@ Pipeline.from_instrument(
|
|
|
49
49
|
instrument="UVES",
|
|
50
50
|
target="HD132205",
|
|
51
51
|
night="2010-04-01",
|
|
52
|
-
|
|
52
|
+
channel="middle",
|
|
53
53
|
).run()
|
|
54
54
|
```
|
|
55
55
|
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
# /// script
|
|
2
|
+
# requires-python = ">=3.13"
|
|
3
|
+
# dependencies = ["pyreduce-astro>=0.7a5"]
|
|
4
|
+
# ///
|
|
1
5
|
"""
|
|
2
6
|
AJ instrument example: Fiber bundle tracing with direct function calls.
|
|
3
7
|
|
|
@@ -75,16 +79,16 @@ logical_fibers = {
|
|
|
75
79
|
|
|
76
80
|
# --- Load instrument ---
|
|
77
81
|
instrument = load_instrument(instrument_name)
|
|
78
|
-
|
|
79
|
-
print(f"Instrument: {instrument.name},
|
|
82
|
+
channel = instrument.info["channels"][0] # Use first channel
|
|
83
|
+
print(f"Instrument: {instrument.name}, channel: {channel}")
|
|
80
84
|
|
|
81
85
|
# --- Step 1: Load images using instrument class ---
|
|
82
86
|
print(f"\nLoading {file_even}...")
|
|
83
|
-
img_even, head_even = instrument.load_fits(file_even,
|
|
87
|
+
img_even, head_even = instrument.load_fits(file_even, channel=channel, extension=0)
|
|
84
88
|
print(f" Shape: {img_even.shape}, dtype: {img_even.dtype}")
|
|
85
89
|
|
|
86
90
|
print(f"Loading {file_odd}...")
|
|
87
|
-
img_odd, head_odd = instrument.load_fits(file_odd,
|
|
91
|
+
img_odd, head_odd = instrument.load_fits(file_odd, channel=channel, extension=0)
|
|
88
92
|
|
|
89
93
|
# --- Step 2: Trace each flat independently ---
|
|
90
94
|
print("\nTracing even-illuminated fibers...")
|
|
@@ -1,16 +1,22 @@
|
|
|
1
|
+
# /// script
|
|
2
|
+
# requires-python = ">=3.13"
|
|
3
|
+
# dependencies = ["pyreduce-astro>=0.7a5"]
|
|
4
|
+
# ///
|
|
1
5
|
"""
|
|
2
6
|
Simple usage example for PyReduce
|
|
3
7
|
Loads a CRIRES+ dataset, and runs the extraction
|
|
4
8
|
"""
|
|
5
9
|
|
|
6
|
-
|
|
10
|
+
import os
|
|
11
|
+
|
|
12
|
+
from pyreduce import datasets
|
|
7
13
|
from pyreduce.pipeline import Pipeline
|
|
8
14
|
|
|
9
15
|
# define parameters
|
|
10
|
-
instrument = "
|
|
16
|
+
instrument = "CRIRES_PLUS"
|
|
11
17
|
target = ""
|
|
12
18
|
night = ""
|
|
13
|
-
|
|
19
|
+
channel = "J1228_det1"
|
|
14
20
|
steps = (
|
|
15
21
|
# "bias",
|
|
16
22
|
# "flat",
|
|
@@ -28,32 +34,20 @@ steps = (
|
|
|
28
34
|
# "finalize",
|
|
29
35
|
)
|
|
30
36
|
|
|
31
|
-
#
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
# load dataset (and save the location)
|
|
36
|
-
base_dir = "/DATA/datasets/CRIRES"
|
|
37
|
-
input_dir = base_dir
|
|
38
|
-
output_dir = base_dir + "/reduced/"
|
|
39
|
-
|
|
40
|
-
# Path to the configuration parameters, that are to be used for this reduction
|
|
41
|
-
|
|
42
|
-
config = get_configuration_for_instrument(
|
|
43
|
-
instrument,
|
|
44
|
-
plot=1,
|
|
45
|
-
)
|
|
37
|
+
# Data location: uses $REDUCE_DATA or ~/REDUCE_DATA
|
|
38
|
+
base_dir = os.path.join(datasets.get_data_dir(), "CRIRES")
|
|
39
|
+
input_dir = ""
|
|
40
|
+
output_dir = "reduced"
|
|
46
41
|
|
|
47
42
|
Pipeline.from_instrument(
|
|
48
43
|
instrument,
|
|
49
44
|
target,
|
|
50
45
|
night=night,
|
|
51
|
-
|
|
46
|
+
channel=channel,
|
|
52
47
|
steps=steps,
|
|
53
48
|
base_dir=base_dir,
|
|
54
49
|
input_dir=input_dir,
|
|
55
50
|
output_dir=output_dir,
|
|
56
|
-
configuration=config,
|
|
57
51
|
allow_calibration_only=True,
|
|
58
52
|
# order_range=(0, 4),
|
|
59
53
|
).run()
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
# /// script
|
|
2
|
+
# requires-python = ">=3.13"
|
|
3
|
+
# dependencies = ["pyreduce-astro>=0.7a5"]
|
|
4
|
+
# ///
|
|
1
5
|
"""
|
|
2
6
|
Simple usage example for PyReduce
|
|
3
7
|
Loads a sample UVES dataset, and runs the full extraction
|
|
@@ -45,7 +49,7 @@ start_logging(log_file)
|
|
|
45
49
|
# Define other parameter for PyReduce
|
|
46
50
|
target = ""
|
|
47
51
|
night = "2019-07-21"
|
|
48
|
-
|
|
52
|
+
channel = ""
|
|
49
53
|
steps = (
|
|
50
54
|
"bias",
|
|
51
55
|
"flat",
|
|
@@ -66,7 +70,7 @@ pipe = Pipeline.from_files(
|
|
|
66
70
|
output_dir=output_dir,
|
|
67
71
|
target=target,
|
|
68
72
|
instrument=instrument,
|
|
69
|
-
|
|
73
|
+
channel=channel,
|
|
70
74
|
night=night,
|
|
71
75
|
config=config,
|
|
72
76
|
# order_range=order_range,
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# /// script
|
|
2
|
+
# requires-python = ">=3.13"
|
|
3
|
+
# dependencies = ["pyreduce-astro>=0.7a5"]
|
|
4
|
+
# ///
|
|
5
|
+
"""
|
|
6
|
+
Simple usage example for PyReduce
|
|
7
|
+
Loads a HARPS-N dataset, and runs the extraction
|
|
8
|
+
"""
|
|
9
|
+
|
|
10
|
+
import os
|
|
11
|
+
|
|
12
|
+
from pyreduce import datasets
|
|
13
|
+
from pyreduce.pipeline import Pipeline
|
|
14
|
+
|
|
15
|
+
# define parameters
|
|
16
|
+
instrument = "HARPN"
|
|
17
|
+
target = ""
|
|
18
|
+
night = ""
|
|
19
|
+
channel = "HARPN"
|
|
20
|
+
steps = (
|
|
21
|
+
# "bias",
|
|
22
|
+
# "flat",
|
|
23
|
+
# "orders",
|
|
24
|
+
# "norm_flat",
|
|
25
|
+
# "wavecal_master",
|
|
26
|
+
"wavecal",
|
|
27
|
+
# "science",
|
|
28
|
+
# "continuum",
|
|
29
|
+
# "finalize",
|
|
30
|
+
)
|
|
31
|
+
|
|
32
|
+
# Data location: uses $REDUCE_DATA or ~/REDUCE_DATA
|
|
33
|
+
base_dir = os.path.join(datasets.get_data_dir(), "HARPN")
|
|
34
|
+
input_dir = "raw"
|
|
35
|
+
output_dir = "reduced/{channel}"
|
|
36
|
+
|
|
37
|
+
Pipeline.from_instrument(
|
|
38
|
+
instrument,
|
|
39
|
+
target,
|
|
40
|
+
night=night,
|
|
41
|
+
channel=channel,
|
|
42
|
+
steps=steps,
|
|
43
|
+
base_dir=base_dir,
|
|
44
|
+
input_dir=input_dir,
|
|
45
|
+
output_dir=output_dir,
|
|
46
|
+
# order_range=(0, 25),
|
|
47
|
+
plot=1,
|
|
48
|
+
).run()
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
# /// script
|
|
2
|
+
# requires-python = ">=3.13"
|
|
3
|
+
# dependencies = ["pyreduce-astro>=0.7a5"]
|
|
4
|
+
# ///
|
|
1
5
|
"""
|
|
2
6
|
Simple usage example for PyReduce
|
|
3
7
|
Loads a sample HARPS dataset, and runs the full extraction
|
|
@@ -10,7 +14,7 @@ from pyreduce.pipeline import Pipeline
|
|
|
10
14
|
instrument = "HARPS"
|
|
11
15
|
target = "HD109200"
|
|
12
16
|
night = None
|
|
13
|
-
|
|
17
|
+
channel = "red"
|
|
14
18
|
steps = (
|
|
15
19
|
"bias",
|
|
16
20
|
"flat",
|
|
@@ -32,13 +36,13 @@ steps = (
|
|
|
32
36
|
# load dataset (and save the location)
|
|
33
37
|
base_dir = datasets.HARPS() # Uses $REDUCE_DATA or ~/REDUCE_DATA
|
|
34
38
|
input_dir = "raw"
|
|
35
|
-
output_dir = "reduced_{
|
|
39
|
+
output_dir = "reduced_{channel}"
|
|
36
40
|
|
|
37
41
|
Pipeline.from_instrument(
|
|
38
42
|
instrument,
|
|
39
43
|
target,
|
|
40
44
|
night=night,
|
|
41
|
-
|
|
45
|
+
channel=channel,
|
|
42
46
|
steps=steps,
|
|
43
47
|
base_dir=base_dir,
|
|
44
48
|
input_dir=input_dir,
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
# /// script
|
|
2
|
+
# requires-python = ">=3.13"
|
|
3
|
+
# dependencies = ["pyreduce-astro>=0.7a5"]
|
|
4
|
+
# ///
|
|
1
5
|
import os.path
|
|
2
6
|
|
|
3
7
|
import matplotlib.pyplot as plt
|
|
@@ -9,9 +13,9 @@ from pyreduce.wavelength_calibration import (
|
|
|
9
13
|
)
|
|
10
14
|
|
|
11
15
|
|
|
12
|
-
def func_wavecal(deg, thar, instrument,
|
|
16
|
+
def func_wavecal(deg, thar, instrument, channel, **kwargs):
|
|
13
17
|
reference = instruments.instrument_info.get_wavecal_filename(
|
|
14
|
-
None, instrument,
|
|
18
|
+
None, instrument, channel, polarimetry=False
|
|
15
19
|
)
|
|
16
20
|
reference = np.load(reference, allow_pickle=True)
|
|
17
21
|
linelist = reference["cs_lines"]
|
|
@@ -36,7 +40,7 @@ def func_freq_comb(deg, comb, wave, **kwargs):
|
|
|
36
40
|
instrument = "HARPS"
|
|
37
41
|
target = "HD109200"
|
|
38
42
|
night = "2015-04-09"
|
|
39
|
-
|
|
43
|
+
channel = "red"
|
|
40
44
|
|
|
41
45
|
# some basic settings
|
|
42
46
|
# Expected Folder Structure: base_dir/datasets/HD132205/*.fits.gz
|
|
@@ -45,7 +49,7 @@ arm = "red"
|
|
|
45
49
|
# load dataset (and save the location)
|
|
46
50
|
base_dir = datasets.HARPS() # Uses $REDUCE_DATA or ~/REDUCE_DATA
|
|
47
51
|
input_dir = "raw"
|
|
48
|
-
output_dir = f"reduced_{
|
|
52
|
+
output_dir = f"reduced_{channel}"
|
|
49
53
|
|
|
50
54
|
config = configuration.get_configuration_for_instrument(instrument)
|
|
51
55
|
|
|
@@ -78,10 +82,10 @@ for i in np.ndindex(shape):
|
|
|
78
82
|
grid[i] += 1
|
|
79
83
|
|
|
80
84
|
# aic = func_freq_comb((3, 6), comb, wave, **kwargs_comb)
|
|
81
|
-
# aic = func_wavecal((3, 6), thar, instrument,
|
|
85
|
+
# aic = func_wavecal((3, 6), thar, instrument, channel, **kwargs)
|
|
82
86
|
|
|
83
87
|
# matrix = util.gridsearch(
|
|
84
|
-
# func_wavecal, grid, args=(thar, instrument,
|
|
88
|
+
# func_wavecal, grid, args=(thar, instrument, channel), kwargs=kwargs
|
|
85
89
|
# )
|
|
86
90
|
# np.save(f"matrix_{ndim}D.npy", matrix)
|
|
87
91
|
# matrix = np.load(f"matrix_{ndim}D.npy")
|
|
@@ -1,16 +1,20 @@
|
|
|
1
|
+
# /// script
|
|
2
|
+
# requires-python = ">=3.13"
|
|
3
|
+
# dependencies = ["pyreduce-astro>=0.7a5"]
|
|
4
|
+
# ///
|
|
1
5
|
"""
|
|
2
6
|
Simple usage example for PyReduce
|
|
3
7
|
Loads a JWST MIRI dataset, and runs the extraction
|
|
4
8
|
"""
|
|
5
9
|
|
|
6
|
-
from pyreduce
|
|
10
|
+
from pyreduce import datasets
|
|
7
11
|
from pyreduce.pipeline import Pipeline
|
|
8
12
|
|
|
9
13
|
# define parameters
|
|
10
14
|
instrument = "JWST_MIRI"
|
|
11
15
|
target = None
|
|
12
16
|
night = None
|
|
13
|
-
|
|
17
|
+
channel = "LRS_SLITLESS"
|
|
14
18
|
steps = (
|
|
15
19
|
"bias",
|
|
16
20
|
"flat",
|
|
@@ -23,28 +27,20 @@ steps = (
|
|
|
23
27
|
# "finalize",
|
|
24
28
|
)
|
|
25
29
|
|
|
26
|
-
#
|
|
27
|
-
|
|
28
|
-
# Feel free to change this to your own preference, values in curly brackets will be replaced with the actual values {}
|
|
29
|
-
|
|
30
|
-
# load dataset (and save the location)
|
|
31
|
-
base_dir = "/DATA/JWST/MIRI/MIRIsim/"
|
|
30
|
+
# Data location: uses $REDUCE_DATA or ~/REDUCE_DATA
|
|
31
|
+
base_dir = datasets.JWST_MIRI()
|
|
32
32
|
input_dir = "raw"
|
|
33
33
|
output_dir = "reduced"
|
|
34
34
|
|
|
35
|
-
# Path to the configuration parameters, that are to be used for this reduction
|
|
36
|
-
config = get_configuration_for_instrument(instrument)
|
|
37
|
-
|
|
38
35
|
Pipeline.from_instrument(
|
|
39
36
|
instrument,
|
|
40
37
|
target,
|
|
41
38
|
night=night,
|
|
42
|
-
|
|
39
|
+
channel=channel,
|
|
43
40
|
steps=steps,
|
|
44
41
|
base_dir=base_dir,
|
|
45
42
|
input_dir=input_dir,
|
|
46
43
|
output_dir=output_dir,
|
|
47
|
-
configuration=config,
|
|
48
44
|
# order_range=(0, 25),
|
|
49
45
|
plot=1,
|
|
50
46
|
).run()
|
|
@@ -1,19 +1,20 @@
|
|
|
1
|
+
# /// script
|
|
2
|
+
# requires-python = ">=3.13"
|
|
3
|
+
# dependencies = ["pyreduce-astro>=0.7a5"]
|
|
4
|
+
# ///
|
|
1
5
|
"""
|
|
2
6
|
Simple usage example for PyReduce
|
|
3
7
|
Loads a sample JWST NIRISS dataset, and runs the extraction
|
|
4
8
|
"""
|
|
5
9
|
|
|
6
|
-
import os.path
|
|
7
|
-
|
|
8
10
|
from pyreduce import datasets
|
|
9
|
-
from pyreduce.configuration import get_configuration_for_instrument
|
|
10
11
|
from pyreduce.pipeline import Pipeline
|
|
11
12
|
|
|
12
13
|
# define parameters
|
|
13
14
|
instrument = "JWST_NIRISS"
|
|
14
15
|
target = None
|
|
15
16
|
night = None
|
|
16
|
-
|
|
17
|
+
channel = "GR700XD"
|
|
17
18
|
steps = (
|
|
18
19
|
"bias",
|
|
19
20
|
"flat",
|
|
@@ -26,28 +27,20 @@ steps = (
|
|
|
26
27
|
"finalize",
|
|
27
28
|
)
|
|
28
29
|
|
|
29
|
-
#
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
# load dataset (and save the location)
|
|
34
|
-
base_dir = datasets.JWST_NIRISS(os.path.expanduser("~") + "/PyReduce/DATA")
|
|
35
|
-
input_dir = "awesimsoss"
|
|
30
|
+
# Data location: uses $REDUCE_DATA or ~/REDUCE_DATA
|
|
31
|
+
base_dir = datasets.JWST_NIRISS()
|
|
32
|
+
input_dir = "raw"
|
|
36
33
|
output_dir = "reduced"
|
|
37
34
|
|
|
38
|
-
# Path to the configuration parameters, that are to be used for this reduction
|
|
39
|
-
config = get_configuration_for_instrument(instrument)
|
|
40
|
-
|
|
41
35
|
Pipeline.from_instrument(
|
|
42
36
|
instrument,
|
|
43
37
|
target,
|
|
44
38
|
night=night,
|
|
45
|
-
|
|
39
|
+
channel=channel,
|
|
46
40
|
steps=steps,
|
|
47
41
|
base_dir=base_dir,
|
|
48
42
|
input_dir=input_dir,
|
|
49
43
|
output_dir=output_dir,
|
|
50
|
-
configuration=config,
|
|
51
44
|
# order_range=(0, 25),
|
|
52
45
|
plot=0,
|
|
53
46
|
).run()
|
|
@@ -1,16 +1,20 @@
|
|
|
1
|
+
# /// script
|
|
2
|
+
# requires-python = ">=3.13"
|
|
3
|
+
# dependencies = ["pyreduce-astro>=0.7a5"]
|
|
4
|
+
# ///
|
|
1
5
|
"""
|
|
2
6
|
Simple usage example for PyReduce
|
|
3
7
|
Loads a Lick APF dataset, and runs the extraction
|
|
4
8
|
"""
|
|
5
9
|
|
|
6
|
-
from pyreduce
|
|
10
|
+
from pyreduce import datasets
|
|
7
11
|
from pyreduce.pipeline import Pipeline
|
|
8
12
|
|
|
9
13
|
# define parameters
|
|
10
|
-
instrument = "
|
|
14
|
+
instrument = "LICK_APF"
|
|
11
15
|
target = "KIC05005618"
|
|
12
16
|
night = None
|
|
13
|
-
|
|
17
|
+
channel = ""
|
|
14
18
|
steps = (
|
|
15
19
|
"bias",
|
|
16
20
|
# "flat",
|
|
@@ -23,28 +27,20 @@ steps = (
|
|
|
23
27
|
# "finalize",
|
|
24
28
|
)
|
|
25
29
|
|
|
26
|
-
#
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
# load dataset (and save the location)
|
|
31
|
-
base_dir = "/DATA/Lick/APF/"
|
|
32
|
-
input_dir = "Raw"
|
|
30
|
+
# Data location: uses $REDUCE_DATA or ~/REDUCE_DATA
|
|
31
|
+
base_dir = datasets.LICK_APF()
|
|
32
|
+
input_dir = "raw"
|
|
33
33
|
output_dir = "reduced"
|
|
34
34
|
|
|
35
|
-
# Path to the configuration parameters, that are to be used for this reduction
|
|
36
|
-
config = get_configuration_for_instrument(instrument)
|
|
37
|
-
|
|
38
35
|
Pipeline.from_instrument(
|
|
39
36
|
instrument,
|
|
40
37
|
target,
|
|
41
38
|
night=night,
|
|
42
|
-
|
|
39
|
+
channel=channel,
|
|
43
40
|
steps=steps,
|
|
44
41
|
base_dir=base_dir,
|
|
45
42
|
input_dir=input_dir,
|
|
46
43
|
output_dir=output_dir,
|
|
47
|
-
configuration=config,
|
|
48
44
|
# order_range=(0, 25),
|
|
49
45
|
plot=0,
|
|
50
46
|
).run()
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
# /// script
|
|
2
|
+
# requires-python = ">=3.13"
|
|
3
|
+
# dependencies = ["pyreduce-astro>=0.7a5"]
|
|
4
|
+
# ///
|
|
1
5
|
"""
|
|
2
6
|
Simple usage example for PyReduce
|
|
3
7
|
Loads a McDonald Observatory dataset, and runs the extraction
|
|
@@ -11,7 +15,7 @@ from pyreduce.pipeline import Pipeline
|
|
|
11
15
|
instrument = "McDonald"
|
|
12
16
|
target = "Vega"
|
|
13
17
|
night = None
|
|
14
|
-
|
|
18
|
+
channel = "CS23"
|
|
15
19
|
steps = (
|
|
16
20
|
# "bias",
|
|
17
21
|
# "flat",
|
|
@@ -42,7 +46,7 @@ Pipeline.from_instrument(
|
|
|
42
46
|
instrument,
|
|
43
47
|
target,
|
|
44
48
|
night=night,
|
|
45
|
-
|
|
49
|
+
channel=channel,
|
|
46
50
|
steps=steps,
|
|
47
51
|
base_dir=base_dir,
|
|
48
52
|
input_dir=input_dir,
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# /// script
|
|
2
|
+
# requires-python = ">=3.13"
|
|
3
|
+
# dependencies = ["pyreduce-astro>=0.7a5"]
|
|
4
|
+
# ///
|
|
5
|
+
"""
|
|
6
|
+
Simple usage example for PyReduce
|
|
7
|
+
Loads a simulated METIS dataset, and runs the full extraction
|
|
8
|
+
"""
|
|
9
|
+
|
|
10
|
+
import os
|
|
11
|
+
|
|
12
|
+
from pyreduce import datasets
|
|
13
|
+
from pyreduce.pipeline import Pipeline
|
|
14
|
+
|
|
15
|
+
# define parameters
|
|
16
|
+
instrument = "METIS_IFU"
|
|
17
|
+
target = ""
|
|
18
|
+
night = ""
|
|
19
|
+
channel = "IFU_NOMINAL"
|
|
20
|
+
steps = (
|
|
21
|
+
# "bias",
|
|
22
|
+
# "flat",
|
|
23
|
+
"orders",
|
|
24
|
+
"curvature",
|
|
25
|
+
# "scatter",
|
|
26
|
+
# "norm_flat",
|
|
27
|
+
# "wavecal_master",
|
|
28
|
+
# "wavecal_init",
|
|
29
|
+
# "wavecal",
|
|
30
|
+
# "rectify",
|
|
31
|
+
# "science",
|
|
32
|
+
# "continuum",
|
|
33
|
+
# "finalize",
|
|
34
|
+
)
|
|
35
|
+
|
|
36
|
+
# Data location: uses $REDUCE_DATA or ~/REDUCE_DATA
|
|
37
|
+
base_dir = os.path.join(datasets.get_data_dir(), "METIS")
|
|
38
|
+
input_dir = "raw"
|
|
39
|
+
output_dir = "reduced"
|
|
40
|
+
|
|
41
|
+
Pipeline.from_instrument(
|
|
42
|
+
instrument,
|
|
43
|
+
target,
|
|
44
|
+
night=night,
|
|
45
|
+
channel=channel,
|
|
46
|
+
steps=steps,
|
|
47
|
+
base_dir=base_dir,
|
|
48
|
+
input_dir=input_dir,
|
|
49
|
+
output_dir=output_dir,
|
|
50
|
+
# order_range=(16, 17),
|
|
51
|
+
plot=1,
|
|
52
|
+
).run()
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# /// script
|
|
2
|
+
# requires-python = ">=3.13"
|
|
3
|
+
# dependencies = ["pyreduce-astro>=0.7a5"]
|
|
4
|
+
# ///
|
|
5
|
+
"""
|
|
6
|
+
Simple usage example for PyReduce
|
|
7
|
+
Loads a simulated METIS dataset, and runs the full extraction
|
|
8
|
+
"""
|
|
9
|
+
|
|
10
|
+
import os
|
|
11
|
+
|
|
12
|
+
from pyreduce import datasets
|
|
13
|
+
from pyreduce.pipeline import Pipeline
|
|
14
|
+
|
|
15
|
+
# define parameters
|
|
16
|
+
instrument = "METIS_LSS"
|
|
17
|
+
target = ""
|
|
18
|
+
night = ""
|
|
19
|
+
channel = "LSS_M"
|
|
20
|
+
steps = (
|
|
21
|
+
# "bias",
|
|
22
|
+
"flat",
|
|
23
|
+
"orders",
|
|
24
|
+
"curvature",
|
|
25
|
+
# "scatter",
|
|
26
|
+
# "norm_flat",
|
|
27
|
+
"wavecal_master",
|
|
28
|
+
# "wavecal_init",
|
|
29
|
+
"wavecal",
|
|
30
|
+
# "rectify",
|
|
31
|
+
# "science",
|
|
32
|
+
# "continuum",
|
|
33
|
+
# "finalize",
|
|
34
|
+
)
|
|
35
|
+
|
|
36
|
+
# Data location: uses $REDUCE_DATA or ~/REDUCE_DATA
|
|
37
|
+
base_dir = os.path.join(datasets.get_data_dir(), "METIS")
|
|
38
|
+
input_dir = "raw"
|
|
39
|
+
output_dir = "reduced"
|
|
40
|
+
|
|
41
|
+
Pipeline.from_instrument(
|
|
42
|
+
instrument,
|
|
43
|
+
target,
|
|
44
|
+
night=night,
|
|
45
|
+
channel=channel,
|
|
46
|
+
steps=steps,
|
|
47
|
+
base_dir=base_dir,
|
|
48
|
+
input_dir=input_dir,
|
|
49
|
+
output_dir=output_dir,
|
|
50
|
+
# order_range=(16, 17),
|
|
51
|
+
plot=1,
|
|
52
|
+
).run()
|