Tools for working with PANOPTES data.
Project description
PANOPTES Data tools
Tools for working with 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 downloading of images and metadata.
Downloading all images for an observation:
panoptes-data download --sequence_id PAN001_14d3bd_20180113T052325
Get all metadata for a unit in a given date range:
panoptes-data get-metadata --unit_id PAN001 --start-date 2022-09-01
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.0.6.tar.gz
(32.1 kB
view details)
Built Distribution
File details
Details for the file panoptes-data-0.0.6.tar.gz
.
File metadata
- Download URL: panoptes-data-0.0.6.tar.gz
- Upload date:
- Size: 32.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2335b4932d9e3c0e3f5dd38371d3b2b6777799ead2575de3abc0121534b218e5 |
|
MD5 | 7d436633bb96f607123e7536a0bbb3b4 |
|
BLAKE2b-256 | 8adc38dc1bf0f6625ecfa1f0c8843664066b2b679195a3894bb8d2311d55f675 |
File details
Details for the file panoptes_data-0.0.6-py3-none-any.whl
.
File metadata
- Download URL: panoptes_data-0.0.6-py3-none-any.whl
- Upload date:
- Size: 12.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88ab4e77d4b95d70eda09467b52633e8341cdabbee4dc65ee2e49724d09dad07 |
|
MD5 | a60091d8b57372dd650bf8e9e7bf4c0d |
|
BLAKE2b-256 | e62ed55571efdb3e0504649629e75511326fc3b88d632612646b26d2de35e3a0 |