Skip to content

Routines to perform automatic astrometry and photometry of goodman imaging observations

Notifications You must be signed in to change notification settings

soar-telescope/goodman_photometry

This branch is 105 commits ahead of navarete/goodman_photometry:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

b463bc4 · Mar 25, 2025
Mar 19, 2025
Mar 25, 2025
Mar 25, 2025
Mar 11, 2025
Mar 25, 2025
Mar 20, 2025
Mar 25, 2025
Mar 25, 2025
Oct 24, 2024
Mar 19, 2025
Mar 25, 2025
Mar 19, 2025

Repository files navigation

Goodman Photometry

Build Status codecov PyPI Version License

Routines to perform automatic astrometry and photometry of Goodman imaging observations.

The codes were initially based on STDPipe (https://github.com/karpov-sv/stdpipe) and adapted for Goodman HST.

Features

  • Performs automatic astrometry to add celestial WCS to FITS files
  • Calculates photometric zero points using Gaia-DR2 catalog
  • Includes auxiliary functions for data processing
  • Provides both command-line and Python API interfaces

Installation

To install the package, run:

pip install goodman-photometry

Prerequisites

  • Python 3.10+
  • Required dependencies:
    • astropy
    • astroplan
    • ccdproc
    • cython
    • matplotlib
    • numpy
    • packaging
    • pandas
    • requests
    • scipy
    • statsmodels
    • astroquery
    • sip_tpv
    • setuptools

Usage

Command Line Interface

The package provides command-line scripts for processing observations:

#Process astrometry
redastrometry -i input.fits -o output.fits

# Process photometry
redphotometry -i input.fits -o output.fits

Python API

You can also use the package as a library in your Python code: from goodman_photometry import Astrometry, Photometry

Initialize astrometry processor

# The values of the parameters are set to the default values. So an empty call will work as well.
astrometry = Astrometry(
    catalog_name='gaiadr2',
    magnitude_threshold=17,
    scamp_flag=1,
    color_map='Blues_r',
    save_plots=False,
    save_scamp_plots=False,
    save_intermediary_files=False,
    debug=False
)

# Process the FITS file
astrometry('input.fits', 'output.fits')

# Initialize photometry processor, it will use the default values for the parameters.
photometry = Photometry()
photometry.process('input.fits', 'output.fits')

Contributing

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature-name
  3. Commit your changes: git commit -m "description"
  4. Push to the branch: git push origin feature-name
  5. Open a Pull Request

Please make sure to:

  • Include tests for new functionality
  • Update documentation
  • Follow PEP8 style guidelines

Contact Information

For questions, bug reports, or suggestions, please contact:

Project Links

License

This project is licensed under the BSD License. See the LICENSE file for details.

About

Routines to perform automatic astrometry and photometry of goodman imaging observations

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%