Skip to main content

Collection of tools used for fitting sHG1G2 and ssHG1G2 photometric models to sparse asteroid photometry

Project description

asteroid_spinprops

Name

asteroid-spinprops

Description

A collection of tools for fitting sHG1G2 and ssHG1G2 photometric models to sparse asteroid photometry

Installation

pip install asteroid_spinprops

Usage

import asteroid_spinprops.ssolib.utils as utils
import asteroid_spinprops.ssolib.modelfit as mfit
import asteroid_spinprops.ssolib.periodest as pest
import asteroid_spinprops.ssolib.dataprep as dprep
import os

data_path = os.path.join(project_path, "data") # Path to collection of .parquet files containing your asteroid data (FINK x ATLAS for example)

pqload = utils.pq_foler_to_dictionary(data_path, save=True)

ephem_path = os.path.join(data_path, "ephem_cache") # Path to your cached sso ephemerides (optional)

path_args = [data_path, pqload, ephem_path]


name = "Oloosson" # Object name
data = dprep.prepare_sso_data(name, *path_args) # Complement asteroid data with ephemerides/query the IMCCE Miriade service
cdata, rejects = dprep.filter_sso_data(name, *path_args) # Implement object filtering suite 
dprep.plot_filtering(cdata, rejects) # Inspect filtering


mparams = mfit.get_fit_params(cdata, "SHG1G2") # Get parameters from an sHG1G2 model
shg1g2_resids = mfit.make_residuals_df(cdata, mparams) # Get sHG1G2 model residuals
singnal, window, noise = pest.get_period_estimate(shg1g2_resids) # Get a period estimate from the sHG1G2 residuals
pest.plot_periodograms(singnal, window, name) # Inspect periodogram

# Combine all of the above to a single ssHG1G2 model fit & plot
mfit.plot_model(cdata, "SSHG1G2", shg1g2_constrained=True, alt_spin=True, resolution=400, x_axis="Phase")

Models

Photometric models from Carry et al.(2024) {2024A&A...687A..38C} and https://github.com/astrolabsoftware

Project status

Under development

Project details


Download files

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

Source Distribution

asteroid_spinprops-0.2.8.tar.gz (2.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

asteroid_spinprops-0.2.8-py3-none-any.whl (2.4 MB view details)

Uploaded Python 3

File details

Details for the file asteroid_spinprops-0.2.8.tar.gz.

File metadata

  • Download URL: asteroid_spinprops-0.2.8.tar.gz
  • Upload date:
  • Size: 2.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.11.11 Linux/5.15.0-139-generic

File hashes

Hashes for asteroid_spinprops-0.2.8.tar.gz
Algorithm Hash digest
SHA256 7f74df71f8982eb1b16f3e2867086513e2b9630a81afa99b9120ffefaa6e5eb9
MD5 ed9d5e96227730286ac833cabe29fd22
BLAKE2b-256 8c92497cc1d7a73c51c373d0a2a7f4e2178a862a0071d9f70c2a7c6bb0b85fea

See more details on using hashes here.

File details

Details for the file asteroid_spinprops-0.2.8-py3-none-any.whl.

File metadata

  • Download URL: asteroid_spinprops-0.2.8-py3-none-any.whl
  • Upload date:
  • Size: 2.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.11.11 Linux/5.15.0-139-generic

File hashes

Hashes for asteroid_spinprops-0.2.8-py3-none-any.whl
Algorithm Hash digest
SHA256 58faf286678eed67dd1441060b194c18c6d5e95141bf444e7edde87c4071cc80
MD5 1e26fd556041a40cf9330e0090d0b7fc
BLAKE2b-256 3652fe6faec7c50344088d5a6cf3d02d59908ae8e8f31d215bea69a786d6583f

See more details on using hashes here.

Supported by

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