autoplot

bridge from python, using jpype

https://github.com/autoplot/python

Science Score: 23.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
    2 of 4 committers (50.0%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (10.1%) to scientific vocabulary
Last synced: 11 months ago · JSON representation

Repository

bridge from python, using jpype

Basic Info
  • Host: GitHub
  • Owner: autoplot
  • License: bsd-3-clause
  • Language: Jupyter Notebook
  • Default Branch: master
  • Homepage:
  • Size: 191 KB
Statistics
  • Stars: 2
  • Watchers: 5
  • Forks: 0
  • Open Issues: 12
  • Releases: 0
Created about 7 years ago · Last pushed about 2 years ago
Metadata Files
Readme License

README.md

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 the JPype library. Helper procedures from the Autoplot package convert QDataSets into ndarrays.

Autoplot/Python Interface Tools

The Autoplot/Python package is loaded using pip:

```sh-session

pip install autoplot ```

Once the package is installed, in Python Autoplot is now accessible.

```python

import autoplot as ap

Download autoplot.jar if needed and return Python bridge object

ap.init()

Create Autoplot Data Set. This object manages loading the data and then containing it until extracted.

apds = ap.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: datadep0=288

dep0: dep0288 (DEPEND_0)

Extract data values

vv = ap.tondarray(apds, 'data') tt = ap.tondarray(apds, 'dep0')

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

Changes are Coming

Over the past few years, Python and the JPype interface have changed and some examples no longer work. The interface was based on IDL and Matlab use, and a more precisely tuned interface for the Python community is needed. (For example addjavapath is a Matlab command and is strange to Python programmers.) This work should be done in 2023. See https://github.com/autoplot/python/wiki/python_reset.

For example, to reformat a remote HDF file to a local ASCII file in Python: import autoplot as ap data=ap.getDataSet('http://autoplot.org/autoplot/data/AMSR_E_L3_SeaIce6km_B06_20070307.hdf?SpPolarGrid06km/Data_Fields/SI_06km_SH_89H_ASC') ap.formatDataSet(data,'file:/tmp/ap/SeaIce6km.txt')

Contact

Jeremy Faden faden@cottagesystems.com

See also https://github.com/autoplot/python/wiki

Owner

  • Name: Autoplot
  • Login: autoplot
  • Kind: organization
  • Email: faden@cottagesystems.com

GitHub Events

Total
  • Issues event: 1
  • Issue comment event: 1
Last Year
  • Issues event: 1
  • Issue comment event: 1

Committers

Last synced: almost 3 years ago

All Time
  • Total Commits: 162
  • Total Committers: 4
  • Avg Commits per committer: 40.5
  • Development Distribution Score (DDS): 0.093
Past Year
  • Commits: 41
  • Committers: 1
  • Avg Commits per committer: 41.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Jeremy Faden f****n@c****m 147
Robert Weigel r****l@g****u 8
Bob Weigel R****l@g****m 4
Jeremy Faden j****n@u****u 3
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 11 months ago

All Time
  • Total issues: 15
  • Total pull requests: 0
  • Average time to close issues: about 2 years
  • Average time to close pull requests: N/A
  • Total issue authors: 3
  • Total pull request authors: 0
  • Average comments per issue: 1.2
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 1
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 1
  • Pull request authors: 0
  • Average comments per issue: 1.0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • jbfaden (12)
  • rweigel (1)
  • Thrameos (1)
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 51 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 1
  • Total versions: 26
  • Total maintainers: 2
pypi.org: autoplot

Interface to Autoplot Java library

  • Versions: 26
  • Dependent Packages: 0
  • Dependent Repositories: 1
  • Downloads: 51 Last month
Rankings
Dependent packages count: 10.0%
Downloads: 20.2%
Dependent repos count: 21.7%
Average: 22.7%
Forks count: 29.8%
Stargazers count: 31.9%
Maintainers (2)
Last synced: 11 months ago

Dependencies

setup.py pypi
  • jpype1 *