Tools for working with PANOPTES data.
Project description
PANOPTES Data tools
Tools for searching and downloading PANOPTES data.
Install
Install from pip:
pip install panoptes-data
Examples
See example Jupyter Notebooks in the
notebooks
folder.
Finding observations
>>> from panoptes.data.search import search_observations
>>> from panoptes.data.observations import ObservationInfo
>>> # Find some observations
>>> results = search_observations(by_name='M42')
>>> # Use last result entry to create ObservationInfo object.
>>> obs_info = ObservationInfo(meta=results.iloc[0])
>>> obs_info.meta
camera_id 14d3bd
camera_lens_serial_number HA0028608
camera_serial_number 12070048413
coordinates_mount_dec -6.229778
coordinates_mount_ra 76.0815
exptime 120.0
field_name Wasp 35
num_images 28.0
sequence_id PAN001_14d3bd_20180113T052325
software_version POCSv0.6.0
time 2018-01-13 05:23:25+00:00
total_exptime 3360.0
unit_id PAN001
Name: 6121, dtype: object
>>> # Create an ObservationInfo object directly from a sequence_id.
>>> obs_info = ObservationInfo('PAN001_14d3bd_20180113T052325')
>>> # But then there is no metadata:
>>> obs_info.meta
{}
Downloading images
The ObservationInfo
object makes it easy to download the files:
>>> obs_info.download_images()
Command-line tools
There is a simple command line tool that allows for both searching and downloading of images and metadata.
Search for observations:
$ panoptes-data search --name M42 --min-num-images 90
| sequence_id | field_name | unit_id | coordinates_mount_ra | coordinates_mount_dec | num_images | exptime | total_exptime | time |
|:------------------------------|:-------------|:----------|-----------------------:|------------------------:|-------------:|----------:|----------------:|:--------------------------|
| PAN022_977c86_20220108T090553 | M42 | PAN022 | 83.8221 | -5.39111 | 95 | 90 | 8550 | 2022-01-08 09:05:53+00:00 |
| PAN022_538cc6_20220108T090553 | M42 | PAN022 | 83.8221 | -5.39111 | 95 | 89 | 8455 | 2022-01-08 09:05:53+00:00 |
| PAN019_42433a_20220114T085722 | M42 | PAN019 | 83.8221 | -5.39111 | 90 | 90 | 8100 | 2022-01-14 08:57:22+00:00 |
| PAN019_c623e9_20220114T085722 | M42 | PAN019 | 83.8221 | -5.39111 | 90 | 89.0222 | 8012 | 2022-01-14 08:57:22+00:00 |
| PAN019_c623e9_20220115T082108 | M42 | PAN019 | 83.8221 | -5.39111 | 105 | 89.019 | 9347 | 2022-01-15 08:21:08+00:00 |
| PAN019_42433a_20220115T082108 | M42 | PAN019 | 83.8221 | -5.39111 | 105 | 90.0095 | 9451 | 2022-01-15 08:21:08+00:00 |
Downloading all images for an observation:
panoptes-data download PAN022_977c86_20220108T090553
Get all metadata for a unit in a given date range:
panoptes-data get-metadata --unit-id PAN022 --start-date '2022-01-08'
See panoptes-data --help
for more options.
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
panoptes_data-0.1.7.tar.gz
(215.9 kB
view details)
Built Distribution
File details
Details for the file panoptes_data-0.1.7.tar.gz
.
File metadata
- Download URL: panoptes_data-0.1.7.tar.gz
- Upload date:
- Size: 215.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29f6dcdfca9a32285748c647f78853af711920255290612264789b21de077b50 |
|
MD5 | a29dad5122571478f04d8d0aa657c7d0 |
|
BLAKE2b-256 | d694591a98d0b069bd6e4ba22d9d8ea6b6a275d27c8a51474f923bcfafe1bf54 |
File details
Details for the file panoptes_data-0.1.7-py3-none-any.whl
.
File metadata
- Download URL: panoptes_data-0.1.7-py3-none-any.whl
- Upload date:
- Size: 13.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 972439444de678c5899371ee800f828243180053e6f58724fabf983b8cf938bc |
|
MD5 | d377fe48736e44253281c0ccaf1cca56 |
|
BLAKE2b-256 | 98e0af73ed8fcc170c9999315b67a3f93472c4a4cab5cd7507f16414f3a55b1f |