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!
Metadata
Release files for tom-nonsidereal-airmass 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| tom-nonsidereal-airmass-0.1.0.tar.gz | 5.7 kB | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tom_nonsidereal_airmass-0.1.0-py3.7.egg | Legacy Egg format | - | - | Details |
| tom_nonsidereal_airmass-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 42.0 kB
Release files / tom-nonsidereal-airmass-0.1.0.tar.gz
| Download URL | tom-nonsidereal-airmass-0.1.0.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0ee748f157af9096b8e4985185aab6c6cacb3539636d9cfe696b5b76323d2123
|
|
BLAKE2b-256 checksum How to use checksums |
7822cad22e124e767a5d5332d480644560eb083aae072a7dcdcedfd34a7e6640
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / tom_nonsidereal_airmass-0.1.0-py3.7.egg
| Download URL | tom_nonsidereal_airmass-0.1.0-py3.7.egg |
|---|---|
| Size | 16.0 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
368ee79fa116e5ff50f27da56f7ccf7c9e5cd96f6362b41f1f42040481ad409f
|
|
BLAKE2b-256 checksum How to use checksums |
4f694276cd3b7984015739ec6e373c899c6e5366235a8497557ef569f674f628
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / tom_nonsidereal_airmass-0.1.0-py3-none-any.whl
| Download URL | tom_nonsidereal_airmass-0.1.0-py3-none-any.whl |
|---|---|
| Size | 20.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d111d8d2ca0e53505739a9c6d1076a9f998ef9789b7677b495d5b22ff2272cd3
|
|
BLAKE2b-256 checksum How to use checksums |
f3ef0f4406d9a42574bb8e5f6b2c9112987ff959d7530cd9b4a6c7378d8995b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|