Example code for Astroshaper packages.
This repository contains example notebooks demonstrating the use of AsteroidThermoPhysicalModels.jl for thermophysical modeling of asteroids.
- Install Julia (1.10 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
- Compatible with: AsteroidThermoPhysicalModels.jl v0.2.1 (see CHANGELOG.md for older versions)
TPM calculation for the binary asteroid system Didymos.
- Binary asteroid TPM
- Mutual shadowing (eclipses)
- Mutual heating between primary and secondary
- Compatible with: AsteroidThermoPhysicalModels.jl v0.2.1 (see CHANGELOG.md for older versions)
Example notebook for YORP simulation in Kanamaru et al. (2021).
- YORP effect calculation
- Long-term rotational evolution
- Compatible with: AsteroidThermoPhysicalModels.jl v0.0.4 only (not yet migrated)
Each example directory contains:
- A Jupyter notebook (
.ipynbfile) - A
Project.tomlfile 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.10 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.