Example code for Astroshaper packages.
This repository contains example notebooks demonstrating the use of AsteroidThermoPhysicalModels.jl for thermophysical modeling of asteroids.
These examples are compatible with AsteroidThermoPhysicalModels.jl v0.0.7.
For examples compatible with other versions:
- v0.0.6: See the v0.0.6-compatible branch
- Install Julia (1.6 or later recommended)
- Clone this repository:
git clone https://github.com/Astroshaper/Astroshaper-examples.git cd Astroshaper-examples
- Navigate to the desired example directory and follow the instructions in its README
Thermophysical modeling (TPM) calculation for asteroid Ryugu.
- Single asteroid TPM
- Temperature distribution analysis
- Non-gravitational forces calculation
TPM calculation for the binary asteroid system Didymos.
- Binary asteroid TPM
- Mutual shadowing (eclipses)
- Mutual heating between primary and secondary
Example notebook for YORP simulation in Kanamaru et al. (2021).
- YORP effect calculation
- Long-term rotational evolution
- Note: Currently compatible with v0.0.4 only
Each example directory contains:
- A Jupyter notebook (
.ipynb
file) - A
Project.toml
file specifying dependencies - A README with specific instructions
To run an example:
- Navigate to the example directory
- Start Julia and activate the project:
using Pkg Pkg.activate(".") Pkg.instantiate()
- Launch Jupyter:
using IJulia notebook()
- Open and run the notebook
- Julia 1.6 or later
- Jupyter (via IJulia.jl)
- Internet connection for downloading shape models and ephemeris data
These examples are provided under the same license as AsteroidThermoPhysicalModels.jl.
Contributions are welcome! Please feel free to submit issues or pull requests.