Commit 58e288ebb9c93500b3b116553375d8cf49815764

Authored by Elena.Budnik
1 parent a40a1db1

correct CDF sampling

Showing 1 changed file with 3 additions and 3 deletions   Show diff stats
php/RemoteDataCenter/ImpexParamManager.php
@@ -338,12 +338,12 @@ class ImpexParamManager @@ -338,12 +338,12 @@ class ImpexParamManager
338 $filesMgr->setFileName($localFile); 338 $filesMgr->setFileName($localFile);
339 339
340 $varInfo = $filesMgr->getCdfVarInfo($this->parameterKey); 340 $varInfo = $filesMgr->getCdfVarInfo($this->parameterKey);
341 - $varSampling = $filesMgr->getCdfSampling(); 341 + $varSampling = $filesMgr->getCdfSampling();
342 342
343 $res["param"]["info"]["realVar"] = $this->parameterKey; 343 $res["param"]["info"]["realVar"] = $this->parameterKey;
344 $res["param"]["info"]["type"] = $varInfo['type']; 344 $res["param"]["info"]["type"] = $varInfo['type'];
345 - $res["param"]["info"]["minSampling"] = $varSampling[4];  
346 - $res["param"]["info"]["maxSampling"] = $varSampling[4]; 345 + $res["param"]["info"]["minSampling"] = $varSampling[2];
  346 + $res["param"]["info"]["maxSampling"] = $varSampling[2];
347 $res["param"]["info"]["plotType"] = "Spectro"; 347 $res["param"]["info"]["plotType"] = "Spectro";
348 $res["param"]["info"]["size"] = $varInfo['size']; 348 $res["param"]["info"]["size"] = $varInfo['size'];
349 } 349 }