Skip to content

Horizon calculator for locations on the Earth or the Moon.

Notifications You must be signed in to change notification settings

npbassett/shapes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SHAPES (Horizon Calculator)

The Simulating Horizon Angle Profile from Elevation Sets (SHAPES) code calculates the angular horizon as seen from a given location. While SHAPES was developed primarily for low radio frequency global 21-cm experiments, the code is broadly applicable.

Citation

SHAPES and the algorithm behind it were introduced in Bassett et al. 2021. If you use SHAPES for any academic work, please cite this paper.

Getting Started

To clone a copy of the repository:

git clone https://github.com/npbassett/shapes.git

To ensure that all dependencies are properly installed, it is recommended that you use shapes_env.yml to create a conda environment in which to run shapes:

cd shapes
conda env create -f shapes_env.yml
conda activate shapes_env

Once in the shapes_env environment (or all dependencies are installed in some other manner), install the package:

python setup.py develop

To download the LRO LOLA elevation data needed for lunar horizon calculations:

python remote.py

Note that this step will take a few minutes and download an ~8 GB file. If you only want to calculate horizons for locations on Earth, you can skip this step. If something goes wrong or you would like to download a new copy:

python remote.py fresh

In order for shapes to access the lunar data, it will look in $SHAPES/input so you will need to set an environment variable that points to the shapes install directory in your shell startup file (e.g. .bashrc):

export SHAPES=<path_to_shapes_directory>

Dependencies

You will need the following Python packages:

Optional:

Contributors

Primary Author: Neil Bassett

About

Horizon calculator for locations on the Earth or the Moon.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages