Metadata-Version: 2.1
Name: moody
Version: 0.2.2
Summary: A basic CLI to download data from the Mars ODE PDS Node
Home-page: https://github.com/andrewannex/moody
Download-URL: https://github.com/AndrewAnnex/moody/archive/0.0.2.tar.gz
Author: Andrew Annex
Author-email: annex@jhu.edu
License: MIT
Keywords: mars,nasa,ode,pds,cli,tool
Classifier: Natural Language :: English
Classifier: License :: OSI Approved :: MIT License
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: Scientific/Engineering :: Astronomy
Classifier: Topic :: Scientific/Engineering :: GIS
License-File: LICENSE

moody
=====

Moody is a CLI for the Mars ODE PDS Node. It implements some basic
queries against the ODE to download certain files from the ODE. Currently it is focused on
providing commands to download HiRISE and CTX raw files by productId instead of by wgeting the url directly.

The name 'moody' came from thinking about Mars, the ODE, and Python at the same time (but in a good way).

Installation
------------
run `pip install moody`

Chat
----

There is a moody specific gitter room, but the maintainers also hang out in the `open planetary slack <https://openplanetary.slack.com/>`_

|Gitter|

.. |Gitter| image:: https://badges.gitter.im/AndrewAnnex/moody.svg
   :target: https://gitter.im/AndrewAnnex/moody?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge

Usage
-----

Moody by default will use https to download and query the ODE, but
this behavior can be changed by appending ``--nohttps`` to the end of any command.

Download a CTX EDR IMG file::

    moody ctx-edr P16_007428_1845

Will download the ctx edr IMG file ``P16_007428_1845_XN_04N029W.IMG`` to the current working directory

Download all HiRISE EDR IMG files for a particular observation::

    moody hirise-edr ESP_028335_1755

Will download all HiRISE EDR images for the ``ESP_028335_1755`` observation to the current working directory.

To download a csv of the MOLA PEDR data for a given 1 degree bounding box (in 0-360 coords)::

    moody pedr 0 0 1 1

Commands
--------
A list of comands and usages are listed below and can be found directly from moody using the ``--help`` flag::

    moody [HTTPS]
    moody [--use-https HTTPS]

    moody ctx-edr PID [CHUNK_SIZE]
    moody ctx-edr --pid PID [--chunk-size CHUNK_SIZE]

    moody hirise-edr PID [CHUNK_SIZE]
    moody hirise-edr --pid PID [--chunk-size CHUNK_SIZE]

