GitXplorerGitXplorer
m

p4tools

public
1 stars
1 forks
3 issues

Commits

List of commits on branch master.
Unverified
6f184efe3ae46ee33389c5c01ccbc535b62286ec

fix Fan marking and add plot_fans_for_tile to plotting module

mmichaelaye committed 6 years ago
Unverified
26bb8c3a67f12815c5b5cfbc2b943171566a4e77

Bump version: 0.6.0 -> 0.7.0

mmichaelaye committed 6 years ago
Unverified
f1db4221b3114d8bf1d0f9df47e3bae7c181d4bb

adding plotting and tests

mmichaelaye committed 6 years ago
Unverified
24a4e80f007f9001411d3a4173e531e824bdc0a7

Bump version: 0.5.4 -> 0.6.0

mmichaelaye committed 6 years ago
Unverified
684762431c6704571e67318acca394b95b8c3c11

change metadata to meta_data due to attribute clash. Add update_local_catalog_files

mmichaelaye committed 6 years ago
Unverified
6a89a94aa82bd2046e9d62ab1241ceb153631478

Bump version: 0.5.3 -> 0.5.4

mmichaelaye committed 6 years ago

README

The README file for this repository.

================= Planet Four Tools

.. image:: https://img.shields.io/pypi/v/p4tools.svg :target: https://pypi.python.org/pypi/p4tools

.. image:: https://img.shields.io/travis/michaelaye/p4tools.svg :target: https://travis-ci.org/michaelaye/p4tools

.. image:: https://readthedocs.org/projects/p4tools/badge/?version=latest :target: https://p4tools.readthedocs.io/en/latest/?badge=latest :alt: Documentation Status

Tools for Planet Four data reduction and analysis.

Installation

.. code-block:: bash

 conda install -c michaelaye planetfour-catalog
 pip install p4tools

Features

  • Provides access to the Planet Four catalog data (see Install instructions):

.. code-block:: python

from p4tools import io
fans = io.get_fan_catalog()
blotches = io.get_blotch_catalog()
tile_coords = io.get_tile_coordinates()
tile_urls = io.get_tile_urls()
metadata = io.get_metadata()  # data for the HiRISE images used
region_names = io.get_region_names()  # informal region identifiers for observation IDs

These functions will use the intake library to download the data via the links provided inside the planetfour-catalog data. For read performance, the data is then being stored in your local storage folder that is being asked for at the first use of the io module of p4tools. These paths are being stored in $HOME/.p4tools.ini.

  • Enables plotting of catalog data on top of the HiRISE image tile that was used during marking

Updating

To update p4tools do

.. code-block:: bash

pip install -U p4tools

To update the catalog, first you need to get new download links by doing

.. code-block:: bash

conda update -c michaelaye planetfour-catalog

and after that, because p4tools caches the catalog items, you need to provide the parameter update=True when using the access functions, like so:

.. code-block:: python

from p4tools import io
fans = io.get_fan_catalog(update=True)

which will trigger a new download.

Credits

This package was created with Cookiecutter_ and the forked michaelaye/cookiecutter-pypackage-conda_ project template.

.. _Cookiecutter: https://github.com/audreyr/cookiecutter .. _michaelaye/cookiecutter-pypackage-conda: https://github.com/michaelaye/cookiecutter-pypackage-conda