443
* Print the JHelioviewer module's documentation header
447
public static function printDocHeader() {
450
<a href="index.php#JPEG2000API">JPEG 2000</a>
452
<li><a href="index.php#getJP2Image">Retrieving a JPEG 2000 Image</a></li>
453
<li><a href="index.php#getJPX">Creating a JPX Movie</a></li>
460
* Print JHelioviewer module documentation
464
public static function printDoc() {
466
<!-- JPEG 2000 API -->
467
<div id="JPEG2000API">
468
<h1>JPEG 2000 API:</h1>
469
<p>Helioviewer's JPEG 2000 API's enable access to the raw JPEG
470
2000 images used to generate the tiles seen on the site, as well
471
as real-time generation of JPEG 2000 Image Series (JPX).</p>
472
<ol style="list-style-type: upper-latin;">
473
<!-- JPEG 2000 Image API -->
475
<div id="getJP2Image">JP2 Images:
476
<p>Returns a single JPEG 2000 (JP2) image. If an image is not
477
available for the date request the closest available image is
482
<div class="summary-box"><span
483
style="text-decoration: underline;">Usage:</span><br />
486
<?php echo HV_API_ROOT_URL; ?>?action=getJP2Image<br />
489
Supported Parameters:<br />
492
<table class="param-list" cellspacing="10">
495
<td width="25%"><b>observatory</b></td>
496
<td width="35%"><i>String</i></td>
500
<td><b>instrument</b></td>
501
<td><i>String</i></td>
505
<td><b>detector</b></td>
506
<td><i>String</i></td>
510
<td><b>measurement</b></td>
511
<td><i>String</i></td>
516
<td><i>ISO 8601 UTC Date</i></td>
517
<td>Observation date and time</td>
520
<td><b>sourceId</b></td>
521
<td><i>Integer</i></td>
522
<td><i>[Optional]</i> The image source ID (can be
523
used in place of observatory, instrument, detector
524
and measurement parameters).</td>
528
<td><i>Boolean</i></td>
529
<td><i>[Optional]</i> Returns a JPIP URI instead
530
of an actual image.</td>
537
<span class="example-header">Examples:</span>
538
<span class="example-url">
539
<a href="<?php echo HV_API_ROOT_URL; ?>?action=getJP2Image&observatory=SOHO&instrument=EIT&detector=EIT&measurement=171&date=2003-10-05T00:00:00Z">
540
<?php echo HV_API_ROOT_URL; ?>?action=getJP2Image&observatory=SOHO&instrument=EIT&detector=EIT&measurement=171&date=2003-10-05T00:00:00Z
543
<span class="example-url">
544
<a href="<?php echo HV_API_ROOT_URL; ?>?action=getJP2Image&observatory=SOHO&instrument=LASCO&detector=C2&measurement=white-light&date=2003-10-05T00:00:00Z&jpip=true">
545
<?php echo HV_API_ROOT_URL; ?>?action=getJP2Image&observatory=SOHO&instrument=LASCO&detector=C2&measurement=white-light&date=2003-10-05T00:00:00Z&jpip=true
556
<div id="getJPX">JPX API
557
<p>Returns a JPEG 2000 Image Series (JPX) file. The movie
558
frames are chosen by matching the closest image available at
559
each step within the specified range of dates.</p>
563
<div class="summary-box"><span style="text-decoration: underline;">Usage:</span><br />
567
<?php echo HV_API_ROOT_URL; ?>?action=getJPX<br />
570
Supported Parameters:<br />
573
<table class="param-list" cellspacing="10">
576
<td width="20%"><b>observatory</b></td>
577
<td width="20%"><i>String</i></td>
581
<td><b>instrument</b></td>
582
<td><i>String</i></td>
586
<td><b>detector</b></td>
587
<td><i>String</i></td>
591
<td><b>measurement</b></td>
592
<td><i>String</i></td>
596
<td><b>startTime</b></td>
597
<td><i>ISO 8601 UTC Date</i></td>
598
<td>Movie start time</td>
601
<td><b>endTime</b></td>
602
<td><i>ISO 8601 UTC Date</i></td>
603
<td>Movie end time</td>
606
<td><b>cadence</b></td>
607
<td><i>Integer</i></td>
608
<td><i>[Optional]</i> The desired amount of time
609
between each movie-frame, in seconds. If no
610
cadence is specified, the server will attempt to
611
select an optimal cadence.</td>
614
<td><b>sourceId</b></td>
615
<td><i>Integer</i></td>
616
<td><i>[Optional]</i> The image source ID (can be
617
used in place of observatory, instrument, detector
618
and measurement parameters).</td>
621
<td><b>verbose</b></td>
622
<td><i>Boolean</i></td>
623
<td><i>[Optional]</i> In addition to the JPX file
624
URI, timestamps for each frame in the resulting
625
movie and any warning messages generated are
626
included in a JSON response.</td>
630
<td><i>Boolean</i></td>
631
<td><i>[Optional]</i> Returns a JPIP URI instead
632
of an actual movie.</td>
635
<td><b>linked</b></td>
636
<td><i>Boolean</i></td>
637
<td><i>[Optional]</i> Returns a linked JPX file
638
containing image pointers instead of data for each
639
individual frame in the series. Currently, only
640
JPX image series support this feature.</td>
648
The default action is to simply return the requested JPX file.
649
If additional information is needed, for example, then a JSON
650
result will be returned with the file URI plus any additional
651
parameters requested.
654
<!-- Return parameter description -->
655
<table class="param-list" cellspacing="10">
658
<td width="20%"><b>uri</b></td>
659
<td width="20%"><i>String</i></td>
660
<td><i>[Optional]</i> Location of the requested
664
<td><b>frames</b></td>
666
<td><i>[Optional]</i> List of timestamps.</td>
669
<td><b>error</b></td>
670
<td><i>String</i></td>
671
<td><i>[Optional]</i> Any fatal error messages
672
generated during the request</td>
675
<td><b>warning</b></td>
676
<td><i>String</i></td>
677
<td><i>[Optional]</i> Any non-fatal warning
678
messages generated during the request</td>
685
<span class="example-header">Examples:</span>
686
<span class="example-url">
687
<a href="<?php echo HV_API_ROOT_URL; ?>?action=getJPX&observatory=SOHO&instrument=EIT&detector=EIT&measurement=171&startTime=2003-10-05T00:00:00Z&endTime=2003-10-20T00:00:00Z">
688
<?php echo HV_API_ROOT_URL; ?>?action=getJPX&observatory=SOHO&instrument=EIT&detector=EIT&measurement=171&startTime=2003-10-05T00:00:00Z&endTime=2003-10-20T00:00:00Z
691
<span class="example-url">
692
<a href="<?php HV_API_ROOT_URL; ?>?action=getJPX&observatory=SOHO&instrument=MDI&detector=MDI&measurement=magnetogram&startTime=2003-10-05T00:00:00Z&endTime=2003-10-20T00:00:00Z&cadence=3600&linked=true&jpip=true">
693
<?php echo HV_API_ROOT_URL; ?>?action=getJPX&observatory=SOHO&instrument=MDI&detector=MDI&measurement=magnetogram&startTime=2003-10-05T00:00:00Z&endTime=2003-10-20T00:00:00Z&cadence=3600&linked=true&jpip=true
700
<!-- getJPX API Notes -->
701
<div class="summary-box" style="background-color: #E3EFFF;">
702
<span style="text-decoration: underline;">Notes:</span>
708
<p>If no cadence is specified Helioviewer.org attempts to
709
choose an optimal cadence for the requested range and data
b'\\ No newline at end of file'