Content-Length: 591897 | pFad | http://github.com/autoplot/documentation/wiki/developer.DataSource_API_Change

47 developer.DataSource_API_Change · autoplot/documentation Wiki · GitHub
Skip to content

developer.DataSource_API_Change

Jeremy Faden edited this page Jun 14, 2024 · 3 revisions

Presently the DataSourceFactory objects get a URL and return a DataSource object. This means that though Autoplot uses URIs, URIS like

 vap+data:1,2,3,4,5,6,7
 vap+jbdc:mysql://192.168.0.203:3306/db=orbits&table=cluster1&column=orbitnum&dep0=time
 vap+dat:spawn://home/jbf/readers/cluster.sh

are excluded.

Proposal

DataSourceFactory should get a URI and should return a DataSource.

DataSource just has a getDataSet(monitor) method, so this API is fine.

AbstractDataSource is URL-based. Should the subclasses see URI or the string after the scheme (scheme-specific part)?

TimeSeriesBrowse is URL based and there's kludgy code in there to add and remove the vap+dat scheme.

AggregatingDataSource is URL based and should use fully-resolved URIs

Issues Encountered

Spaces in Filenames

Not surprisingly, spaces in filenames cause problems again. This is a break-it-to-fix-it, because surely the situation is better now without the URL<-->URI conversions as well. Fortunately a number of once-working URIs are documented and we can fix the problem. Clearly the spaces logic will be handled in the conversion to and from URIs, since URIs are pretty specific about how to encode spaces. The pluses-are-spaces logic should be implemented at the presentation layer...

Table Of Contents

URIs that Point to Data Files

Download a CDF and Plot it with Autoplot

Load a CDF directly from a website

URIs that Point to Data Servers

Saving to vap files

Loading vap files

Data Sources

CDF Files

HDF/NetCDF Files

Aggregation

CDAWeb

HAPI Servers

Exporting Data

Export Types

Additional controls

Aggregation

Tools

PNGWalk Tool

Data Mash Up

Events List

Run Batch

Advanced Topics

TimeSeriesBrowse and other Capabilities

Events Lists

Caching

Autoranging

Managing Autoplot's Data Cache

Using Autoplot with Python, IDL, and Matlab

Reading data into Python

Reading data into IDL

Reading data into Matlab

QDataSet Data Model

Clone this wiki locally








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/autoplot/documentation/wiki/developer.DataSource_API_Change

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy