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


Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for tom-nonsidereal-airmass, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size tom_nonsidereal_airmass-0.1.0-py3.7.egg (16.0 kB) File type Egg Python version 3.7 Upload date Hashes View
Filename, size tom_nonsidereal_airmass-0.1.0-py3-none-any.whl (20.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size tom-nonsidereal-airmass-0.1.0.tar.gz (5.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page