Metadata-Version: 2.1
Name: a2p2
Version: 0.1.6
Summary: UNKNOWN
Home-page: http://www.jmmc.fr/a2p2
Author: JMMC Tech Group
Author-email: jmmc-tech-group@jmmc.fr
License: OSI Approved :: GNU General Public License v3 (GPLv3)
Keywords: observation preparation tool optical-interferometry p2 samp
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Requires-Dist: astropy (>=2)
Requires-Dist: p2api

Description
-----------

Prepare your observations within Aspro2_ ( V0.9.9.3+ ) and run a2p2_ to submit your OB.

Once setup ready, select your target and use Interop Menu 

CHARA OB are only displayed in the GUI for the first implementations.

ESO OB are ready to be submitted through P2_. You can use the demo account for tests or have to provide your credential for real cases.


Installation
------------

The package is uploaded to `PyPI`_, so you can install the package (and/or upgrade it) using pip:

   ``pip install --upgrade [--user] a2p2``


You can also build and install from sources using git:

    ``git clone https://github.com/JMMC-OpenDev/a2p2.git``

    ``pip install [--user] ./a2p2``

Or select a tagged version and download tagged zip version:

  ``pip install [--user] ./{unzipped-directory}``

Usage
-----

**a2p2 [-h] [-u USERNAME] [-v]**


optional arguments:
 -h, --help                        show this help message and exit
 -u USERNAME, --username USERNAME  use another user login in history's comments. 
 -v, --verbose                     Verbose

A GUI is provided using tkinter. 

Once Aspro2_ is running and a2p2_ is connected to an OB submission service (using P2API_) :
 * select your target 
 * enter the Aspro2's menu ``Interop/Send Obs. block(s) to A2p2`` 

After few seconds, you shoud get a report of your new submission.

Each facilities get it's own code directory to manage specific GUI and specific OB processing. You can get associated inline help in the **HELP** tab. 


License
-------
A2P2 is released under GPL license. Please have a look in the LICENSE file for any detail and feel free to fill issues.

Screenshot
-------------------
|screenshot1|


Interaction diagram
-------------------
|flowchart|

.. |screenshot1| image:: https://raw.githubusercontent.com/JMMC-OpenDev/a2p2/master/doc/screenshot_demo.png
   :alt: A2P2 screenshot
   :target: https://raw.githubusercontent.com/JMMC-OpenDev/a2p2/master/doc/screenshot_demo.png
.. |flowchart| image:: https://raw.githubusercontent.com/JMMC-OpenDev/a2p2/master/doc/A2P2_in_3steps.png
   :alt: A2P2 interaction diagram
   :target: https://raw.githubusercontent.com/JMMC-OpenDev/a2p2/master/doc/A2P2_in_3steps.png
.. |A2P2Badge| image:: https://travis-ci.org/JMMC-OpenDev/a2p2.svg?branch=master
   :alt: A2P2 Badge on master branch
   :target: https://travis-ci.org/JMMC-OpenDev/a2p2
.. _PyPI:   https://pypi.python.org
.. _P2:     https://www.eso.org/sci/observing/phase2/p2intro.html
.. _P2API:  https://www.eso.org/copdemo/apidoc/
.. _Aspro2: http://www.jmmc.fr/aspro2
.. _a2p2:   http://www.jmmc.fr/a2p2


