Skip to main content

Fast and flexible astronomical image modelling tool

Project description

<img src=”media/AP_logo.png” alt=”AutoProf” width=”300”/>

AutoProf is a python based astronomical image modelling code. It is highly flexible for a wide range of analysis tasks and uses pytorch to accelerate calculations with automatic exact derivatives and either parallel CPU code, or by taking advantage of GPUs. While pytorch was developped for Machine Learning, AutoProf hijacks its capabilities for regular Chi squared minimization and so is not a Machine Learning tool itself. Written by [Connor Stone](https://connorjstone.com/), AutoProf was developped for a number of science goals such as LSB imaging, handling crowded fields, simultaneous multi-band image modelling, and dealing with massive volumes of data from the next generation of telescopes. Even if you aren’t pushing these boundaries in particular, you will likely find AutoProf fast and easy to use for any astronomical image modelling task.

## Installation

AutoProf can be pip installed with:

` pip install autoprof `

However, for AutoProf to run you will need to install pytorch as well. Installing pytorch is very user specific, though also not very hard. Follow the instructions on the [pytorch website](https://pytorch.org/) to install a version for your system.

Also note that AutoProf is only available for python3.

You can fork the GitHub if you want to do some serious customization, everything will be in the autoprof directory once you download the source.

## Getting started

The easiest way to get started using AutoProf is to try running the jupyter notebook tutorials. Simply make a new directory where you want to run the tutorials then run the:

` autoprof tutorials `

command to download the AutoProf tutorials. If you run into difficulty with this, you can also access the tutorials directly at [this link](https://github.com/ConnorStoneAstro/AutoProf-2/tree/main/docs/tutorials) to download. Once you have the tutorials, start a jupyter session and run through them. The recommended order is:

1. GettingStarted 1. GroupModels 1. ModelZoo 1. JointModels 1. CustomModels (if you’re feeling bold)

## Documentation

Further documentation is in development. In the meantime you can contact the author [Connor Stone](https://connorjstone.com/) for any questions not answered by the tutorials.

## Model Org Chart

As a quick reference for what kinds of models are available in AutoProf, the org chart shows you the class hierarchy where the leaf nodes at the bottom are the models that can actually be used. Following different paths through the hierarchy gives models with different properties. Just use the second line for step in the flow chart to construct the name. For example one could follow a fairly direct path to get a sersic galaxy model, or a more complex path to get a muker fourier warp galaxy model. Note that the Base_Model object doesn’t have an identifier, it is really meant to hide in the background while its subclasses do the work.

<img src=”media/AutoProfModelOrgchart.png” alt=”AutoProf model Orgchart”/>

## Credit / Citation

If you use AutoProf in your research, please credit the author by citing: [ADS Bibliographic Record](https://ui.adsabs.harvard.edu/abs/2021MNRAS.508.1870S/abstract). A new paper for the updated AutoProf code is in the works.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

autoprof-0.3.1-py2.py3-none-any.whl (118.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file autoprof-0.3.1-py2.py3-none-any.whl.

File metadata

  • Download URL: autoprof-0.3.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 118.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for autoprof-0.3.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d5b84aefe8d5c9d67f2f934075c6c78eb07b1a0f99a566346437f6d584d3c224
MD5 be95e9451e38fff5d9b6d7cf9008bb0f
BLAKE2b-256 d4301da24eaaf8051b6f2814a70b3ef0e8b7249ed93e858e443d71b2ffd684d4

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page