PLOTMASTER

This function accepts from 1 to 10 structures of the type returned by READ_MYCDF and XREAD_MYCDF, determines the plot type for each variable in each of the structures, and plots it. Returns a 0 if plotting was successful, and a -1 if unsuccessful.

Calling Sequence

Result = PLOTMASTER(astruct1,[astruct2...astruct10])

Arguments

astruct

A structure returned by the READ_MYCDF or XREAD_MYCDF functions.

Keywords

XSIZE

The width of the plot (in pixels). Default for GIF file is 640, default for x-windows is 90% of the screen resolution.

PANEL_HEIGHT

The height of each panel (in pixels). Default is 100 pixels.

TSTART

String of the form '1996/01/02 12:00:00' or a DOUBLE CDF_EPOCH time that is the desired start time of the plots. Data is clipped or padded to conform to this time. Default is the start time of the earliest data.

TSTOP

String of the form '1996/01/02 12:00:00' or a DOUBLE CDF_EPOCH time that is the desired stop time of the plots. Data is clipped or padded to conform to this time. Default is the stop time of the latest data.

GIF

Set to create a gif file named 'idl.gif' instead of an x-windows plot. Set to a string to create a gif file with a particular name, ex. GIF='rick.gif'. Default is to produce an x-window.

AUTO

Set this keyword to use autoscaling instead of SCALEMIN and SCALEMAX. The scales will be set to the min and max values of the data, after fill values have been filtered from the data.

COMBINE

Set this keyword to ATTEMPT to force all time series and spectrograms to be plotted into a single x-window or GIF file. Default is to plot each structure in its own x-window/GIF file. PLOTMASTER may override this keyword if the plots cannot fit into the limited space of an x-window.

CDAWEB

Set this keyword to force the margin on the right side of time series plots to be 100 pixels. This is the same margin used for spectrograms for the color bar. By default, PLOTMASTER will examine the data, and if ANY spectrograms will be produced, then it will align the margins properly.

SLOW

Set this keyword to have spectrogram plotted using the POLYFILL method. This method is slower but more accurate than TV.

SMOOTH

Set this keyword to have spectrogram data reduced prior to plotting. This will increase plotting speed significantly.

QUICK

Set this keyword to have spectrograms plotted using the TV method. This method is very fast, but will produce inaccurate spectrograms if scales are non-linear or if fill data or data gaps are present in the data.

DEBUG

Set this keyword to turn on some progress messages.

Example

a=xread_mycdf()
status=plotmaster(a,xsize=500,GIF='rick.gif',/AUTO)

Return to CDFplot