pyreduce-astro 0.7a4__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.
Files changed (208) hide show
  1. pyreduce_astro-0.7a5/.python-version +1 -0
  2. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/CHANGELOG.md +8 -1
  3. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/CLAUDE.md +3 -3
  4. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/PKG-INFO +4 -6
  5. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/README.md +2 -2
  6. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/examples/aj_example.py +5 -5
  7. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/examples/crires_plus_example.py +11 -21
  8. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/examples/custom_instrument_example.py +3 -3
  9. pyreduce_astro-0.7a5/examples/harpn_example.py +48 -0
  10. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/examples/harps_example.py +4 -4
  11. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/examples/harps_gridsearch.py +7 -7
  12. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/examples/just_one_swath.py +1 -1
  13. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/examples/jwst_miri_example.py +6 -14
  14. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/examples/jwst_niriss_example.py +6 -17
  15. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/examples/lick_apf_example.py +8 -16
  16. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/examples/mcdonald_example.py +3 -3
  17. pyreduce_astro-0.7a5/examples/metis_ifu_example.py +52 -0
  18. pyreduce_astro-0.7a5/examples/metis_lss_example.py +52 -0
  19. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/examples/micado_example.py +3 -3
  20. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/examples/neid_example.py +4 -4
  21. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/examples/nirspec_example.py +3 -3
  22. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/examples/toes_example.py +3 -3
  23. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/examples/uves_callfunc.py +6 -6
  24. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/examples/uves_example.py +4 -4
  25. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/examples/xshooter_example.py +3 -3
  26. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyproject.toml +3 -5
  27. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/__main__.py +6 -6
  28. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/combine_frames.py +25 -25
  29. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/instruments/aj.yaml +1 -1
  30. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/instruments/andes.py +17 -17
  31. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/instruments/andes.yaml +1 -1
  32. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/instruments/common.py +58 -56
  33. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/instruments/crires_plus.py +26 -36
  34. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/instruments/crires_plus.yaml +0 -2
  35. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/instruments/filters.py +1 -1
  36. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/instruments/harpn.py +12 -12
  37. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/instruments/harpn.yaml +2 -2
  38. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/instruments/harps.py +19 -12
  39. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/instruments/harps.yaml +2 -2
  40. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/instruments/instrument_info.py +14 -14
  41. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/instruments/jwst_miri.py +6 -4
  42. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/instruments/jwst_miri.yaml +2 -2
  43. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/instruments/jwst_niriss.py +12 -8
  44. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/instruments/jwst_niriss.yaml +2 -2
  45. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/instruments/lick_apf.py +3 -3
  46. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/instruments/lick_apf.yaml +2 -2
  47. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/instruments/mcdonald.py +5 -5
  48. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/instruments/mcdonald.yaml +3 -3
  49. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/instruments/metis_ifu.py +5 -5
  50. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/instruments/metis_ifu.yaml +3 -3
  51. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/instruments/metis_lss.py +5 -5
  52. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/instruments/metis_lss.yaml +3 -3
  53. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/instruments/micado.py +5 -5
  54. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/instruments/micado.yaml +3 -3
  55. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/instruments/models.py +6 -6
  56. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/instruments/neid.py +12 -12
  57. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/instruments/neid.yaml +2 -2
  58. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/instruments/nirspec.py +8 -8
  59. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/instruments/nirspec.yaml +1 -1
  60. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/instruments/nte.py +6 -6
  61. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/instruments/nte.yaml +1 -1
  62. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/instruments/uves.py +8 -8
  63. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/instruments/uves.yaml +2 -2
  64. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/instruments/xshooter.py +4 -4
  65. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/instruments/xshooter.yaml +3 -3
  66. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/pipeline.py +26 -26
  67. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/reduce.py +34 -34
  68. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/uv.lock +2 -453
  69. pyreduce_astro-0.7a4/README_METIS.md +0 -130
  70. pyreduce_astro-0.7a4/examples/harpn_example.py +0 -56
  71. pyreduce_astro-0.7a4/examples/metis_ifu_example.py +0 -81
  72. pyreduce_astro-0.7a4/examples/metis_lss_example.py +0 -81
  73. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/.gitattributes +0 -0
  74. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/.gitignore +0 -0
  75. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/.pre-commit-config.yaml +0 -0
  76. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/.pyup.yml +0 -0
  77. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/.readthedocs.yaml +0 -0
  78. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/AGENTS.md +0 -0
  79. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/LICENSE +0 -0
  80. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/codemeta.json +0 -0
  81. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/environment.yml +0 -0
  82. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/hatch_build.py +0 -0
  83. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/ipy_startup.py +0 -0
  84. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/plots_for_paper/dimensionality.py +0 -0
  85. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/plots_for_paper/settings_HARPS.json +0 -0
  86. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/plots_for_paper/wavecal_plot.py +0 -0
  87. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyproject.toml.sav +0 -0
  88. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/__init__.py +0 -0
  89. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/cli.py +0 -0
  90. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/clib/__init__.py +0 -0
  91. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/clib/build_extract.py +0 -0
  92. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/clib/slit_func_2d_xi_zeta_bd.c +0 -0
  93. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/clib/slit_func_2d_xi_zeta_bd.h +0 -0
  94. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/clib/slit_func_bd.c +0 -0
  95. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/clib/slit_func_bd.h +0 -0
  96. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/clipnflip.py +0 -0
  97. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/configuration.py +0 -0
  98. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/continuum_normalization.py +0 -0
  99. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/cwrappers.py +0 -0
  100. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/datasets.py +0 -0
  101. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/echelle.py +0 -0
  102. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/estimate_background_scatter.py +0 -0
  103. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/extract.py +0 -0
  104. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/extraction_width.py +0 -0
  105. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/instruments/__init__.py +0 -0
  106. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/instruments/aj.py +0 -0
  107. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/instruments/common.yaml +0 -0
  108. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/make_shear.py +0 -0
  109. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/masks/mask_crires_plus_det1.fits.gz +0 -0
  110. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/masks/mask_crires_plus_det2.fits.gz +0 -0
  111. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/masks/mask_crires_plus_det3.fits.gz +0 -0
  112. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/masks/mask_ctio_chiron.fits.gz +0 -0
  113. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/masks/mask_elodie.fits.gz +0 -0
  114. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/masks/mask_feros3.fits.gz +0 -0
  115. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/masks/mask_flames_giraffe.fits.gz +0 -0
  116. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/masks/mask_harps_blue.fits.gz +0 -0
  117. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/masks/mask_harps_red.fits.gz +0 -0
  118. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/masks/mask_hds_blue.fits.gz +0 -0
  119. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/masks/mask_hds_red.fits.gz +0 -0
  120. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/masks/mask_het_hrs_2x5.fits.gz +0 -0
  121. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/masks/mask_jwst_miri_lrs_slitless.fits.gz +0 -0
  122. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/masks/mask_jwst_niriss_gr700xd.fits.gz +0 -0
  123. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/masks/mask_lick_apf_.fits.gz +0 -0
  124. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/masks/mask_mcdonald.fits.gz +0 -0
  125. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/masks/mask_nes.fits.gz +0 -0
  126. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/masks/mask_nirspec_nirspec.fits.gz +0 -0
  127. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/masks/mask_sarg.fits.gz +0 -0
  128. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/masks/mask_sarg_2x2a.fits.gz +0 -0
  129. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/masks/mask_sarg_2x2b.fits.gz +0 -0
  130. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/masks/mask_subaru_hds_red.fits.gz +0 -0
  131. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/masks/mask_uves_blue.fits.gz +0 -0
  132. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/masks/mask_uves_blue_binned_2_2.fits.gz +0 -0
  133. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/masks/mask_uves_middle.fits.gz +0 -0
  134. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/masks/mask_uves_middle_2x2_split.fits.gz +0 -0
  135. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/masks/mask_uves_middle_binned_2_2.fits.gz +0 -0
  136. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/masks/mask_uves_red.fits.gz +0 -0
  137. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/masks/mask_uves_red_2x2.fits.gz +0 -0
  138. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/masks/mask_uves_red_2x2_split.fits.gz +0 -0
  139. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/masks/mask_uves_red_binned_2_2.fits.gz +0 -0
  140. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/masks/mask_xshooter_nir.fits.gz +0 -0
  141. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/rectify.py +0 -0
  142. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/settings/settings_AJ.json +0 -0
  143. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/settings/settings_ANDES.json +0 -0
  144. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/settings/settings_CRIRES_PLUS.json +0 -0
  145. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/settings/settings_HARPN.json +0 -0
  146. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/settings/settings_HARPS.json +0 -0
  147. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/settings/settings_JWST_MIRI.json +0 -0
  148. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/settings/settings_JWST_NIRISS.json +0 -0
  149. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/settings/settings_LICK_APF.json +0 -0
  150. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/settings/settings_MCDONALD.json +0 -0
  151. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/settings/settings_METIS_IFU.json +0 -0
  152. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/settings/settings_METIS_LSS.json +0 -0
  153. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/settings/settings_MICADO.json +0 -0
  154. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/settings/settings_NEID.json +0 -0
  155. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/settings/settings_NIRSPEC.json +0 -0
  156. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/settings/settings_NTE.json +0 -0
  157. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/settings/settings_UVES.json +0 -0
  158. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/settings/settings_XSHOOTER.json +0 -0
  159. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/settings/settings_pyreduce.json +0 -0
  160. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/settings/settings_schema.json +0 -0
  161. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/tools/__init__.py +0 -0
  162. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/tools/combine.py +0 -0
  163. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/trace.py +0 -0
  164. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/util.py +0 -0
  165. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/wavecal/MICADO_HK_3arcsec_chip5.npz +0 -0
  166. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/wavecal/atlas/thar.fits +0 -0
  167. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/wavecal/atlas/thar_list.txt +0 -0
  168. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/wavecal/atlas/une.fits +0 -0
  169. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/wavecal/convert.py +0 -0
  170. /pyreduce_astro-0.7a4/pyreduce/wavecal/crires_plus_J1228_Open_det1.npz → /pyreduce_astro-0.7a5/pyreduce/wavecal/crires_plus_J1228_det1.npz +0 -0
  171. /pyreduce_astro-0.7a4/pyreduce/wavecal/crires_plus_J1228_Open_det2.npz → /pyreduce_astro-0.7a5/pyreduce/wavecal/crires_plus_J1228_det2.npz +0 -0
  172. /pyreduce_astro-0.7a4/pyreduce/wavecal/crires_plus_J1228_Open_det3.npz → /pyreduce_astro-0.7a5/pyreduce/wavecal/crires_plus_J1228_det3.npz +0 -0
  173. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/wavecal/harpn_harpn_2D.npz +0 -0
  174. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/wavecal/harps_blue_2D.npz +0 -0
  175. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/wavecal/harps_blue_pol_2D.npz +0 -0
  176. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/wavecal/harps_red_2D.npz +0 -0
  177. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/wavecal/harps_red_pol_2D.npz +0 -0
  178. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/wavecal/mcdonald.npz +0 -0
  179. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/wavecal/metis_lss_l_2D.npz +0 -0
  180. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/wavecal/metis_lss_m_2D.npz +0 -0
  181. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/wavecal/nirspec_K2.npz +0 -0
  182. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/wavecal/uves_blue_360nm_2D.npz +0 -0
  183. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/wavecal/uves_blue_390nm_2D.npz +0 -0
  184. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/wavecal/uves_blue_437nm_2D.npz +0 -0
  185. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/wavecal/uves_middle_2x2_2D.npz +0 -0
  186. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/wavecal/uves_middle_565nm_2D.npz +0 -0
  187. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/wavecal/uves_middle_580nm_2D.npz +0 -0
  188. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/wavecal/uves_middle_600nm_2D.npz +0 -0
  189. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/wavecal/uves_middle_665nm_2D.npz +0 -0
  190. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/wavecal/uves_middle_860nm_2D.npz +0 -0
  191. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/wavecal/uves_red_580nm_2D.npz +0 -0
  192. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/wavecal/uves_red_600nm_2D.npz +0 -0
  193. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/wavecal/uves_red_665nm_2D.npz +0 -0
  194. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/wavecal/uves_red_760nm_2D.npz +0 -0
  195. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/wavecal/uves_red_860nm_2D.npz +0 -0
  196. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/wavecal/xshooter_nir.npz +0 -0
  197. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/pyreduce/wavelength_calibration.py +0 -0
  198. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/tools/argon.line +0 -0
  199. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/tools/bpm_creator.py +0 -0
  200. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/tools/create_wavelength_guess.py +0 -0
  201. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/tools/download_files.py +0 -0
  202. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/tools/neon.lin +0 -0
  203. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/tools/neon.line +0 -0
  204. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/tools/pymultispec.py +0 -0
  205. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/tools/thar.npz +0 -0
  206. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/tools/wavecal_creator.py +0 -0
  207. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/tools/wavecal_creator_from_existing.py +0 -0
  208. {pyreduce_astro-0.7a4 → pyreduce_astro-0.7a5}/tools/xshooter_nir.json +0 -0
@@ -0,0 +1 @@
1
+ 3.14
@@ -1,6 +1,13 @@
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
+
4
11
  ## [0.7a4] - 2025-12-23
5
12
 
6
13
  ### Added
@@ -41,7 +48,7 @@
41
48
  - `filter_x` and `filter_type` options for order tracing
42
49
 
43
50
  ### Changed
44
- - Rename `mode` to `arm` terminology throughout
51
+ - Rename `mode` to `channel` terminology throughout
45
52
  - Output extension changed from `.ech` to `.fits`
46
53
  - Documentation converted from RST to Markdown
47
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
- arms: [red, blue]
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
- arm="middle",
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
- arm="middle",
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.7a4
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.11
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
  [![CI](https://github.com/ivh/PyReduce/actions/workflows/python-publish.yml/badge.svg)](https://github.com/ivh/PyReduce/actions/workflows/python-publish.yml)
46
44
  [![Documentation Status](https://readthedocs.org/projects/pyreduce-astro/badge/?version=latest)](https://pyreduce-astro.readthedocs.io/en/latest/?badge=latest)
47
- [![Python 3.11+](https://img.shields.io/badge/python-3.11+-blue.svg)](https://www.python.org/downloads/)
45
+ [![Python 3.13+](https://img.shields.io/badge/python-3.13+-blue.svg)](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
- arm="middle",
94
+ channel="middle",
97
95
  ).run()
98
96
  ```
99
97
 
@@ -1,6 +1,6 @@
1
1
  [![CI](https://github.com/ivh/PyReduce/actions/workflows/python-publish.yml/badge.svg)](https://github.com/ivh/PyReduce/actions/workflows/python-publish.yml)
2
2
  [![Documentation Status](https://readthedocs.org/projects/pyreduce-astro/badge/?version=latest)](https://pyreduce-astro.readthedocs.io/en/latest/?badge=latest)
3
- [![Python 3.11+](https://img.shields.io/badge/python-3.11+-blue.svg)](https://www.python.org/downloads/)
3
+ [![Python 3.13+](https://img.shields.io/badge/python-3.13+-blue.svg)](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
- arm="middle",
52
+ channel="middle",
53
53
  ).run()
54
54
  ```
55
55
 
@@ -1,6 +1,6 @@
1
1
  # /// script
2
2
  # requires-python = ">=3.13"
3
- # dependencies = ["pyreduce-astro>=0.7"]
3
+ # dependencies = ["pyreduce-astro>=0.7a5"]
4
4
  # ///
5
5
  """
6
6
  AJ instrument example: Fiber bundle tracing with direct function calls.
@@ -79,16 +79,16 @@ logical_fibers = {
79
79
 
80
80
  # --- Load instrument ---
81
81
  instrument = load_instrument(instrument_name)
82
- arm = instrument.info["arms"][0] # Use first arm
83
- print(f"Instrument: {instrument.name}, arm: {arm}")
82
+ channel = instrument.info["channels"][0] # Use first channel
83
+ print(f"Instrument: {instrument.name}, channel: {channel}")
84
84
 
85
85
  # --- Step 1: Load images using instrument class ---
86
86
  print(f"\nLoading {file_even}...")
87
- img_even, head_even = instrument.load_fits(file_even, arm=arm, extension=0)
87
+ img_even, head_even = instrument.load_fits(file_even, channel=channel, extension=0)
88
88
  print(f" Shape: {img_even.shape}, dtype: {img_even.dtype}")
89
89
 
90
90
  print(f"Loading {file_odd}...")
91
- img_odd, head_odd = instrument.load_fits(file_odd, arm=arm, extension=0)
91
+ img_odd, head_odd = instrument.load_fits(file_odd, channel=channel, extension=0)
92
92
 
93
93
  # --- Step 2: Trace each flat independently ---
94
94
  print("\nTracing even-illuminated fibers...")
@@ -1,20 +1,22 @@
1
1
  # /// script
2
2
  # requires-python = ">=3.13"
3
- # dependencies = ["pyreduce-astro>=0.7"]
3
+ # dependencies = ["pyreduce-astro>=0.7a5"]
4
4
  # ///
5
5
  """
6
6
  Simple usage example for PyReduce
7
7
  Loads a CRIRES+ dataset, and runs the extraction
8
8
  """
9
9
 
10
- from pyreduce.configuration import get_configuration_for_instrument
10
+ import os
11
+
12
+ from pyreduce import datasets
11
13
  from pyreduce.pipeline import Pipeline
12
14
 
13
15
  # define parameters
14
- instrument = "Crires_plus"
16
+ instrument = "CRIRES_PLUS"
15
17
  target = ""
16
18
  night = ""
17
- arm = "J1228_Open_det1"
19
+ channel = "J1228_det1"
18
20
  steps = (
19
21
  # "bias",
20
22
  # "flat",
@@ -32,32 +34,20 @@ steps = (
32
34
  # "finalize",
33
35
  )
34
36
 
35
- # some basic settings
36
- # Expected Folder Structure: base_dir/datasets/HD132205/*.fits.gz
37
- # Feel free to change this to your own preference, values in curly brackets will be replaced with the actual values {}
38
-
39
- # load dataset (and save the location)
40
- base_dir = "/DATA/datasets/CRIRES"
41
- input_dir = base_dir
42
- output_dir = base_dir + "/reduced/"
43
-
44
- # Path to the configuration parameters, that are to be used for this reduction
45
-
46
- config = get_configuration_for_instrument(
47
- instrument,
48
- plot=1,
49
- )
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"
50
41
 
51
42
  Pipeline.from_instrument(
52
43
  instrument,
53
44
  target,
54
45
  night=night,
55
- arm=arm,
46
+ channel=channel,
56
47
  steps=steps,
57
48
  base_dir=base_dir,
58
49
  input_dir=input_dir,
59
50
  output_dir=output_dir,
60
- configuration=config,
61
51
  allow_calibration_only=True,
62
52
  # order_range=(0, 4),
63
53
  ).run()
@@ -1,6 +1,6 @@
1
1
  # /// script
2
2
  # requires-python = ">=3.13"
3
- # dependencies = ["pyreduce-astro>=0.7"]
3
+ # dependencies = ["pyreduce-astro>=0.7a5"]
4
4
  # ///
5
5
  """
6
6
  Simple usage example for PyReduce
@@ -49,7 +49,7 @@ start_logging(log_file)
49
49
  # Define other parameter for PyReduce
50
50
  target = ""
51
51
  night = "2019-07-21"
52
- arm = ""
52
+ channel = ""
53
53
  steps = (
54
54
  "bias",
55
55
  "flat",
@@ -70,7 +70,7 @@ pipe = Pipeline.from_files(
70
70
  output_dir=output_dir,
71
71
  target=target,
72
72
  instrument=instrument,
73
- arm=arm,
73
+ channel=channel,
74
74
  night=night,
75
75
  config=config,
76
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,6 +1,6 @@
1
1
  # /// script
2
2
  # requires-python = ">=3.13"
3
- # dependencies = ["pyreduce-astro>=0.7"]
3
+ # dependencies = ["pyreduce-astro>=0.7a5"]
4
4
  # ///
5
5
  """
6
6
  Simple usage example for PyReduce
@@ -14,7 +14,7 @@ from pyreduce.pipeline import Pipeline
14
14
  instrument = "HARPS"
15
15
  target = "HD109200"
16
16
  night = None
17
- arm = "red"
17
+ channel = "red"
18
18
  steps = (
19
19
  "bias",
20
20
  "flat",
@@ -36,13 +36,13 @@ steps = (
36
36
  # load dataset (and save the location)
37
37
  base_dir = datasets.HARPS() # Uses $REDUCE_DATA or ~/REDUCE_DATA
38
38
  input_dir = "raw"
39
- output_dir = "reduced_{arm}"
39
+ output_dir = "reduced_{channel}"
40
40
 
41
41
  Pipeline.from_instrument(
42
42
  instrument,
43
43
  target,
44
44
  night=night,
45
- arm=arm,
45
+ channel=channel,
46
46
  steps=steps,
47
47
  base_dir=base_dir,
48
48
  input_dir=input_dir,
@@ -1,6 +1,6 @@
1
1
  # /// script
2
2
  # requires-python = ">=3.13"
3
- # dependencies = ["pyreduce-astro>=0.7"]
3
+ # dependencies = ["pyreduce-astro>=0.7a5"]
4
4
  # ///
5
5
  import os.path
6
6
 
@@ -13,9 +13,9 @@ from pyreduce.wavelength_calibration import (
13
13
  )
14
14
 
15
15
 
16
- def func_wavecal(deg, thar, instrument, arm, **kwargs):
16
+ def func_wavecal(deg, thar, instrument, channel, **kwargs):
17
17
  reference = instruments.instrument_info.get_wavecal_filename(
18
- None, instrument, arm, polarimetry=False
18
+ None, instrument, channel, polarimetry=False
19
19
  )
20
20
  reference = np.load(reference, allow_pickle=True)
21
21
  linelist = reference["cs_lines"]
@@ -40,7 +40,7 @@ def func_freq_comb(deg, comb, wave, **kwargs):
40
40
  instrument = "HARPS"
41
41
  target = "HD109200"
42
42
  night = "2015-04-09"
43
- arm = "red"
43
+ channel = "red"
44
44
 
45
45
  # some basic settings
46
46
  # Expected Folder Structure: base_dir/datasets/HD132205/*.fits.gz
@@ -49,7 +49,7 @@ arm = "red"
49
49
  # load dataset (and save the location)
50
50
  base_dir = datasets.HARPS() # Uses $REDUCE_DATA or ~/REDUCE_DATA
51
51
  input_dir = "raw"
52
- output_dir = f"reduced_{arm}"
52
+ output_dir = f"reduced_{channel}"
53
53
 
54
54
  config = configuration.get_configuration_for_instrument(instrument)
55
55
 
@@ -82,10 +82,10 @@ for i in np.ndindex(shape):
82
82
  grid[i] += 1
83
83
 
84
84
  # aic = func_freq_comb((3, 6), comb, wave, **kwargs_comb)
85
- # aic = func_wavecal((3, 6), thar, instrument, arm, **kwargs)
85
+ # aic = func_wavecal((3, 6), thar, instrument, channel, **kwargs)
86
86
 
87
87
  # matrix = util.gridsearch(
88
- # func_wavecal, grid, args=(thar, instrument, arm), kwargs=kwargs
88
+ # func_wavecal, grid, args=(thar, instrument, channel), kwargs=kwargs
89
89
  # )
90
90
  # np.save(f"matrix_{ndim}D.npy", matrix)
91
91
  # matrix = np.load(f"matrix_{ndim}D.npy")
@@ -1,6 +1,6 @@
1
1
  # /// script
2
2
  # requires-python = ">=3.13"
3
- # dependencies = ["pyreduce-astro>=0.7"]
3
+ # dependencies = ["pyreduce-astro>=0.7a5"]
4
4
  # ///
5
5
  import matplotlib.pyplot as plt
6
6
  import numpy as np
@@ -1,20 +1,20 @@
1
1
  # /// script
2
2
  # requires-python = ">=3.13"
3
- # dependencies = ["pyreduce-astro>=0.7"]
3
+ # dependencies = ["pyreduce-astro>=0.7a5"]
4
4
  # ///
5
5
  """
6
6
  Simple usage example for PyReduce
7
7
  Loads a JWST MIRI dataset, and runs the extraction
8
8
  """
9
9
 
10
- from pyreduce.configuration import get_configuration_for_instrument
10
+ from pyreduce import datasets
11
11
  from pyreduce.pipeline import Pipeline
12
12
 
13
13
  # define parameters
14
14
  instrument = "JWST_MIRI"
15
15
  target = None
16
16
  night = None
17
- arm = "LRS_SLITLESS"
17
+ channel = "LRS_SLITLESS"
18
18
  steps = (
19
19
  "bias",
20
20
  "flat",
@@ -27,28 +27,20 @@ steps = (
27
27
  # "finalize",
28
28
  )
29
29
 
30
- # some basic settings
31
- # Expected Folder Structure: base_dir/datasets/HD132205/*.fits.gz
32
- # Feel free to change this to your own preference, values in curly brackets will be replaced with the actual values {}
33
-
34
- # load dataset (and save the location)
35
- base_dir = "/DATA/JWST/MIRI/MIRIsim/"
30
+ # Data location: uses $REDUCE_DATA or ~/REDUCE_DATA
31
+ base_dir = datasets.JWST_MIRI()
36
32
  input_dir = "raw"
37
33
  output_dir = "reduced"
38
34
 
39
- # Path to the configuration parameters, that are to be used for this reduction
40
- config = get_configuration_for_instrument(instrument)
41
-
42
35
  Pipeline.from_instrument(
43
36
  instrument,
44
37
  target,
45
38
  night=night,
46
- arm=arm,
39
+ channel=channel,
47
40
  steps=steps,
48
41
  base_dir=base_dir,
49
42
  input_dir=input_dir,
50
43
  output_dir=output_dir,
51
- configuration=config,
52
44
  # order_range=(0, 25),
53
45
  plot=1,
54
46
  ).run()
@@ -1,23 +1,20 @@
1
1
  # /// script
2
2
  # requires-python = ">=3.13"
3
- # dependencies = ["pyreduce-astro>=0.7"]
3
+ # dependencies = ["pyreduce-astro>=0.7a5"]
4
4
  # ///
5
5
  """
6
6
  Simple usage example for PyReduce
7
7
  Loads a sample JWST NIRISS dataset, and runs the extraction
8
8
  """
9
9
 
10
- import os.path
11
-
12
10
  from pyreduce import datasets
13
- from pyreduce.configuration import get_configuration_for_instrument
14
11
  from pyreduce.pipeline import Pipeline
15
12
 
16
13
  # define parameters
17
14
  instrument = "JWST_NIRISS"
18
15
  target = None
19
16
  night = None
20
- arm = "GR700XD"
17
+ channel = "GR700XD"
21
18
  steps = (
22
19
  "bias",
23
20
  "flat",
@@ -30,28 +27,20 @@ steps = (
30
27
  "finalize",
31
28
  )
32
29
 
33
- # some basic settings
34
- # Expected Folder Structure: base_dir/datasets/HD132205/*.fits.gz
35
- # Feel free to change this to your own preference, values in curly brackets will be replaced with the actual values {}
36
-
37
- # load dataset (and save the location)
38
- base_dir = datasets.JWST_NIRISS(os.path.expanduser("~") + "/PyReduce/DATA")
39
- input_dir = "awesimsoss"
30
+ # Data location: uses $REDUCE_DATA or ~/REDUCE_DATA
31
+ base_dir = datasets.JWST_NIRISS()
32
+ input_dir = "raw"
40
33
  output_dir = "reduced"
41
34
 
42
- # Path to the configuration parameters, that are to be used for this reduction
43
- config = get_configuration_for_instrument(instrument)
44
-
45
35
  Pipeline.from_instrument(
46
36
  instrument,
47
37
  target,
48
38
  night=night,
49
- arm=arm,
39
+ channel=channel,
50
40
  steps=steps,
51
41
  base_dir=base_dir,
52
42
  input_dir=input_dir,
53
43
  output_dir=output_dir,
54
- configuration=config,
55
44
  # order_range=(0, 25),
56
45
  plot=0,
57
46
  ).run()
@@ -1,20 +1,20 @@
1
1
  # /// script
2
2
  # requires-python = ">=3.13"
3
- # dependencies = ["pyreduce-astro>=0.7"]
3
+ # dependencies = ["pyreduce-astro>=0.7a5"]
4
4
  # ///
5
5
  """
6
6
  Simple usage example for PyReduce
7
7
  Loads a Lick APF dataset, and runs the extraction
8
8
  """
9
9
 
10
- from pyreduce.configuration import get_configuration_for_instrument
10
+ from pyreduce import datasets
11
11
  from pyreduce.pipeline import Pipeline
12
12
 
13
13
  # define parameters
14
- instrument = "Lick_APF"
14
+ instrument = "LICK_APF"
15
15
  target = "KIC05005618"
16
16
  night = None
17
- arm = ""
17
+ channel = ""
18
18
  steps = (
19
19
  "bias",
20
20
  # "flat",
@@ -27,28 +27,20 @@ steps = (
27
27
  # "finalize",
28
28
  )
29
29
 
30
- # some basic settings
31
- # Expected Folder Structure: base_dir/datasets/HD132205/*.fits.gz
32
- # Feel free to change this to your own preference, values in curly brackets will be replaced with the actual values {}
33
-
34
- # load dataset (and save the location)
35
- base_dir = "/DATA/Lick/APF/"
36
- input_dir = "Raw"
30
+ # Data location: uses $REDUCE_DATA or ~/REDUCE_DATA
31
+ base_dir = datasets.LICK_APF()
32
+ input_dir = "raw"
37
33
  output_dir = "reduced"
38
34
 
39
- # Path to the configuration parameters, that are to be used for this reduction
40
- config = get_configuration_for_instrument(instrument)
41
-
42
35
  Pipeline.from_instrument(
43
36
  instrument,
44
37
  target,
45
38
  night=night,
46
- arm=arm,
39
+ channel=channel,
47
40
  steps=steps,
48
41
  base_dir=base_dir,
49
42
  input_dir=input_dir,
50
43
  output_dir=output_dir,
51
- configuration=config,
52
44
  # order_range=(0, 25),
53
45
  plot=0,
54
46
  ).run()
@@ -1,6 +1,6 @@
1
1
  # /// script
2
2
  # requires-python = ">=3.13"
3
- # dependencies = ["pyreduce-astro>=0.7"]
3
+ # dependencies = ["pyreduce-astro>=0.7a5"]
4
4
  # ///
5
5
  """
6
6
  Simple usage example for PyReduce
@@ -15,7 +15,7 @@ from pyreduce.pipeline import Pipeline
15
15
  instrument = "McDonald"
16
16
  target = "Vega"
17
17
  night = None
18
- arm = "CS23"
18
+ channel = "CS23"
19
19
  steps = (
20
20
  # "bias",
21
21
  # "flat",
@@ -46,7 +46,7 @@ Pipeline.from_instrument(
46
46
  instrument,
47
47
  target,
48
48
  night=night,
49
- arm=arm,
49
+ channel=channel,
50
50
  steps=steps,
51
51
  base_dir=base_dir,
52
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()