CDAWEB.php 1.02 KB
<?php
/**
 * @class CDAWEB 
 * @brief  
 */

class CDAWEB extends RemoteDataCenterClientClass
{ 
   //public $defaultFillValue = -1.e31;
     
	protected function dataset2dd($id)
	{
		return $id; 
	}
	
	public function getParamSize()
	{
	  $cmd = "ncinfo_remote ".RemoteData.$this->baseID."/".$this->infoFile." ".$this->ParamId." 0";
	  $res = shell_exec($cmd);
	
	  return $res;
	}
	
	public function getParamComponents()
	{
	  $cmd = "ncinfo_remote ".RemoteData.$this->baseID."/".$this->infoFile." ".$this->ParamId." 1";
	  $res = shell_exec($cmd);
	  
	  return $res;
	}
	
	public function getParamUnits()
	{
	  $cmd = "ncinfo_remote ".RemoteData.$this->baseID."/".$this->infoFile." ".$this->ParamId." 2";
	  $res = shell_exec($cmd);
	  
	  return $res;
	}
	
	public function getParamFillValue()
	{
	  $cmd = "ncinfo_remote ".RemoteData.$this->baseID."/".$this->infoFile." ".$this->ParamId." 3";
	  $res = shell_exec($cmd);
	  
	  return $res;
	}
	
	public function setInfoFile()
	{
		$this->infoFile = strtolower($this->ViId).".nc";	
	}
}