Skip to main content

Tom Toolkit module to plot non-sidereal airmass

Project description

Nonsidereal Target Airmass TOM Module

This module adds support to generate nonsidereal airmass plots to the TOM Toolkit.


Install the module into your TOM environment:

pip install tom-nonsidereal-airmass

In your TOM's, add this to INSTALLED_APPS:


If you have already customized your target_detail.html template you can skip ahead to "At the top of the file."

cd into the templates directory in the main directory of your project. Make a directory called tom_targets and cd into it.

Now you need to find where pip installed the tomtoolkit in the virtual environment you use for your TOM. If you don't remember where that is, you can do

pip show tomtoolkit

and the Location will tell you where it is. Copy the following file into your templates/tom_targets dir:

{tomtoolkit location}/tom_targets/templates/tom_targets/target_detail.html

At the top of the file (I put it after the first {% load %}), paste the following line

{% load nonsidereal_airmass_extras %}

Then to actually display the plots, find the line that says

{% elif target.type == 'NON_SIDEREAL' %}

and delete the next line with the <p>...</p> about not being able to plot non-sidereal airmass. Change it to

{% nonsidereal_target_plan %}

And you're done!

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

tom-nonsidereal-airmass-0.1.0.tar.gz (5.7 kB view hashes)

Uploaded source

Built Distributions

tom_nonsidereal_airmass-0.1.0-py3.7.egg (16.0 kB view hashes)

Uploaded 3 7

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page