Skip to content

developer.applot

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

Audience: IDL users wishing to plot data in Autoplot from IDL.

Introduction

The IDL program applot is intended to allow autoplot to replace many cases where IDL's plot command would be used. The goal is that

IDL> plot, x, y

would be replaced with

IDL> applot, x, y

and the data is packed up and sent over to Autoplot for plotting. This plot in Autoplot is then interactive and avoids disturbing IDL's state.

Here is the script which should be run in IDL: https://svn.code.sf.net/p/autoplot/code/autoplot/trunk/VirboAutoplot/src/external/applot.pro. This should be downloaded and compiled in the IDL session. Autoplot is then started, and it's server enabled using Options->Enable Feature->Server, and use the default port 12345.

Example

Unix&gt;&nbsp;wget&nbsp;<https://autoplot.svn.sourceforge.net/svnroot/autoplot/autoplot/trunk/VirboAutoplot/src/external/applot.pro>

Unix> idl
IDL> .comp applot
IDL> ; ensure that the server mode is enabled on Autoplot via [menubar]->Options->Enable Feature->Server
IDL> applot, dist(200)
IDL> applot, findgen(200), sin(findgen(200))
IDL> applot, findgen(200), sin(findgen(200)), xunits='seconds since 2001-011T00:00'

Discussion

How it works

The script works by saving the data into a das2stream, which is das2/Autoplot's serialized data format, and sending over to Autoplot via the /tmp directory. Autoplot's server is used to tell it to plot the file.

Problems

  • applot.pro has code to start up Autoplot from IDL that should be updated. It assumes Windows and a fixed path for java, and the CLASSPATH variable isn't used.

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