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.

Installation:

Install the module into your TOM environment:

pip install tom-nonsidereal-airmass

In your TOM's settings.py, add this to INSTALLED_APPS:

...
'tom_nonsidereal_airmass',

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 Source

tom_nonsidereal_airmass-0.1.0-py3-none-any.whl (20.3 kB view hashes)

Uploaded Python 3

Supported by

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