Skip to main content

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. 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

from autoplot import *

# Download autoplot.jar if needed and return Python bridge object
org = javaaddpath('http://autoplot.org/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 = to_ndarray(apds, 'data')
tt = to_ndarray(apds, 'dep0')

from matplotlib import pyplot as plt
plt.plot(tt,vv)
plt.show()

Contact

Jeremy Faden <faden@cottagesystems.com>

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

autoplot-0.7.0.tar.gz (9.3 kB view details)

Uploaded Source

File details

Details for the file autoplot-0.7.0.tar.gz.

File metadata

  • Download URL: autoplot-0.7.0.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/1.0.0 urllib3/1.26.16 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.13

File hashes

Hashes for autoplot-0.7.0.tar.gz
Algorithm Hash digest
SHA256 2f1f1aed920aa97cc21f48a0dc1e7581a7751c06a3e176c08f5bec3eb6a95a17
MD5 2329d7273dec149a15f2eff1ac7148e8
BLAKE2b-256 8908a1c6b044bca723fb5bac6b637c9316188e1d32466e48529bf421aa439eb1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page