Package: astrocut
Cutout tools for astronomical imagesAstrocut provides tools for making cutouts from sets of astronomical images with shared footprints. It is under active development.Three main areas of functionality are included:Solving the specific problem of creating image cutouts from sectors of Transiting Exoplanet Survey Satellite (TESS) full-frame images.General fits file cutouts including from single images and sets of images with the shared WCS/pixel scale.Cutout post-processing functionality, including centering cutouts along a path (for moving targets) and combining cutouts.Documentation is athttps://astrocut.readthedocs.io.Project StatusDeveloper DocumentationInstallation$gitclonehttps://github.com/spacetelescope/astrocut.git$cdastrocut$pipinstall.For active development install in develop mode$pipinstall-e.TestingTesting is now run withtox(pip install tox).
Tests can be found inastrocut/tests/.$tox-etestTests can also be run directly with pytest:$pipinstall-e.[test]$pytestDocumentationDocumentation files are found indocs/.We now build the documentation withtox(pip install tox):$tox-ebuild_docsYou can also build the documentation with Sphinx directly using:$pipinstall-e.[docs]$cddocs$makehtmlThe built docs will be indocs/_build/html/, to view them go tofile:///path/to/astrocut/repo/docs/_build/html/index.htmlin the browser of your choice.Release ProtocolGitHub Action ReleasesThepypi-package.ymlGitHub workflow creates a PyPI release. The job in this workflow is triggered when a tag is pushed or a GH release (+tag) is created, and usesOpenAstronomy’sGitHub action workflowfor publishing pure Python packages (see herefor documentation).Manual ReleasesFor making releases manually, follow theAstropy template release instructions.Requirements:build (pip install build)twine (pip install twine)Notes:Astrocut uses setuptools_scm to manage version numbers.Astrocut does have a pyproject.toml fileIf the given twine command doesn’t work you likely needpython-mtwine upload dist/*You shouldn’t have to trigger a readthedocs build manually, it should run on its own in ~20 min.ContributingWe love contributions! Astrocut is open source,
built on open source, and we’d love to have you hang out in our community.Imposter syndrome disclaimer: We want your help. No, really.There may be a little voice inside your head that is telling you that you’re not
ready to be an open source contributor; that your skills aren’t nearly good
enough to contribute. What could you possibly offer a project like this one?We assure you - the little voice in your head is wrong. If you can write code at
all, you can contribute code to open source. Contributing to open source
projects is a fantastic way to advance one’s coding skills. Writing perfect code
isn’t the measure of a good developer (that would disqualify all of us!); it’s
trying to create something, making mistakes, and learning from those
mistakes. That’s how we all improve, and we are happy to help others learn.Being an open source contributor doesn’t just mean writing code, either. You can
help out by writing documentation, tests, or even giving feedback about the
project (and yes - that includes giving feedback about the contribution
process). Some of these contributions may be the most valuable to the project as
a whole, because you’re coming to the project with fresh eyes, so you can see
the errors and assumptions that seasoned contributors have glossed over.Note: This disclaimer was originally written byAdrienne Lowefor aPyCon talk, and was adapted by
Astrocut based on its use in the README file for theMetPy project.LicenseThis project is Copyright (c) MAST Archive Developers and licensed under
the terms of the BSD 3-Clause license. This package is based upon
theAstropy package templatewhich is licensed under the BSD 3-clause license. See the licenses folder for
more information.