Releases: spacetelescope/astrocut
v1.1.0
Thank you to all of our contributors who worked on this Astrocut release.
Some of the highlights for this minor release include:
- By default,
ASDFCutoutmakes cutouts of all arrays in the input file (e.g., data, error, uncertainty, variance, etc.)
where the last two dimensions match the shape of the science data array. [#158] - By default, ASDF cutouts now preserve all metadata from the input file. [#158]
- Add
liteparameter toASDFCutoutto create minimal cutouts with only the science data and updated world coordinate system. [#158] - Add history entry to ASDF cutouts specifying the cutout shape and center coordinates. [#158]
- Remove TICA (TESS Image Calibration) as an option for the
productparameter inTessFootprintCutout. [#161] - Deprecate the
TicaCubeFactoryclass. [#161] - Deprecate the
productparameter in theTessCubeCutoutclass, theTessFootprintCutoutclass, thecube_cutfunction,
theCutoutFactory.cube_cutfunction, and thecube_cutout_from_footprintfunction. [#161] - Bugfix for transposed GWCS bounding box for ASDF cutouts. [#160]
- Bugfix to correct
array_shapeandpixel_shapefor GWCS objects. [#160]
Please see the Astrocut Documentation for details on the utility of this package.
If you have any questions/comments, please reach out to us through a GitHub issue, or by e-mailing archive@stsci.edu.
Thank you for using Astrocut!
What's Changed
- Update CI workflow to use codecov token by @snbianco in #156
- Bump codecov/codecov-action from 5.4.2 to 5.4.3 in /.github/workflows in the actions group by @dependabot[bot] in #157
- Bugfix for flipped axes in GWCS bounding box by @snbianco in #160
- Bump the actions group in /.github/workflows with 3 updates by @dependabot[bot] in #163
- Preserve other ASDF data, add lite mode by @snbianco in #158
- Remove TICA option from TESS footprint cutouts, deprecate
productparameter by @snbianco in #161
Full Changelog: v1.0.1...v1.1.0
v1.0.1
This is a patch release to fix the following bugs:
- Bugfix so that the bounding box of the world coordinate system is not set to
Noneinget_center_pixel[#154]. - Bugfix to make deep copies of ASDF file data to avoid potential issues with links to the original ASDF input object [#154].
- Updated the versions of
asdfandroman_datamodelsin package dependencies [#154].
What's Changed
- Bump the actions group in /.github/workflows with 3 updates by @dependabot in #155
- Fix bugs in ASDF cutouts by @snbianco in #154
Full Changelog: v1.0.0...v1.0.1
v1.0.0
Special thanks to everyone who contributed to this major refactor! Your work helps make Astrocut more powerful, more flexible, and easier to maintain for the astronomical community.
Please see the Astrocut Documentation for details on the utility of this package.
If you have any questions/comments, please reach out to us through a GitHub issue, or by e-mailing archive@stsci.edu.
Thank you for using Astrocut!
Highlights
- Generalized Architecture for Cutouts: Astrocut’s internal structure has been refactored to flexibly support new missions, data formats, and workflows.
- Image Cutouts: Generate 2D image cutouts from both FITS and ASDF files with consistent metadata handling and flexible output options.
- Cube Cutouts: Generate cutouts from 3D data cubes (such as TESS FFIs) while preserving WCS information.
- Footprint-Based Cutouts: Create cutouts based on a target footprint from cloud-hosted data.
- Cloud Data Access: TESS footprint cutouts now access data directly from MAST's public data bucket on Amazon S3.
- Documentation Updates: Updated and reorganized documentation to reflect the generalized framework, new classes, and workflow examples.
Major Changes
- The
FITSCutoutclass creates 2D cutouts from FITS files, preserving WCS information and offering flexible output options. - The
ASDFCutoutclass creates 2D cutouts from ASDF files, preserving WCS information and offering flexible output options. - The
TessCubeCutoutclass generates a 3D cutout from a TESS Full Frame Image cube and now supports in-memory output. - The
TessFootprintCutoutclass creates 3D cutouts from TESS data cubes based on sky coordinate footprints and now supports in-memory output.
Deprecations
- Deprecated
output_fileparameter inasdf_cutin favor of making outputs from a batch of input files. - Deprecated
correct_wcsparameter infits_cutas non-operational.
Bug Fixes
- Resolved a bug where ASDF cutouts would inadvertently store excessive amounts of data.
- Fixed a bug in
TicaCubeFactorythat was opening files in a loop while updating the data cube's info table.
New Contributors
- @braingram made their first contribution in #148
Full Changelog: v0.12.0...v1.0.0
v0.12.0
Thank you to all of our contributors who worked on this Astrocut release.
Some of the highlights for this patch release include:
- Implement and document
cube_cut_from_footprint()function to generate cutouts from image cube files hosted on the S3 cloud. [#127] - Add documentation about odd vs. even cutout sizes in
asdf_cut(). [#128] - Bugfix when attempting to input TICA product files in
CubeFactory(). [#129] - Add a logging framework. [#131]
- Improve performance of image cutouts by using the
sectionattribute ofImageHDUobjects. [#132] - Bugfix when writing multiple output files to memory in
fits_cut(). [#132]
Please see the Astrocut Documentation for details on the utility of this package.
If you have any questions/comments, please reach out to us through a GitHub issue, or by e-mailing archive@stsci.edu.
Thank you for using Astrocut!
New Contributors
- @rlwastro made their first contribution in #132
- @dependabot made their first contribution in #135
Full Changelog: v0.11.1...v0.12.0
v0.11.1
Thank you to all of our contributors who worked on this Astrocut release.
Some of the highlights for this patch release include:
- A bugfix for opening ASDF files from a public or private S3 bucket.
- Users can now supply credentials for a private S3 bucket.
- Support for
pathlib.Pathands3path.S3Pathobjects as input toasdf_cutmethod.
Please see the Astrocut Documentation for details on the utility of this package.
If you have any questions/comments, please reach out to us through a GitHub issue, or by e-mailing archive@stsci.edu.
Thank you for using Astrocut!
What's Changed
- Support for pathlib.Path and s3path.S3Path objects in asdf_cut() by @snbianco in #119
- Asb 26944 numpy 2 by @snbianco in #120
- Bugfix for Opening Files from the Cloud by @snbianco in #121
- Pypi publish workflow by @snbianco in #123
- Add parameters for S3 credentials by @snbianco in #124
Full Changelog: v0.11.0...v0.11.1
v0.11.0
Thank you to all of our contributors who worked on this Astrocut release.
Some of the highlights for this newest release include:
- The
asdf_cutmethod implements cutout functionality for the Advanced Scientific Data Format (ASDF).- The method supports cutout creation from cloud files.
- The resulting cutout can be outputted in FITS or ASDF format.
- The original cutout shape is preserved when requesting a cutout that is partially outside of image bounds.
- Python 3.8 is no longer supported.
Please see the Astrocut Documentation for details on the utility of these new features.
If you have any questions/comments, please reach out to us through a GitHub issue, or by e-mailing archive@stsci.edu.
Thank you for using Astrocut!
What's Changed
- Drop python 3.8 support (#112)
- New Feature: ASDF Cutout Functionality (#105)
- Bug fix for asdf cutouts with data as astropy quantity (#114)
- Updates to asdf cutout for edge cases (#115)
- Adds option for cutout output to asdf file (#116)
- Handle an s3 URI in asdf_cut() (#117)
- Update CHANGES.rst to reflect
v0.10.0release (#109) - Update docs to reflect
v0.11.0release (#118)
New Contributors
- @havok2063 made their first contribution in #114
- @snbianco made their first contribution in #117
Full Changelog: v0.10.0...v0.11.0
v0.10.0
Thank you to all of our contributors who worked on this Astrocut release.
Some of the highlights for this newest release include:
- A new class (
TicaCubeFactory) has been added to Astrocut's cube-making functionality to allow for cubes to be generated from TICA FFIs, in addition to the original TESS SPOC FFIs. - Similarly, Astrocut's
CutoutFactoryhas now been generalized to make cutouts out of these TICA FFI cubes as well. - Cloud functionality has been added to
CutoutFactoryandfits_cutto enable cutout creation directly from the cloud using TESS cubes and FITS files, respectively. - Enhancements to
CutoutFactory's cloud access functionality were made to allow for faster cutout processing.
Please see the Astrocut Documentation for details on the utility of these new features.
If you have any questions/comments, please reach out to us through a GitHub issue, or by e-mailing archive@stsci.edu.
Thank you for using Astrocut!
What's Changed
- Addition of check for cutout existing before continuing (#52)
- Fixing broken tests from GitHub Actions CI run (#56)
- Fixing error resulting from forward slash in target name (#55)
- MNT: Update codecov-action version to v2 (#53)
- Make cubes out of TICA FFIs (#59)
- Make cutouts out of TICA cubes (#60)
- Fixed bug not catching duplicate ffis (#69)
max_memoryarg added to update_cube (#71)- Hotfix for
cube_cutchecking for valid WCS info (#70) - Cloud support (#76)
- Fixup github ci (#80)
- Error handling for
CubeFactoryandTicaCubeFactory(#85) - Cutout in threadpool (#84)
- Documenting multithreading enhancement (#86)
- Removing error array dimension from TicaCubeFactory (#87)
- Adapting
CutoutFactoryto account for error-less TICA Cubes (#88) - Updating
.readthedocs.ymlwith Python3.11 (#89) - Update cube and cutout unittests (#90)
- Update docs to reflect changes in TICA cube format (#93)
- Cloud functionality for astrocut.fits_cut() (#95)
- Decommissioning
update_cubefor now (#100) - Use GitHub Actions for publishing new releases to PyPI (#97)
- Updating deprecated license_file kwd (#103)
- Updating syntax in README.rst (#104)
- Updated README (#108)
New Contributors
- @phicc made their first contribution in #52
- @jaymedina made their first contribution in #56
- @falkben led their first change request in #76
- @hmlewis-astro made their first contribution in #87
- @mstcyr2 made their first contribution in #95
Full Changelog: v0.9...v0.10.0
v0.10.0.dev
Use GitHub Actions for publishing new releases to PyPI (#97) * Initial commit: Template PyPI publishing workflow YML * Changing repository_owner name * . * Updating owner name * Adding long_description and long_description_type to setup.py * README ext typo * Upload to test-pypi on every commit * Removing github repo owner conditional for test-pypi publication * Removing repository URL * Changing event to pull_request for test pypi release * Adding repository-url back into test job, and github.repo_owner * Adding a tag * . * . * Adding skip_existing=True for test-pypi release because I dont care about duplicate releases on test-pypi as I troubleshoot * using kebab-case * . * . * Adding conditional to test-pypi job to only release after merge to main * Removing unnecessary string manipulation on setup.py * Renaming for clarity * . * . * changing event_name * typo in tags name * Reverting test-pypi job to trigger on merge to main * Changing long_description_content_type * Rewritten workflow incorporating OpenAstronomy publishing github action * Removing upload_to_pypi arg and moving over a set of comments * Adding permissions * . * Testing make_tag job * Adding a delete_tag job; renaming jobs; adding comments; etc * Testing make_and_push_tag * . * Adding checkout option * changing actions/checkout version * . * . * Attempting to push tag with another gh action * Changing fetch depth * . * Updating permissions * if: always() for delete_tag * Updating comments. Fixing delete_tag * Removing local deletion of * . * fetching tags before deletion * . * publish_pure_python * Add github token * Modifying upload_to_pypi for both major jobs * Removing upload_to_pypi since default is refs/tags/v * Editing upload_to_pypi for test.pypi job * . * Just forcing an upload to test-pypi * . * . * adding secrets * echo * . * reverting to only release to test.pypi when merge to main * Reverted to a simple workflow to build, test, and publish to pypi * Making the job get triggered for tags created and pushed that start with v * Updates test_extras and test_command. removed trigger to run when branch is pushed. * Ignore tags with dev, pre, post in the name * typo * Removing ignore-tags lines * adding secrets credentials * Removing id-token write perm * Updating test_command * adding pyargs * Changing secret to PYPI_TOKEN, the API Token I generated on PyPI * Updated readme * Ben readme suggestions Co-authored-by: Ben Falk <653031+falkben@users.noreply.github.com> --------- Co-authored-by: Ben Falk <653031+falkben@users.noreply.github.com>