2
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
4
* Image_ImageType_EUVIImage class definition
5
* There is one xxxImage for each type of detector Helioviewer supports.
10
* @package Helioviewer
11
* @author Keith Hughitt <keith.hughitt@nasa.gov>
12
* @license http://www.mozilla.org/MPL/MPL-1.1.html Mozilla Public License 1.1
13
* @link http://launchpad.net/helioviewer.org
15
require_once 'src/Image/HelioviewerImage.php';
17
* Image_ImageType_EUVIImage class definition
18
* There is one xxxImage for each type of detector Helioviewer supports.
23
* @package Helioviewer
24
* @author Keith Hughitt <keith.hughitt@nasa.gov>
25
* @license http://www.mozilla.org/MPL/MPL-1.1.html Mozilla Public License 1.1
26
* @link http://launchpad.net/helioviewer.org
28
class Image_ImageType_EUVIImage extends Image_HelioviewerImage
31
* Creates a new EUVIImage
33
* @param string $jp2 Source JP2 image
34
* @param string $filepath Location to output the file to
35
* @param array $roi Top-left and bottom-right pixel coordinates on the image
36
* @param string $inst Instrument
37
* @param string $det Detector
38
* @param string $meas Measurement
39
* @param int $offsetX Offset of the sun center from the image center
40
* @param int $offsetY Offset of the sun center from the iamge center
41
* @param array $options Optional parameters
45
public function __construct($jp2, $filepath, $roi, $obs, $inst, $det, $meas, $offsetX, $offsetY, $options)
47
$colorTable = HV_ROOT_DIR . "/api/resources/images/color-tables/STEREO_EUVI_$meas.png";
48
$this->setColorTable($colorTable);
49
parent::__construct($jp2, $filepath, $roi, $obs, $inst, $det, $meas, $offsetX, $offsetY, $options);
53
* Gets a string that will be displayed in the image's watermark
55
* @return string watermark name
57
public function getWaterMarkName()
59
$which = substr($this->observatory, -1);
60
return "EUVI-$which $this->measurement\n";