rms-picmaker 2.2.0__tar.gz → 2.3.0__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 (349) hide show
  1. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/PKG-INFO +2 -1
  2. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/docs/dev/adding_an_instrument.rst +12 -3
  3. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/docs/dev/module_layout.rst +4 -3
  4. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/docs/dev/pipeline.rst +24 -16
  5. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/docs/user_guide.rst +42 -11
  6. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/pyproject.toml +1 -0
  7. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/src/picmaker/_version.py +3 -3
  8. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/src/picmaker/enhancement.py +11 -2
  9. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/src/picmaker/instruments/__init__.py +5 -2
  10. rms_picmaker-2.3.0/src/picmaker/instruments/_hst_support.py +273 -0
  11. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/src/picmaker/instruments/cassini_iss.py +2 -1
  12. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/src/picmaker/instruments/galileo_ssi.py +4 -2
  13. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/src/picmaker/instruments/hst_acs.py +58 -3
  14. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/src/picmaker/instruments/hst_cos.py +7 -1
  15. rms_picmaker-2.3.0/src/picmaker/instruments/hst_foc.py +92 -0
  16. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/src/picmaker/instruments/hst_nicmos.py +39 -2
  17. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/src/picmaker/instruments/hst_stis.py +30 -2
  18. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/src/picmaker/instruments/hst_wfc3.py +40 -3
  19. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/src/picmaker/instruments/hst_wfpc.py +33 -25
  20. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/src/picmaker/instruments/hst_wfpc2.py +32 -25
  21. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/src/picmaker/instruments/nh_mvic.py +2 -1
  22. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/src/picmaker/instruments/voyager_iss.py +2 -1
  23. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/src/picmaker/options.py +34 -0
  24. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/src/picmaker/picmaker.py +44 -27
  25. rms_picmaker-2.3.0/src/picmaker/slicing.py +179 -0
  26. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/src/picmaker/stretch.py +12 -18
  27. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/src/rms_picmaker.egg-info/PKG-INFO +2 -1
  28. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/src/rms_picmaker.egg-info/requires.txt +1 -0
  29. rms_picmaker-2.3.0/src/rms_picmaker.egg-info/scm_version.json +8 -0
  30. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/.baseline-flags.txt +4 -0
  31. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/test_enhancement.py +34 -0
  32. rms_picmaker-2.3.0/tests/test_hst_new_readers.py +467 -0
  33. rms_picmaker-2.3.0/tests/test_hst_wfpc2_read.py +509 -0
  34. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/test_hst_wfpc_read.py +129 -0
  35. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/test_options_spec.py +34 -0
  36. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/test_pipeline_branches.py +35 -0
  37. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/test_pipeline_spec.py +23 -6
  38. rms_picmaker-2.3.0/tests/test_slicing.py +333 -0
  39. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/test_stretch.py +17 -0
  40. rms_picmaker-2.2.0/src/picmaker/instruments/_hst_support.py +0 -28
  41. rms_picmaker-2.2.0/src/picmaker/instruments/hst_foc.py +0 -61
  42. rms_picmaker-2.2.0/src/picmaker/slicing.py +0 -120
  43. rms_picmaker-2.2.0/src/rms_picmaker.egg-info/scm_version.json +0 -8
  44. rms_picmaker-2.2.0/tests/test_hst_new_readers.py +0 -156
  45. rms_picmaker-2.2.0/tests/test_hst_wfpc2_read.py +0 -171
  46. rms_picmaker-2.2.0/tests/test_slicing.py +0 -65
  47. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/.cursor/rules/bug_report.mdc +0 -0
  48. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/.cursor/rules/dependency_management.mdc +0 -0
  49. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/.cursor/rules/documentation.mdc +0 -0
  50. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/.cursor/rules/environment_best_practices.mdc +0 -0
  51. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/.cursor/rules/git_workflow.mdc +0 -0
  52. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/.cursor/rules/how_to.mdc +0 -0
  53. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/.cursor/rules/pull_request.mdc +0 -0
  54. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/.cursor/rules/python_best_practices.mdc +0 -0
  55. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/.cursor/rules/security.mdc +0 -0
  56. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/.cursor/settings.json +0 -0
  57. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/.cursor/skills/critique-test-suite/SKILL.md +0 -0
  58. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/.cursor/skills/python-codebase-analysis/SKILL.md +0 -0
  59. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/.cursor/skills/python-codebase-analysis/reference.md +0 -0
  60. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/.cursor/skills/run-all-checks/SKILL.md +0 -0
  61. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/.gitattributes +0 -0
  62. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  63. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/.github/ISSUE_TEMPLATE/config.yml +0 -0
  64. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
  65. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/.github/ISSUE_TEMPLATE/other.md +0 -0
  66. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/.github/pull_request_template.md +0 -0
  67. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/.github/workflows/publish_to_pypi.yml +0 -0
  68. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/.github/workflows/publish_to_test_pypi.yml +0 -0
  69. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/.github/workflows/run-tests.yml +0 -0
  70. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/.gitignore +0 -0
  71. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/.readthedocs.yaml +0 -0
  72. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/.vscode/settings.json +0 -0
  73. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/CLAUDE.md +0 -0
  74. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/CODE_OF_CONDUCT.md +0 -0
  75. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/CONTRIBUTING.md +0 -0
  76. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/LICENSE +0 -0
  77. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/README.md +0 -0
  78. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/codecov.yml +0 -0
  79. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/critiques/CRITIQUE-2026-07-04.md +0 -0
  80. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/docs/Makefile +0 -0
  81. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/docs/code_of_conduct.md +0 -0
  82. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/docs/conf.py +0 -0
  83. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/docs/contributing.rst +0 -0
  84. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/docs/dev/releasing.rst +0 -0
  85. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/docs/dev/repository_overview.rst +0 -0
  86. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/docs/dev/running_tests.rst +0 -0
  87. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/docs/developer_guide.rst +0 -0
  88. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/docs/index.rst +0 -0
  89. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/docs/make.bat +0 -0
  90. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/docs/module.rst +0 -0
  91. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/requirements.txt +0 -0
  92. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/scripts/read-docs.sh +0 -0
  93. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/scripts/run-all-checks.sh +0 -0
  94. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/setup.cfg +0 -0
  95. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/src/picmaker/__init__.py +0 -0
  96. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/src/picmaker/__init__.pyi +0 -0
  97. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/src/picmaker/__main__.py +0 -0
  98. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/src/picmaker/colornames.py +0 -0
  99. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/src/picmaker/control.py +0 -0
  100. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/src/picmaker/instruments/_fits_support.py +0 -0
  101. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/src/picmaker/instruments/_pds3_support.py +0 -0
  102. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/src/picmaker/instruments/juno_junocam.py +0 -0
  103. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/src/picmaker/instruments/nh_lorri.py +0 -0
  104. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/src/picmaker/instruments/zzz_generic.py +0 -0
  105. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/src/picmaker/layout.py +0 -0
  106. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/src/picmaker/main.py +0 -0
  107. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/src/picmaker/orientation.py +0 -0
  108. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/src/picmaker/pil_utils.py +0 -0
  109. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/src/picmaker/postprocessing.py +0 -0
  110. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/src/picmaker/preprocessing.py +0 -0
  111. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/src/picmaker/py.typed +0 -0
  112. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/src/picmaker/sizing.py +0 -0
  113. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/src/picmaker/tiff16.py +0 -0
  114. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/src/rms_picmaker.egg-info/SOURCES.txt +0 -0
  115. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/src/rms_picmaker.egg-info/dependency_links.txt +0 -0
  116. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/src/rms_picmaker.egg-info/entry_points.txt +0 -0
  117. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/src/rms_picmaker.egg-info/scm_file_list.json +0 -0
  118. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/src/rms_picmaker.egg-info/top_level.txt +0 -0
  119. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/support/picmaker-v1/colornames.py +0 -0
  120. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/support/picmaker-v1/picmaker-v1.py +0 -0
  121. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/support/picmaker-v1/requirements.txt +0 -0
  122. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/support/picmaker-v1/tiff16.py +0 -0
  123. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/support/shrink_fits.py +0 -0
  124. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/cassini_iss/COISS_previews.sh +0 -0
  125. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/cassini_iss/COISS_previews.txt +0 -0
  126. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/cassini_iss/W1746306759_1.IMG +0 -0
  127. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/cassini_iss/W1746306759_1.LBL +0 -0
  128. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/cassini_iss/W1746306759_1_full.png +0 -0
  129. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/cassini_iss/W1746306759_1_med.jpg +0 -0
  130. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/cassini_iss/W1746306759_1_small.jpg +0 -0
  131. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/cassini_iss/W1746306759_1_thumb.jpg +0 -0
  132. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/cassini_iss_fmovie/subdir1/N1881794510_1_x05.IMG +0 -0
  133. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/cassini_iss_fmovie/subdir1/N1881794918_1.IMG +0 -0
  134. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/cassini_iss_fmovie/subdir1/N1881794918_1_x06.IMG +0 -0
  135. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/cassini_iss_fmovie/subdir1/N1881795326_1.IMG +0 -0
  136. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/cassini_iss_fmovie/subdir1/N1881795326_1_x07.IMG +0 -0
  137. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/cassini_iss_fmovie/subdir2/N1881795734_1.IMG +0 -0
  138. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/cassini_iss_fmovie/subdir2/N1881795734_1_x08.IMG +0 -0
  139. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/cassini_iss_fmovie/subdir2/N1881796142_1.IMG +0 -0
  140. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/cassini_iss_fmovie/subdir2/N1881796142_1_x09.IMG +0 -0
  141. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/cassini_iss_fmovie/subdir2/N1881796550_1_x10.IMG +0 -0
  142. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/galileo_ssi/C0552809300R.IMG +0 -0
  143. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/galileo_ssi/C0552809300R.LBL +0 -0
  144. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/galileo_ssi/C0552809300R_full.jpg +0 -0
  145. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/galileo_ssi/C0552809300R_med.jpg +0 -0
  146. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/galileo_ssi/C0552809300R_small.jpg +0 -0
  147. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/galileo_ssi/C0552809300R_thumb.jpg +0 -0
  148. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/galileo_ssi/GO_0xxx_previews.sh +0 -0
  149. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/galileo_ssi/GO_0xxx_previews.txt +0 -0
  150. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/hst_acs/j96o01010_drz_small.fits +0 -0
  151. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/hst_acs/j96o01ipq_flt_small.fits +0 -0
  152. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/hst_acs/j96o01ipq_raw_small.fits +0 -0
  153. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/hst_cos/ldaw09p5q_rawacq_small.fits +0 -0
  154. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/hst_foc/x1305601t_d0f.fits +0 -0
  155. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/hst_foc/x2490106t_d0f.fits +0 -0
  156. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/hst_nicmos/NB06030A0_full.jpg +0 -0
  157. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/hst_nicmos/NB06030A0_med.jpg +0 -0
  158. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/hst_nicmos/NB06030A0_small.jpg +0 -0
  159. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/hst_nicmos/NB06030A0_thumb.jpg +0 -0
  160. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/hst_nicmos/nb06030a0_mos.fits +0 -0
  161. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/hst_stis/o43v17scq_raw.fits +0 -0
  162. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/hst_wfc3/iepl0j020_drz_small.fits +0 -0
  163. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/hst_wfc3/iepl0jltq_flt_small.fits +0 -0
  164. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/hst_wfc3/iepl0jltq_raw_small.fits +0 -0
  165. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/hst_wfpc/w0ck0103t_c0f_small.fits +0 -0
  166. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/hst_wfpc/w0nq0108t_c0f_small.fits +0 -0
  167. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/hst_wfpc2/u2tf0504t_c0f.fits +0 -0
  168. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/hst_wfpc2/u2tf0504t_c1f.fits +0 -0
  169. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/juno_junocam/JNCE_2011238_00A00002_V01.IMG +0 -0
  170. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/juno_junocam/JNCE_2011238_00A00002_V01.LBL +0 -0
  171. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/juno_junocam/JNCE_2016192_00B01589_V01.IMG +0 -0
  172. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/juno_junocam/JNCE_2016192_00B01589_V01.LBL +0 -0
  173. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/juno_junocam/JNCR_2023136_51P00000_V01_shrunk.IMG +0 -0
  174. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/juno_junocam/JNCR_2023136_51P00000_V01_shrunk.LBL +0 -0
  175. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/juno_junocam/JNCR_2024134_61T00209_V01.IMG +0 -0
  176. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/juno_junocam/JNCR_2024134_61T00209_V01.LBL +0 -0
  177. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/nh_lorri/NHxxLO_previews.sh +0 -0
  178. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/nh_lorri/NHxxLO_previews.txt +0 -0
  179. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/nh_lorri/lor_0299140073_0x630_sci.fit +0 -0
  180. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/nh_lorri/lor_0299140073_0x630_sci.lbl +0 -0
  181. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/nh_lorri/lor_0299140073_0x630_sci_full.jpg +0 -0
  182. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/nh_lorri/lor_0299140073_0x630_sci_med.jpg +0 -0
  183. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/nh_lorri/lor_0299140073_0x630_sci_small.jpg +0 -0
  184. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/nh_lorri/lor_0299140073_0x630_sci_thumb.jpg +0 -0
  185. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/nh_mvic/NHxxMV_previews.sh +0 -0
  186. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/nh_mvic/NHxxMV_previews.txt +0 -0
  187. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/nh_mvic/mc0_0299064592_0x545_sci.fit +0 -0
  188. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/nh_mvic/mc0_0299064592_0x545_sci.lbl +0 -0
  189. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/nh_mvic/mc0_0299064592_0x545_sci_full.jpg +0 -0
  190. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/nh_mvic/mc0_0299064592_0x545_sci_med.jpg +0 -0
  191. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/nh_mvic/mc0_0299064592_0x545_sci_small.jpg +0 -0
  192. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/nh_mvic/mc0_0299064592_0x545_sci_thumb.jpg +0 -0
  193. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/voyager_iss/C1124748_CLEANED.IMG +0 -0
  194. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/voyager_iss/C1124748_CLEANED.LBL +0 -0
  195. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/voyager_iss/C1124748_RAW.IMG +0 -0
  196. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/voyager_iss/C1124748_RAW.LBL +0 -0
  197. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/voyager_iss/C1124748_full.jpg +0 -0
  198. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/voyager_iss/C1124748_med.jpg +0 -0
  199. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/voyager_iss/C1124748_small.jpg +0 -0
  200. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/voyager_iss/C1124748_thumb.jpg +0 -0
  201. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/voyager_iss/VGISS_previews.sh +0 -0
  202. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/test_files/voyager_iss/VGISS_versions.txt +0 -0
  203. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/__init__.py +0 -0
  204. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/conftest.py +0 -0
  205. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixture_recipes/cassini_iss_recipe.py +0 -0
  206. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixture_recipes/corrupt_fits_recipe.py +0 -0
  207. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixture_recipes/corrupt_vicar_recipe.py +0 -0
  208. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixture_recipes/galileo_ssi_a_recipe.py +0 -0
  209. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixture_recipes/galileo_ssi_b_recipe.py +0 -0
  210. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixture_recipes/generate_snapshots.py +0 -0
  211. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixture_recipes/hst_acs_recipe.py +0 -0
  212. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixture_recipes/hst_wfc3_recipe.py +0 -0
  213. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixture_recipes/hst_wfpc2_recipe.py +0 -0
  214. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixture_recipes/malformed_numpy_recipe.py +0 -0
  215. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixture_recipes/malformed_pickle_recipe.py +0 -0
  216. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixture_recipes/nh_mvic_recipe.py +0 -0
  217. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixture_recipes/pds3_sample_recipe.py +0 -0
  218. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixture_recipes/regenerate_all.py +0 -0
  219. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixture_recipes/small_grayscale_recipe.py +0 -0
  220. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixture_recipes/small_rgb_recipe.py +0 -0
  221. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixture_recipes/small_tiff16_recipe.py +0 -0
  222. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixture_recipes/voyager_iss_recipe.py +0 -0
  223. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/cassini_iss.vic +0 -0
  224. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/corrupt_fits.fits +0 -0
  225. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/corrupt_vicar.vic +0 -0
  226. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/expected/cassini_iss--colormap_red_blue.jpg +0 -0
  227. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/expected/cassini_iss--default.jpg +0 -0
  228. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/expected/cassini_iss--frame_128_pad.jpg +0 -0
  229. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/expected/cassini_iss--frame_max_50.jpg +0 -0
  230. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/expected/cassini_iss--gamma2.jpg +0 -0
  231. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/expected/cassini_iss--pct5_95.jpg +0 -0
  232. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/expected/cassini_iss--rot90.jpg +0 -0
  233. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/expected/cassini_iss--tint.jpg +0 -0
  234. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/expected/cassini_iss--twobytes_tiff.tiff +0 -0
  235. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/expected/galileo_ssi_a--colormap_red_blue.jpg +0 -0
  236. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/expected/galileo_ssi_a--default.jpg +0 -0
  237. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/expected/galileo_ssi_a--frame_128_pad.jpg +0 -0
  238. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/expected/galileo_ssi_a--frame_max_50.jpg +0 -0
  239. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/expected/galileo_ssi_a--gamma2.jpg +0 -0
  240. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/expected/galileo_ssi_a--pct5_95.jpg +0 -0
  241. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/expected/galileo_ssi_a--rot90.jpg +0 -0
  242. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/expected/galileo_ssi_a--tint.jpg +0 -0
  243. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/expected/galileo_ssi_a--twobytes_tiff.tiff +0 -0
  244. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/expected/hst_acs--colormap_red_blue.jpg +0 -0
  245. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/expected/hst_acs--default.jpg +0 -0
  246. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/expected/hst_acs--frame_128_pad.jpg +0 -0
  247. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/expected/hst_acs--frame_max_50.jpg +0 -0
  248. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/expected/hst_acs--gamma2.jpg +0 -0
  249. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/expected/hst_acs--pct5_95.jpg +0 -0
  250. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/expected/hst_acs--rot90.jpg +0 -0
  251. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/expected/hst_acs--tint.jpg +0 -0
  252. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/expected/hst_acs--twobytes_tiff.tiff +0 -0
  253. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/expected/hst_wfc3--colormap_red_blue.jpg +0 -0
  254. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/expected/hst_wfc3--default.jpg +0 -0
  255. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/expected/hst_wfc3--frame_128_pad.jpg +0 -0
  256. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/expected/hst_wfc3--frame_max_50.jpg +0 -0
  257. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/expected/hst_wfc3--gamma2.jpg +0 -0
  258. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/expected/hst_wfc3--pct5_95.jpg +0 -0
  259. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/expected/hst_wfc3--rot90.jpg +0 -0
  260. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/expected/hst_wfc3--tint.jpg +0 -0
  261. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/expected/hst_wfc3--twobytes_tiff.tiff +0 -0
  262. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/expected/hst_wfpc2--colormap_red_blue.jpg +0 -0
  263. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/expected/hst_wfpc2--default.jpg +0 -0
  264. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/expected/hst_wfpc2--frame_128_pad.jpg +0 -0
  265. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/expected/hst_wfpc2--frame_max_50.jpg +0 -0
  266. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/expected/hst_wfpc2--gamma2.jpg +0 -0
  267. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/expected/hst_wfpc2--pct5_95.jpg +0 -0
  268. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/expected/hst_wfpc2--rot90.jpg +0 -0
  269. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/expected/hst_wfpc2--tint.jpg +0 -0
  270. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/expected/hst_wfpc2--twobytes_tiff.tiff +0 -0
  271. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/expected/nh_mvic--colormap_red_blue.jpg +0 -0
  272. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/expected/nh_mvic--default.jpg +0 -0
  273. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/expected/nh_mvic--frame_128_pad.jpg +0 -0
  274. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/expected/nh_mvic--frame_max_50.jpg +0 -0
  275. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/expected/nh_mvic--gamma2.jpg +0 -0
  276. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/expected/nh_mvic--pct5_95.jpg +0 -0
  277. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/expected/nh_mvic--rot90.jpg +0 -0
  278. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/expected/nh_mvic--tint.jpg +0 -0
  279. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/expected/nh_mvic--twobytes_tiff.tiff +0 -0
  280. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/expected/voyager_iss--colormap_red_blue.jpg +0 -0
  281. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/expected/voyager_iss--default.jpg +0 -0
  282. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/expected/voyager_iss--frame_128_pad.jpg +0 -0
  283. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/expected/voyager_iss--frame_max_50.jpg +0 -0
  284. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/expected/voyager_iss--gamma2.jpg +0 -0
  285. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/expected/voyager_iss--pct5_95.jpg +0 -0
  286. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/expected/voyager_iss--rot90.jpg +0 -0
  287. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/expected/voyager_iss--tint.jpg +0 -0
  288. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/expected/voyager_iss--twobytes_tiff.tiff +0 -0
  289. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/galileo_ssi_a.vic +0 -0
  290. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/galileo_ssi_b.vic +0 -0
  291. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/hst_acs.fits +0 -0
  292. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/hst_wfc3.fits +0 -0
  293. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/hst_wfpc2.fits +0 -0
  294. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/malformed_numpy.bin +0 -0
  295. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/malformed_pickle.bin +0 -0
  296. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/nh_mvic.fits +0 -0
  297. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/pds3_sample.IMG +0 -0
  298. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/small_grayscale.png +0 -0
  299. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/small_rgb.png +0 -0
  300. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/small_tiff16.tiff +0 -0
  301. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/two_versions.txt +0 -0
  302. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/fixtures/voyager_iss.vic +0 -0
  303. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/snapshots_index.py +0 -0
  304. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/test_adjust.py +0 -0
  305. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/test_cassini_iss_fmovie_movie.py +0 -0
  306. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/test_cassini_iss_previews.py +0 -0
  307. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/test_cli.py +0 -0
  308. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/test_cli_unit.py +0 -0
  309. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/test_color.py +0 -0
  310. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/test_control.py +0 -0
  311. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/test_fits_support.py +0 -0
  312. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/test_frame_max.py +0 -0
  313. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/test_galileo_ssi_previews.py +0 -0
  314. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/test_happy_path_no_warnings.py +0 -0
  315. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/test_hst_acs_read.py +0 -0
  316. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/test_hst_nicmos_read.py +0 -0
  317. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/test_hst_wfc3_read.py +0 -0
  318. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/test_instruments_cascade.py +0 -0
  319. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/test_instruments_extra.py +0 -0
  320. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/test_instruments_reading.py +0 -0
  321. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/test_instruments_spec.py +0 -0
  322. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/test_juno_junocam_read.py +0 -0
  323. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/test_layout.py +0 -0
  324. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/test_logging.py +0 -0
  325. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/test_missing_file_raises.py +0 -0
  326. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/test_mutable_defaults.py +0 -0
  327. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/test_nh_lorri_previews.py +0 -0
  328. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/test_nh_mvic_previews.py +0 -0
  329. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/test_orientation.py +0 -0
  330. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/test_overlap_vs_overlaps.py +0 -0
  331. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/test_package_init.py +0 -0
  332. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/test_pds3_reader.py +0 -0
  333. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/test_pds3_reader_branches.py +0 -0
  334. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/test_pds3_support.py +0 -0
  335. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/test_pil_utils.py +0 -0
  336. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/test_pil_utils_branches.py +0 -0
  337. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/test_pipeline.py +0 -0
  338. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/test_postprocessing.py +0 -0
  339. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/test_sizing.py +0 -0
  340. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/test_snapshots.py +0 -0
  341. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/test_stub_matches_init.py +0 -0
  342. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/test_tiff16.py +0 -0
  343. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/test_tiff16_branches.py +0 -0
  344. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/test_tiff16_spec.py +0 -0
  345. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/test_versions.py +0 -0
  346. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/test_versions_override.py +0 -0
  347. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/test_voyager_iss_previews.py +0 -0
  348. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/test_warning_elevation.py +0 -0
  349. {rms_picmaker-2.2.0 → rms_picmaker-2.3.0}/tests/test_zebra.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rms-picmaker
3
- Version: 2.2.0
3
+ Version: 2.3.0
4
4
  Summary: Convert PDS3, VICAR, and FITS astronomy images to JPEG, TIFF, and other display formats.
5
5
  Author-email: "Robert S. French" <rfrench@seti.org>
6
6
  Maintainer-email: "Robert S. French" <rfrench@seti.org>
@@ -34,6 +34,7 @@ Requires-Dist: pillow>=12.2.0
34
34
  Requires-Dist: scipy>=1.17.1
35
35
  Requires-Dist: rms-pdslogger>=3.2.1
36
36
  Requires-Dist: rms-pdsparser>=2.0.0
37
+ Requires-Dist: rms-psiops>=1.0.0
37
38
  Requires-Dist: rms-tabulation>=2.0.0
38
39
  Requires-Dist: rms-vax>=1.0.5
39
40
  Requires-Dist: rms-vicar>=1.3.0
@@ -41,8 +41,9 @@ The cascade only calls a method that exists (it guards each call with
41
41
  :func:`!detect_in_fits`.
42
42
 
43
43
  **Construction.** Every ``detect_*`` method builds and returns
44
- ``cls(array, default_upward, default_tint)`` — the
45
- :class:`~picmaker.instruments.ImageData` constructor:
44
+ ``cls(array, default_upward, default_tint, hmask=None, imask=None)`` — the
45
+ :class:`~picmaker.instruments.ImageData` constructor, in which the two masks are
46
+ keyword-only:
46
47
 
47
48
  * ``array`` — the pixel array, 2-D ``(lines, samples)`` or 3-D
48
49
  ``(bands, lines, samples)``.
@@ -52,6 +53,13 @@ The cascade only calls a method that exists (it guards each call with
52
53
  * ``default_tint`` — the default tint color (an ``(R, G, B)`` tuple or
53
54
  ``None``), used when ``--tint`` is set and the user gave no explicit
54
55
  ``--colormap``.
56
+ * ``hmask``, ``imask`` — ``None`` or boolean arrays with the same shape as
57
+ ``array``. Pixels set in ``hmask`` are excluded from the stretch; pixels set
58
+ in ``imask`` are drawn in the ``--invalid`` color, but only with ``--hide-dq``
59
+ (otherwise ``slice_array`` discards ``imask``). Most instruments omit
60
+ both, leaving them ``None``. HST FOC, WF/PC, and WFPC2 fill both from a
61
+ separate data quality file; HST ACS, COS, NICMOS, STIS, and WFC3 fill both
62
+ from the ``DQ`` extension that matches the selected ``SCI`` extension.
55
63
 
56
64
  **Optional overrides** — define these on the subclass only when the
57
65
  instrument needs behaviour the base class does not provide:
@@ -172,7 +180,8 @@ Writing the instrument module
172
180
 
173
181
  filter_name = vic.get('FILTER_NAME', '')
174
182
  default_tint = _FILTER_DICT.get(filter_name)
175
- return MyMission_MyInst(vic.array[0], _DEFAULT_UPWARD, default_tint)
183
+ return MyMission_MyInst(vic.array[0], _DEFAULT_UPWARD,
184
+ default_tint)
176
185
 
177
186
  **FITS-based instrument** (e.g. HST, New Horizons MVIC) — use
178
187
  ``detect_in_fits`` and the FITS helpers:
@@ -80,14 +80,15 @@ input file, honoring the ``--replace`` policy
80
80
  -----------------------------------------------------
81
81
 
82
82
  Shape-space selection. :func:`picmaker.slicing.slice_array` extracts
83
- the requested sample / line / band sub-range from the raw 3-D input
84
- array and returns it together with an optional invalid-pixel mask.
83
+ the requested sample / line / band sub-range from an ``ImageData`` object's
84
+ array and returns a copy of the object (same subclass) holding the slice, with
85
+ the invalid-pixel mask OR-ed into its ``hmask`` and ``imask``.
85
86
 
86
87
  :mod:`picmaker.stretch` (``src/picmaker/stretch.py``)
87
88
  -----------------------------------------------------
88
89
 
89
90
  :func:`picmaker.stretch.get_limits` chooses the stretch endpoints from
90
- the array, the optional invalid mask, and the ``--limits`` /
91
+ the array, the optional ``hmask``, and the ``--limits`` /
91
92
  ``--percentiles`` / ``--trim`` / ``--footprint`` options.
92
93
 
93
94
  :mod:`picmaker.enhancement` (``src/picmaker/enhancement.py``)
@@ -38,11 +38,11 @@ zoom controls to read the labels at any size.
38
38
  RO -->|VICAR open OK| NV[detect_in_vicar<br/>per instrument]
39
39
  RO -->|FITS open OK| NF[detect_in_fits<br/>per instrument]
40
40
  RO -->|otherwise| NG[detect_in_file<br/>per instrument]
41
- NPI --> Q[ImageData subclass<br/>array, default_upward, default_tint]
41
+ NPI --> Q[ImageData subclass<br/>array, default_upward,<br/>default_tint, hmask, imask]
42
42
  NV --> Q
43
43
  NF --> Q
44
44
  NG --> Q
45
- Q --> SL[slice_array]
45
+ Q --> SL[slice_array<br/>sliced ImageData copy]
46
46
  SL --> ZB[fill_zebra_stripes<br/>optional]
47
47
  ZB --> MOS{mosaic AND ndim==3 AND<br/>image_data.apply_mosaic?}
48
48
  MOS -->|yes| GLB[get_limits per band]
@@ -217,8 +217,12 @@ output image, running the phases shown in the flowchart:
217
217
  :func:`picmaker.instruments.read_image_array` (see the reader cascade
218
218
  below).
219
219
  2. Slice out the region of interest with
220
- :func:`picmaker.slicing.slice_array`, which returns the 2-D or 3-D
221
- array plus an optional invalid-pixel mask.
220
+ :func:`picmaker.slicing.slice_array`, which returns a sliced copy of the
221
+ ``ImageData`` object (same subclass). Its ``array`` is the 2-D or 3-D
222
+ slice, and the invalid-pixel mask is OR-ed into its ``hmask`` (used by
223
+ the stretch) and ``imask`` (pixels colored as invalid). The original
224
+ ``image_data`` is left unsliced so ``--versions`` and ``--movie`` can
225
+ reuse it.
222
226
  3. Optionally fill zebra stripes with
223
227
  :func:`picmaker.preprocessing.fill_zebra_stripes` when ``--zebra`` is
224
228
  set.
@@ -304,12 +308,13 @@ The image container
304
308
 
305
309
  :class:`picmaker.instruments.ImageData` is the base class every
306
310
  instrument subclasses. It is constructed as
307
- ``ImageData(array, default_upward, default_tint)`` and carries the raw
308
- pixel array, the display-direction default, and the per-image default
309
- tint color. Its :meth:`~picmaker.instruments.ImageData.apply_colormap`
310
- method forwards to :func:`picmaker.enhancement.apply_colormap` with the
311
- instrument's ``default_tint``; an instrument overrides it only for a
312
- non-standard colormap policy. Instruments that assemble multi-detector
311
+ ``ImageData(array, default_upward, default_tint, hmask=None, imask=None)``, with
312
+ keyword-only masks, and carries the raw pixel array, the display-direction
313
+ default, and the per-image default tint color. Its
314
+ :meth:`~picmaker.instruments.ImageData.apply_colormap` method forwards to
315
+ :func:`picmaker.enhancement.apply_colormap` with the instrument's
316
+ ``default_tint``; an instrument overrides it only for a non-standard colormap
317
+ policy. Instruments that assemble multi-detector
313
318
  mosaics additionally define an :func:`!apply_mosaic` method, checked via
314
319
  :func:`hasattr` in :func:`~picmaker.picmaker.picmaker1`.
315
320
 
@@ -331,7 +336,9 @@ supports several strategies that can be combined:
331
336
  * ``trim_zeros`` — peel all-zero exterior rows and columns before
332
337
  computing.
333
338
  * ``footprint=D`` — apply a circular median filter (footprint diameter
334
- ``D``) and tighten the limits to the filter output.
339
+ ``D``) and tighten the limits to the filter output. The filter is
340
+ :func:`psiops.median_filter`, which leaves masked pixels out of every
341
+ median.
335
342
 
336
343
  :func:`picmaker.enhancement.apply_colormap` maps a stretched array to an
337
344
  RGB (or single-channel grayscale) array using either a named
@@ -346,11 +353,12 @@ trailing-zero artifacts in compressed spacecraft images.
346
353
  Geometry and layout helpers
347
354
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
348
355
 
349
- :func:`picmaker.slicing.slice_array` takes the raw
350
- ``(bands, lines, samples)`` array (or a 2-D array) and returns the
351
- band-selected / band-merged array plus an optional invalid-pixel mask.
352
- It honors the ``samples``, ``lines``, ``bands``, ``valid``, and
353
- ``crop`` slice arguments.
356
+ :func:`picmaker.slicing.slice_array` takes an ``ImageData`` object whose
357
+ array is ``(bands, lines, samples)`` (or 2-D) and returns a copy of the same
358
+ subclass. In the copy, ``array`` is the band-selected / band-merged slice. Its
359
+ ``hmask`` and ``imask`` are sliced the same way and OR-ed with the invalid-pixel
360
+ mask, or set to that mask if they were ``None``. It honors the ``samples``,
361
+ ``lines``, ``bands``, ``valid``, ``mask_ranges``, and ``crop`` slice arguments.
354
362
 
355
363
  :func:`picmaker.orientation.rotate_rgb_array` applies the
356
364
  ``--rotation`` choice and the ``--up`` / ``--down`` override on top of
@@ -108,8 +108,10 @@ are applied to each image in the following order:
108
108
  2. ``--bands``, ``--lines``, ``--samples``, ``--crop`` — coadd the selected
109
109
  bands and reduce the array to the requested sub-region, optionally cropping constant
110
110
  borders.
111
- 3. ``--valid`` — mark pixels outside the valid range (and NaNs) as invalid,
112
- to be colored later, in step 8.
111
+ 3. ``--valid``, ``--mask`` — mark pixels outside the valid range, pixels inside
112
+ any masked range (e.g., ``--mask 0 0`` for zero-valued pixels; repeat ``--mask``
113
+ for more ranges), and NaNs as invalid. Invalid pixels are excluded from the
114
+ stretch and colored later, in step 8.
113
115
  4. Only when ``--limits`` is *not* given, the stretch endpoints are derived
114
116
  from the pixel statistics: ``--trim``, ``--trim-zeros``, ``--footprint``,
115
117
  ``--percentiles``.
@@ -120,7 +122,9 @@ are applied to each image in the following order:
120
122
  (:ref:`section 6 <supported-instruments>`), and
121
123
  ``--retint`` scales the inferred filter wavelength for some instruments.
122
124
  8. ``--above``, ``--below``, ``--invalid`` — apply the colors for above-limit,
123
- below-limit, and invalid pixels.
125
+ below-limit, and invalid pixels. With ``--hide-dq``, pixels flagged by an
126
+ instrument's data quality mask are also drawn in the ``--invalid`` color;
127
+ ``--ignore-dq`` ignores that mask altogether.
124
128
  9. ``--up``, ``--down`` — set the vertical (line-number) direction.
125
129
  10. ``--rotate`` — flip or rotate the image.
126
130
  11. ``--filter`` — apply an optional image processing filter, followed by
@@ -198,18 +202,44 @@ Supported instruments:
198
202
  * **Cassini ISS** — VICAR or PDS3.
199
203
  * **Voyager ISS** — VICAR or PDS3.
200
204
  * **Galileo SSI** — VICAR or PDS3.
201
- * **HST ACS** (WFC / HRC / SBC) — FITS.
202
- * **HST COS** — FITS.
203
- * **HST FOC** — FITS.
204
- * **HST NICMOS** — FITS.
205
- * **HST STIS** — FITS.
206
- * **HST WFC3** (UVIS / IR) — FITS.
207
- * **HST WFPC** (WFPC1) — FITS.
208
- * **HST WFPC2** — FITS.
205
+ * **HST ACS** (WFC / HRC / SBC) — FITS. When the image comes from a ``SCI`` extension,
206
+ every pixel with a nonzero value in the matching ``DQ`` extension of the same file is
207
+ flagged, except where the value is 64 (a warm pixel) alone.
208
+ * **HST COS** — FITS. When the image comes from a ``SCI`` extension,
209
+ every pixel with a nonzero value in the matching ``DQ`` extension of the same file is
210
+ flagged.
211
+ * **HST FOC** — FITS, either "waiver" (``_d0f`` etc.) or multi-extension (``_d0m``
212
+ etc.). If the matching ``_q0f``/``_q0m`` data quality file for a raw ``_d0f``/``_d0m``
213
+ file is found, in the input file's directory or a directory given by ``--dq-dir``,
214
+ every pixel with a nonzero data quality value is flagged. (FOC ``_c1f``
215
+ files are calibrated science images, not data quality files.)
216
+ * **HST NICMOS** — FITS. When the image comes from a ``SCI`` extension,
217
+ every pixel with a nonzero value in the matching ``DQ`` extension of the same file is
218
+ flagged, except where its only flags are 16 (grot), 64 (saturated), 1024 (an
219
+ astrophysical source), or 2048 (signal in the 0th read).
220
+ * **HST STIS** — FITS. When the image comes from a ``SCI`` extension,
221
+ every pixel with a nonzero value in the matching ``DQ`` extension of the same file is
222
+ flagged.
223
+ * **HST WFC3** (UVIS / IR) — FITS. When the image comes from a ``SCI`` extension,
224
+ every pixel with a nonzero value in the matching ``DQ`` extension of the same file is
225
+ flagged, except where the value is 64 (a warm pixel) alone.
226
+ * **HST WFPC** (WFPC1) and **HST WFPC2** — FITS, either "waiver" (``_c0f`` etc.) or
227
+ multi-extension (``_c0m`` etc.). If the matching data quality file (``_c1f``/``_c1m``
228
+ for ``_c0f``/``_c0m``; ``_q0f``/``_q0m`` for ``_d0f``/``_d0m``) is found, every pixel
229
+ with a nonzero data quality value is flagged. It is looked for in the input file's
230
+ directory, or in the directories given by ``--dq-dir``. Repeat ``--dq-dir`` to search
231
+ several directories in order, e.g., an archive bundle's ``data_wfpc2_c1m/`` and
232
+ ``data_wfpc2_q0m/``; the first one holding the file is used.
209
233
  * **Juno JunoCam** — PDS3, or a raw ``.IMG`` file recognized by its name.
210
234
  * **New Horizons LORRI** — PDS3 or FITS.
211
235
  * **New Horizons MVIC** — PDS3 or FITS.
212
236
 
237
+ Pixels flagged by an instrument's data quality mask are always excluded from the
238
+ stretch. By default they are otherwise drawn normally; add ``--hide-dq`` to draw them in
239
+ the ``--invalid`` color instead. Add ``--ignore-dq`` to ignore the data quality mask
240
+ altogether, so flagged pixels are drawn normally and included in the stretch, as if the
241
+ instrument had no mask; it overrides ``--hide-dq``.
242
+
213
243
  The per-instrument subsections below add the detail that only applies
214
244
  under ``--tint`` — which filter maps to which color. Instruments with a
215
245
  single broadband channel, notably New Horizons LORRI and HST COS, are recognized
@@ -402,6 +432,7 @@ reading and processing each one, and writing the output pictures. It returns
402
432
  Each keyword is the option's long name with dashes turned into underscores,
403
433
  except for a few whose keyword differs from the flag: ``patterns``
404
434
  (``--pattern``), ``obj`` (``--object``), ``pointers`` (``--pointer``),
435
+ ``mask_ranges`` (``--mask``),
405
436
  ``below_color`` / ``above_color`` / ``invalid_color`` (``--below`` /
406
437
  ``--above`` / ``--invalid``), ``display_upward`` / ``display_downward``
407
438
  (``--up`` / ``--down``), and ``twobytes`` (``--16``). Every keyword is
@@ -15,6 +15,7 @@ dependencies = [
15
15
  "scipy>=1.17.1",
16
16
  "rms-pdslogger>=3.2.1",
17
17
  "rms-pdsparser>=2.0.0",
18
+ "rms-psiops>=1.0.0",
18
19
  "rms-tabulation>=2.0.0",
19
20
  "rms-vax>=1.0.5",
20
21
  "rms-vicar>=1.3.0",
@@ -18,7 +18,7 @@ version_tuple: tuple[int | str, ...]
18
18
  commit_id: str | None
19
19
  __commit_id__: str | None
20
20
 
21
- __version__ = version = '2.2.0'
22
- __version_tuple__ = version_tuple = (2, 2, 0)
21
+ __version__ = version = '2.3.0'
22
+ __version_tuple__ = version_tuple = (2, 3, 0)
23
23
 
24
- __commit_id__ = commit_id = 'g34563f754'
24
+ __commit_id__ = commit_id = 'g016039785'
@@ -25,7 +25,9 @@ def apply_colormap(array, valid_limits, invalid_mask=None, *, layer=None,
25
25
  maximum of the mapping.
26
26
  invalid_mask (array[bool], optional): Boolean mask of invalid pixels, including
27
27
  all NaNs in `array`.
28
- layer (int, None): The layer selection of the overall data array, if any.
28
+ layer (int, optional): For a 3-D `array`, the index of a single band to render
29
+ on its own as one grayscale (or colormapped) band, e.g., one detector of a
30
+ mosaic. If None, up to the first three bands are merged into RGB.
29
31
  default_tint (str, tuple[int, int, int], or list of these, optional): The default
30
32
  colormap to use as defined by the instrument. This is used if not overridden
31
33
  by `colormap` and if `tint` is True.
@@ -73,6 +75,13 @@ def apply_colormap(array, valid_limits, invalid_mask=None, *, layer=None,
73
75
  if invalid_mask is not None:
74
76
  invalid_mask = invalid_mask[np.newaxis]
75
77
  bands = 1
78
+ elif layer is not None:
79
+ array = array[layer:layer+1]
80
+ if invalid_mask is not None:
81
+ # A 3-D mask covers every band; a 2-D mask is already for this layer alone
82
+ invalid_mask = (invalid_mask[layer:layer+1] if invalid_mask.ndim == 3
83
+ else invalid_mask[np.newaxis])
84
+ bands = 1
76
85
  else:
77
86
  array = array[:3] # no more than three bands here
78
87
  bands = array.shape[0]
@@ -126,7 +135,7 @@ def apply_colormap(array, valid_limits, invalid_mask=None, *, layer=None,
126
135
  # Determine whether we need one or three channels
127
136
  channels = 3 if is_color else 1
128
137
 
129
- # Apply the histogram scaling if necessary; scale zero to one
138
+ # Apply the histogram scaling if necessary; scale into range zero to one
130
139
  if histogram:
131
140
  rankings = []
132
141
  for b in range(bands):
@@ -52,8 +52,10 @@ class ImageData:
52
52
  super().__init_subclass__(**kwargs)
53
53
  _register_instrument(cls)
54
54
 
55
- def __init__(self, array, default_upward, default_tint):
55
+ def __init__(self, array, default_upward, default_tint, *, hmask=None, imask=None):
56
56
  self.array = array
57
+ self.hmask = hmask
58
+ self.imask = imask
57
59
  self.default_upward = default_upward
58
60
  self.default_tint = default_tint
59
61
 
@@ -105,7 +107,8 @@ def read_image_array(filepath, **kwargs):
105
107
  array3d = np.vstack(arrays)
106
108
  # Note that the `default_upward` and `default_tint` are defined by the first filepath
107
109
  # in cases where there is more than one.
108
- return ImageData(array3d, results[0].default_upward, results[0].default_tint)
110
+ return ImageData(array3d,
111
+ results[0].default_upward, results[0].default_tint)
109
112
 
110
113
 
111
114
  def _read_one_image_array(filepath, **kwargs):
@@ -0,0 +1,273 @@
1
+ ##########################################################################################
2
+ # picmaker/instruments/_hst_support.py
3
+ ##########################################################################################
4
+ """Shared HST tools."""
5
+
6
+ import pathlib
7
+ import re
8
+ import warnings
9
+
10
+ import astropy.io.fits as pyfits
11
+ import numpy as np
12
+ from astropy.io.fits.verify import VerifyWarning
13
+
14
+ _FILTER_PATTERN = re.compile(r'[A-Z]+(\d\d\d+)[A-Z]+')
15
+
16
+ # Splits an older HST data file name around its suffix code, e.g. "u2tf0504t_c0f.fits"
17
+ # -> ("u2tf0504t", "c0", "f", ".fits"); the first group is greedy so the last match wins
18
+ _DATA_FILENAME = re.compile(r'(.*)_([a-z]\d)([fm])((?![a-z\d]).*)', re.I)
19
+
20
+ # For WF/PC and WFPC2, the suffix code of each science file type and that of its data
21
+ # quality file: calibrated _c0f/_c0m -> _c1f/_c1m; raw _d0f/_d0m -> _q0f/_q0m
22
+ WFPC_DQ_CODES = {'c0': 'c1', 'd0': 'q0'}
23
+
24
+
25
+ def get_hst_filter_digits(filter_name):
26
+ """The integer embedded within the given filter name; None otherwise."""
27
+
28
+ match = _FILTER_PATTERN.fullmatch(filter_name)
29
+ if match:
30
+ return int(match.group(1))
31
+
32
+ return None
33
+
34
+
35
+ def is_science_hdu(hdu):
36
+ """True if the HDU is a science ('SCI') extension."""
37
+ return hdu.header.get('EXTNAME', '') == 'SCI'
38
+
39
+
40
+ def get_detector_cube(hdulist, filepath):
41
+ """Return a WF/PC, WFPC2, or FOC detector cube and the detector number of each plane.
42
+
43
+ These files come in two layouts holding the same content:
44
+
45
+ * "Waiver" FITS (_c0f etc.): the PRIMARY HDU holds a (n, lines, samples) cube, and
46
+ HDU[1] is a group-parameters table whose DETECTOR column gives the detector of
47
+ each plane.
48
+ * Multi-extension FITS (_c0m etc.): the PRIMARY HDU is empty, and each detector is
49
+ in its own image extension, which carries a DETECTOR keyword.
50
+
51
+ Parameters:
52
+ hdulist (HDUList): The HDUList of the FITS file.
53
+ filepath (str or Path): The path to this FITS file.
54
+
55
+ Returns:
56
+ tuple[array, list[int]]: The (n, lines, samples) detector cube and the
57
+ detector number of each of its n planes: 1-4 for WFPC2 and the WF/PC WF chips;
58
+ 5-8 for the WF/PC PC chips. Without DETECTOR values (e.g., FOC), the planes
59
+ are numbered 1 to n.
60
+
61
+ Raises:
62
+ ValueError: If the file contains no image data.
63
+ """
64
+
65
+ array = hdulist[0].data
66
+
67
+ # Multi-extension layout
68
+ if array is None:
69
+ hdus = [hdu for hdu in hdulist[1:] if hdu.is_image and hdu.data is not None]
70
+ if not hdus:
71
+ raise ValueError(f'No image data found in {filepath}')
72
+ array = np.stack([hdu.data for hdu in hdus])
73
+ detectors = [hdu.header.get('DETECTOR', b + 1) for b, hdu in enumerate(hdus)]
74
+ return (array, detectors)
75
+
76
+ # Waiver layout
77
+ array = array[np.newaxis] if array.ndim == 2 else array
78
+
79
+ # Reading the group-parameters table trips a benign astropy VerifyWarning about a
80
+ # non-standard TDISP keyword in the archived files; suppress just that warning.
81
+ detectors = list(range(1, array.shape[0] + 1))
82
+ if len(hdulist) > 1 and not hdulist[1].is_image:
83
+ with warnings.catch_warnings():
84
+ warnings.simplefilter('ignore', VerifyWarning)
85
+ columns = hdulist[1].columns.names
86
+ if 'DETECTOR' in columns:
87
+ detectors = [int(d) for d in hdulist[1].data['DETECTOR']]
88
+
89
+ return (array, detectors)
90
+
91
+ def place_by_detector(cube, detectors):
92
+ """Expand a detector cube to all four detectors, placing each plane by its detector
93
+ number and leaving any missing detectors zero (or False).
94
+
95
+ Detector numbers 1-4 map to planes 0-3; WF/PC's PC detectors 5-8 also map to planes
96
+ 0-3.
97
+ """
98
+
99
+ result = np.zeros((4,) + cube.shape[-2:], dtype=cube.dtype)
100
+ for b, det in enumerate(detectors):
101
+ result[(det - 1) % 4] = cube[b]
102
+ return result
103
+
104
+
105
+ def get_dq_paths(filepath, dq_dir=None, dq_codes=None):
106
+ """The candidate paths to the data quality file that goes with an older HST
107
+ science file.
108
+
109
+ Parameters:
110
+ filepath (str or Path): Path to a science file, e.g., "_c0f" or "_d0m".
111
+ dq_dir (str, Path, or list[str or Path], optional): Directory, or directories
112
+ in search order, of the data quality file; None or empty for the directory
113
+ of `filepath`.
114
+ dq_codes (dict[str, str], optional): Maps the suffix code of each science file
115
+ type that has a data quality file (e.g., "c0" for "_c0f" or "_c0m") to the
116
+ code of that data quality file (e.g., "c1"). The "f" or "m" layout letter is
117
+ kept. Default is `WFPC_DQ_CODES`, for WF/PC and WFPC2.
118
+
119
+ Returns:
120
+ list[Path]: The data quality file path in each directory, in search order,
121
+ preserving the case of the original name; empty if `filepath` is not one of the
122
+ science file types in `dq_codes`.
123
+ """
124
+
125
+ dq_codes = WFPC_DQ_CODES if dq_codes is None else dq_codes
126
+
127
+ filepath = pathlib.Path(filepath)
128
+ match = _DATA_FILENAME.fullmatch(filepath.name)
129
+ if not match:
130
+ return []
131
+
132
+ (head, code, layout, tail) = match.groups()
133
+ dq_code = dq_codes.get(code.lower())
134
+ if dq_code is None:
135
+ return []
136
+ if code.isupper():
137
+ dq_code = dq_code.upper()
138
+
139
+ if isinstance(dq_dir, (str, pathlib.Path)):
140
+ dq_dir = [dq_dir]
141
+ directories = [pathlib.Path(d) for d in dq_dir] if dq_dir else [filepath.parent]
142
+ return [d / f'{head}_{dq_code}{layout}{tail}' for d in directories]
143
+
144
+
145
+ def get_dq_mask(filepath, shape, dq_dir=None, logger=None, dq_codes=None):
146
+ """Read the data quality file for an older HST science file as a boolean mask.
147
+
148
+ Parameters:
149
+ filepath (str or Path): Path to the science file.
150
+ shape (tuple[int, int, int]): Shape of the science file's detector cube.
151
+ dq_dir (str, Path, or list[str or Path], optional): Directory, or directories
152
+ in search order, of the data quality file; None or empty for the directory
153
+ of `filepath`. The first directory that holds the file is used.
154
+ logger (Logger or PdsLogger, optional): Logger for debug messages.
155
+ dq_codes (dict[str, str], optional): The science file types that have data
156
+ quality files, and the suffix codes of those files; see :func:`get_dq_paths`.
157
+
158
+ Returns:
159
+ array[bool] or None: A detector cube that is True wherever the data quality value
160
+ is nonzero; None if `filepath` has no data quality counterpart or the file is not
161
+ found in any directory.
162
+
163
+ Raises:
164
+ ValueError: If the data quality cube does not match the science cube's shape.
165
+ """
166
+
167
+ dq_paths = get_dq_paths(filepath, dq_dir, dq_codes)
168
+ dq_path = next((p for p in dq_paths if p.is_file()), None)
169
+ if dq_path is None:
170
+ for path in dq_paths:
171
+ logger and logger.debug('Data quality file not found', path)
172
+ return None
173
+
174
+ with pyfits.open(dq_path) as dq_hdulist:
175
+ (dq, _) = get_detector_cube(dq_hdulist, dq_path)
176
+ mask = np.asarray(dq != 0)
177
+
178
+ if mask.shape != tuple(shape):
179
+ raise ValueError(f'Data quality file {dq_path} has shape {mask.shape}; '
180
+ f'expected {tuple(shape)}')
181
+
182
+ logger and logger.debug('Using data quality file', dq_path)
183
+ return mask
184
+
185
+
186
+ def get_sci_dq_mask(hdulist, hdu, ignore=0):
187
+ """The data quality mask paired with a science HDU in the same file.
188
+
189
+ Newer HST files (ACS, COS, NICMOS, STIS, WFC3) store each science ("SCI") image with
190
+ a "DQ" extension of the same EXTVER. A DQ extension may be a constant, with no data
191
+ array and its value in the PIXVALUE keyword.
192
+
193
+ Parameters:
194
+ hdulist (HDUList): The HDUList of the FITS file.
195
+ hdu (HDU): The selected image HDU.
196
+ ignore (int, optional): Data quality flag bits to ignore; e.g., 64 leaves pixels
197
+ whose only flag is 64 unmasked.
198
+
199
+ Returns:
200
+ array[bool] or None: A mask that is True wherever the data quality value has any
201
+ flag bit set other than those in `ignore`; None if `hdu` is not a science HDU or
202
+ has no matching DQ extension.
203
+
204
+ Raises:
205
+ ValueError: If the DQ array does not match the shape of the science array.
206
+ """
207
+
208
+ if not is_science_hdu(hdu) or hdu.data is None:
209
+ return None
210
+
211
+ extver = hdu.header.get('EXTVER', 1)
212
+ for dq_hdu in hdulist:
213
+ if (dq_hdu.header.get('EXTNAME') == 'DQ'
214
+ and dq_hdu.header.get('EXTVER', 1) == extver):
215
+ break
216
+ else:
217
+ return None
218
+
219
+ shape = hdu.data.shape
220
+ if dq_hdu.data is None:
221
+ pixvalue = int(dq_hdu.header.get('PIXVALUE', 0))
222
+ return np.full(shape, (pixvalue & ~ignore) != 0)
223
+
224
+ # Use a signed 64-bit copy so the complement of `ignore` is valid for any DQ dtype
225
+ dq = np.asarray(dq_hdu.data, dtype=np.int64) if ignore else dq_hdu.data
226
+ mask = np.asarray((dq & ~ignore) != 0 if ignore else dq != 0)
227
+ if mask.shape != shape:
228
+ raise ValueError(f'DQ extension {extver} has shape {mask.shape}; '
229
+ f'expected {shape}')
230
+ return mask
231
+
232
+
233
+ def get_chip_dq_mask(hdulist, hdus, first_ccd, shape, ignore=0):
234
+ """The data quality mask for a two-chip (ACS/WFC or WFC3/UVIS) mosaic cube.
235
+
236
+ Parameters:
237
+ hdulist (HDUList): The HDUList of the FITS file.
238
+ hdus (list[HDU]): The image HDUs of the two chips, in file order.
239
+ first_ccd (int): The CCD chip number (1 or 2) of the first HDU.
240
+ shape (tuple[int, int, int]): Shape of the (2, lines, samples) mosaic cube.
241
+ ignore (int, optional): Data quality flag bits to ignore; see
242
+ :func:`get_sci_dq_mask`.
243
+
244
+ Returns:
245
+ array[bool] or None: A mask cube with each chip's DQ mask in the same plane as its
246
+ data; None if no chip has a DQ mask.
247
+ """
248
+
249
+ masks = [get_sci_dq_mask(hdulist, hdu, ignore) for hdu in hdus[:2]]
250
+ if all(mask is None for mask in masks):
251
+ return None
252
+
253
+ cube = np.zeros(shape, dtype=bool)
254
+ for plane, mask in zip((first_ccd - 1, 2 - first_ccd), masks, strict=False):
255
+ if mask is not None:
256
+ cube[plane] = mask
257
+ return cube
258
+
259
+
260
+ def split_mask(mask):
261
+ """The (hmask, imask) pair for a data quality mask: two separate copies, or (None,
262
+ None) if the mask is None."""
263
+
264
+ if mask is None:
265
+ return (None, None)
266
+ return (mask, mask.copy())
267
+
268
+
269
+ __all__ = ['WFPC_DQ_CODES', 'get_chip_dq_mask', 'get_detector_cube', 'get_dq_mask',
270
+ 'get_dq_paths', 'get_hst_filter_digits', 'get_sci_dq_mask', 'is_science_hdu',
271
+ 'place_by_detector', 'split_mask']
272
+
273
+ ##########################################################################################
@@ -36,7 +36,8 @@ class Cassini_ISS(ImageData):
36
36
 
37
37
  array = read_pds3_image_array(label, filepath, **kwargs)
38
38
  filters = label.get('FILTER_NAME', ('', ''))
39
- return Cassini_ISS(array, _DEFAULT_UPWARD, Cassini_ISS._default_tint(*filters))
39
+ return Cassini_ISS(array,
40
+ _DEFAULT_UPWARD, Cassini_ISS._default_tint(*filters))
40
41
 
41
42
  @staticmethod
42
43
  def detect_in_vicar(vic, filepath, **kwargs):
@@ -47,7 +47,8 @@ class Galileo_SSI(ImageData):
47
47
 
48
48
  array = read_pds3_image_array(label, filepath, **kwargs)
49
49
  filter_name = label.get('FILTER_NAME', '')
50
- return Galileo_SSI(array, _DEFAULT_UPWARD, _FILTER_TINTS.get(filter_name))
50
+ return Galileo_SSI(array,
51
+ _DEFAULT_UPWARD, _FILTER_TINTS.get(filter_name))
51
52
 
52
53
  @staticmethod
53
54
  def detect_in_vicar(vic, filepath, **kwargs):
@@ -73,7 +74,8 @@ class Galileo_SSI(ImageData):
73
74
 
74
75
  ifilter = vic.get('FILTER', 0)
75
76
  filter_name = _FILTER_NAMES[ifilter] # ifilter is never out of range
76
- return Galileo_SSI(vic.array[0], _DEFAULT_UPWARD, _FILTER_TINTS.get(filter_name))
77
+ return Galileo_SSI(vic.array[0],
78
+ _DEFAULT_UPWARD, _FILTER_TINTS.get(filter_name))
77
79
 
78
80
 
79
81
  ##########################################################################################