Skip to main content

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 given a valid sequence_id.

panoptes-data download --sequence_id PAN001_14d3bd_20180113T052325 --output-dir 'temp_dir'

Project details


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.5.tar.gz (29.7 kB view details)

Uploaded Source

Built Distribution

panoptes_data-0.0.5-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file panoptes-data-0.0.5.tar.gz.

File metadata

  • Download URL: panoptes-data-0.0.5.tar.gz
  • Upload date:
  • Size: 29.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.12

File hashes

Hashes for panoptes-data-0.0.5.tar.gz
Algorithm Hash digest
SHA256 91bd572d3d77251da7e9a58b105b9a6d838f8da948e3ab1d1c6428800e1a9861
MD5 622978b2a352731e11805b9d660884c4
BLAKE2b-256 1bebbc0c0b186b8f1bd996dac37e03256b831825ad45d8167b43125214bf228b

See more details on using hashes here.

File details

Details for the file panoptes_data-0.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for panoptes_data-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 7178ce41eab0c26d2940450d9dd7fa5e11fcc0da865efdf1deb5b14ea90f57d2
MD5 7ea37e11c1d8a97d69feea0e0d2b32ce
BLAKE2b-256 1e9c543b67603fdaea2e28962ca7801c42237ae0e4c719ddbe17911d34fa0d04

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page