hapiplotserver-0.0.7b0
Plot data from a HAPI server using the hapiplot
function in hapiclient
Source: http://github.com/hapi-server/plotserver-python
server
A URL to a HAPI server (must end in /hapi
)id
A dataset IDparameters
A parameter in the dataset. At present, PARAMETERS
can only be a single parametertime.min
Start time for plottime.max
End time for plotformat
[png
], svg
, pdf
, or gallery
transparent
[true
] or false
Make background transparent (results in smaller png files)usedatacache
[true
] or false
If true, use cached data if availableusecache
[true
] or false
If true and usedatacache=true, serve cached image if availablefigsize
[7,3
] image size in inchesdpi
[144
] dpi of image (ignored if format
is not png
)format
= png
, svg
, and pdf
Returns an image of PARAMETERS
in dataset ID
plotted over the timerange START/STOP
.
id
, parameters
, time.min
, and time.max
are required.
Usage
?server=HAPIURL&id=ID¶meters=PARAMETERS&time.max=START&time.min=STOP
Examples
format
= gallery
Generates a ViViz image gallery for a dataset.
id
is required if format
= gallery
parameters
is not given, drop-down includes all parameters.time.min
and/or time.max
can be specified to constrain time range of images that can be viewed from default of full time range of available data.Usage
?server=HAPIURL&id=ID&format=gallery
?server=HAPIURL&id=ID¶meters=PARAMETERS&format=gallery
?server=HAPIURL&id=ID¶meters=PARAMETERS&time.max=START&time.min=STOP&format=gallery
Examples