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 | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file tom-nonsidereal-airmass-0.1.0.tar.gz
.
File metadata
- Download URL: tom-nonsidereal-airmass-0.1.0.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ee748f157af9096b8e4985185aab6c6cacb3539636d9cfe696b5b76323d2123 |
|
MD5 | db4cf4bd056537dcca8295aa47ee1ddb |
|
BLAKE2b-256 | 7822cad22e124e767a5d5332d480644560eb083aae072a7dcdcedfd34a7e6640 |
File details
Details for the file tom_nonsidereal_airmass-0.1.0-py3.7.egg
.
File metadata
- Download URL: tom_nonsidereal_airmass-0.1.0-py3.7.egg
- Upload date:
- Size: 16.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 368ee79fa116e5ff50f27da56f7ccf7c9e5cd96f6362b41f1f42040481ad409f |
|
MD5 | ff508ef67ae492ea8776e87a2a53830c |
|
BLAKE2b-256 | 4f694276cd3b7984015739ec6e373c899c6e5366235a8497557ef569f674f628 |
File details
Details for the file tom_nonsidereal_airmass-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: tom_nonsidereal_airmass-0.1.0-py3-none-any.whl
- Upload date:
- Size: 20.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d111d8d2ca0e53505739a9c6d1076a9f998ef9789b7677b495d5b22ff2272cd3 |
|
MD5 | f3b4ca5aa4799dce394dad19c0d03904 |
|
BLAKE2b-256 | f3ef0f4406d9a42574bb8e5f6b2c9112987ff959d7530cd9b4a6c7378d8995b5 |