CDAWEB.php 622 Bytes
<?php
/**
 * @class CDAWEB 
 * @brief  
 */

class CDAWEB extends RemoteDataCenterClientClass
{ 
      
	protected function dataset2dd($id)
	{
		return $id; 
	}
	
	public function getParamSize()
	{
	  $cmd = "ncinfo_remote ".RemoteData.$this->baseID."/".$this->infoFile." ".$this->ParamId;
	  $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 setInfoFile()
	{
		$this->infoFile = strtolower($this->ViId).".nc";	
	}
}