Autoplot Interface

From SPEDAS Wiki
Jump to: navigation, search
Mms data in autoplot.png

SPEDAS supports sending tplot variables to Autoplot using the command tplot2ap.


Getting Started

For this feature to work, you'll need to open Autoplot (by clicking "Start Autoplot" on and enable the 'Server' feature via the 'Options' menu with the default port (12345). Depending on your firewall settings, you may also need to allow Autoplot to listen for TCP/IP connections on this port.

SPEDAS to Autoplot

Ae tplot variable in autoplot.png

To send tplot data to Autoplot, simply use the tplot2ap command as you would use the tplot command, e.g.

IDL> kyoto_load_ae, trange=['2015-12-15', '2015-12-16']
IDL> tplot2ap, 'kyoto_ae'

Autoplot to SPEDAS

Support is being added for retrieving data from Autoplot windows via the ap2tplot command; check back for updates soon!

More Examples

You can find more examples of using tplot2ap in the SPEDAS distribution at:


Clearing the Cache

The tplot2ap routine uses temporary CDF files to send data to Autoplot. These files are stored in the 'autoplot' folder in your default local data directory. With heavy usage, these files can take up a lot of your hard drive space, so you may want to delete the files in this folder from time to time; you can do this with the /clear_cache command to tplot2ap (make sure Autoplot is closed and your IDL session has been reset prior to attempting to clear the cache).

IDL> tplot2ap, /clear_cache
Personal tools