Skip to content

developer.vapModifiers

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

Description: Autoplot vap references can have modifiers that apply tweaks to the vap files, and we are considering allowing xslt transforms to provide greater support for this.

Audience: autoplot power users

Introduction

Autoplot has always allowed modifiers to vap files, the primary use case being the one where an existing product is used to look at different timeranges. Suppose the file

<http://autoplot.org/data/autoplot-applet.vap&gt;`&nbsp;`

looks at timeranges from 2003-05-01 through 2003-05-31, then

http://autoplot.org/data/autoplot-applet.vap?timerange=2003-05-10

would use the same vap, except just the day 2003-05-10 is shown.

What Autoplot does is to load the dom from the vap file, then any transformations following the question mark (?) are applied to the dom.

Allowing for XSLT transforms

Allowing for XSLT transforms would provide a useful way to create VAPs. For example, an empty template vap could be populated with URIs and labels. XML files that are configurations for other systems could be transformed into a vap file.

Syntax

Vap file modifier:

?xslt=&

and is a list of ampersand-delimited arguments, for example:

color=yellow&background=black

Note in this case, the vapFile should be a valid vapFile. (Anything with a .vap extension ought to be a vap.)

Autoplot should be able to work without a vap file, where just the xslt is used to create the DOM.

?

In this case, Autoplot will trigger off the .xslt extension to invoke its handling code. I would also suggest a couple of special named parameters, as with Autoplot URIs:

resourceURL is the name of a file to be transformed that is not a .vap file.
arg_i be the ith unnamed argument.

Examples

http://autoplot.org/data/autoplot.vap?xslt=http://autoplot.org/data/text.xslt&title='My+data"

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