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 or dataset
A dataset IDparameters
A parameter in the dataset. At present, PARAMETERS
can only be a single parametertime.min or start
Start time for plottime.max or stop
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
(or dataset
), parameters
, time.min
(or start
), and time.max
(or stop
) are required.
Usage
?server=HAPIURL&start=ID¶meters=PARAMETERS&start=START&stop=STOP
Examples
format
= gallery
Generates a ViViz image gallery for a dataset.
id
(or dataset
) is required if format
= gallery
parameters
is not given, drop-down includes all parameters.time.min
(or start
) and/or time.max
(or stop
) 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&dataset=ID&format=gallery
?server=HAPIURL&dataset=ID¶meters=PARAMETERS&format=gallery
?server=HAPIURL&dataset=ID¶meters=PARAMETERS&start=START&stop=STOP&format=gallery
Examples
hapiplotserver-0.1.4
, hapiplot-0.2.3b0
, hapiclient-0.2.6b1
, and python-3.7.16