autoplot-0.6.2
توضیحات
Interface to Autoplot Java library
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | autoplot-0.6.2 |
| نام | autoplot |
| نسخه کتابخانه | 0.6.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Jeremy Faden |
| ایمیل نویسنده | faden@cottagesystems.com |
| آدرس صفحه اصلی | https://github.com/autoplot/python/ |
| آدرس اینترنتی | https://pypi.org/project/autoplot/ |
| مجوز | LICENSE.txt |
Autoplot is a Java application which can read data from many sources, such as ASCII tables, NASA CDF files, and HDF5 files. It can
also read data from data servers, such as the server at NASA/Goddard/CDAWeb, Das2Servers used by the Radio and
Plasma Wave Group at the University of Iowa, and servers supporting the HAPI API.
Autoplot identifies data using "URIs", which are one-line strings containing a data source ID and configuration to read the data.
These URIs can be created using the Autoplot application, available at http://autoplot.org/.
Data are read into a standard data model, QDataSet, which is easily adapted to Python using "JPype".
Helper procedures from the Autoplot package convert QDataSets into ndarrays.
Autoplot/Python Interface Tools
-------------------------------
Install using `pip install autoplot`
.. code:: python
from autoplot import *
# Download autoplot.jar, if needed, and load it into JPype's classpath.
javaaddpath('http://autoplot.org/latest/autoplot.jar')
# Create Autoplot Data Set, which is an object that loads and temporarily holds data.
apds = APDataSet()
# Set URI which will be loaded.
apds.setDataSetURI('http://autoplot.org/data/swe-np.xls?column=data&depend0=dep0')
# Load the data, initially downloading files into Autoplot's cache.
apds.doGetDataSet()
print(apds.toString())
# http://autoplot.org/data/swe-np.xls?column=data&depend0=dep0
# data: data[dep0=288] (dimensionless)
# dep0: dep0[288] (days since 1899-12-30T00:00:00.000Z) (DEPEND_0)
# Extract data values
vv = to_ndarray(apds)
tt = to_ndarray(apds, 'dep0')
from matplotlib import pyplot as plt
plt.plot(tt,vv)
plt.show()
Contact
-------------------------------
Jeremy Faden <faden@cottagesystems.com>
See also https://github.com/autoplot/python/wiki
نحوه نصب
نصب پکیج whl autoplot-0.6.2:
pip install autoplot-0.6.2.whl
نصب پکیج tar.gz autoplot-0.6.2:
pip install autoplot-0.6.2.tar.gz