CDAWEB.php 1.39 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 checkParamIsReal()
	{
	  $cmd = "ncinfo_remote ".RemoteData.$this->baseID."/".$this->infoFile." ".$this->ParamId." 4";
	  $res = shell_exec($cmd);
	   
	  return $res;
	}
	
	public function checkIsSpectra()
	{
	  $cmd = "ncinfo_remote ".RemoteData.$this->baseID."/".$this->infoFile." ".$this->ParamId." 5";
	  $res = shell_exec($cmd);
	   
	  return $res;
	}
	
	public function setInfoFile()
	{
		$this->infoFile = strtolower($this->ViId).".nc";	
	}
}
?>