//Extraparam: OutputFormat => netCDF, VOTable
public $outputFormat = "VOTable";
protected function setSimulationRunNodeDescription($runNode,$sr)
{
$coords = $this->getCoordinateSystem($sr->SimulationDomain->CoordinateSystem);
$domain = $this->getRegionBoundaries($sr->SimulationDomain,$sr->RegionParameter);
$properties = $this->getProperties($sr);
$runNode->setAttribute('desc', $coords.$domain.$properties);
}
protected function getProperties($sr)
{
$descUpstream = "
Upstream Conditions:
";
$descInternal = "
Internal Conditions:
";
$inputPopulations = $sr->InputPopulation;
$inputFields = $sr->InputField;
foreach ($inputPopulations as $population)
{
if ($population->SimulatedRegion == "Heliosphere") {
$descUpstream .= "".$population->Name."
";
}
}
foreach ($inputFields as $field)
{
if ($field->SimulatedRegion == "Heliosphere") {
$descUpstream .= "".$field->Name." : ";
$descUpstream .= $field->Units." [".$field->FieldValue."] ".$field->Units."
";
}
}
return $descUpstream;
}
protected function createSpecialArgs($dom)
{
$node = $dom->createElement('argument');
$node->setAttribute('key', 'IMFClockAngle');
$node->setAttribute('name', 'IMF Clock Angle');
$node->setAttribute('type', 'float');
$node->setAttribute('default', '0');
return array($node);
}
}
?>