Interface to Autoplot Java library
Project description
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. Data are read into a standard data model, QDataset, which is easily adapted to Python using “JPype”.
Autoplot/Python Interface Tools
Install using pip install autoplot
from autoplot import javaaddpath, toDateTime
# Download autoplot.jar if needed and return Python bridge object
org = javaaddpath('http://autoplot.org/jnlp/latest/autoplot.jar')
# Create Autoplot Data Set
apds = org.autoplot.idlsupport.APDataSet()
# Set URI
apds.setDataSetURI('http://autoplot.org/data/swe-np.xls?column=data&depend0=dep0')
# Get the data
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 = apds.values('data')
tt= toDateTime( apds, 'dep0' )
from matplotlib import pyplot as plt
plt.plot(tt,vv)
plt.show()
Contact
Jeremy Faden <faden@cottagesystems.net>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file autoplot-0.2.0.tar.gz
.
File metadata
- Download URL: autoplot-0.2.0.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9cb3bc0a239672d51870669bab43647ea3a71c3d95aaa6c62dd1975f0006f18 |
|
MD5 | a7f0c3c065b68eb4b6fdd3c99968f57c |
|
BLAKE2b-256 | 31c752aaa50775b91860755cea516da7165721268041869f0e50a1d5615ee200 |