Commit 91892b01336699fe628b5dfb21c9025abdbd8d43

Authored by Elena.Budnik
1 parent 7847200d

netcdf4 x-hdf

Showing 1 changed file with 3 additions and 3 deletions   Show diff stats
php/classes/FilesMgr.php
... ... @@ -209,7 +209,7 @@ class FilesMgr extends AmdaObjectMgr
209 209 if ($result[0] < 0)
210 210 return $result[0];
211 211 $varsArr = explode("#",$result[0]);
212   -
  212 +
213 213 return $varsArr;
214 214 }
215 215  
... ... @@ -757,8 +757,8 @@ class FilesMgr extends AmdaObjectMgr
757 757 return "vot";
758 758 }
759 759  
760   - // check binary at different machines - if it works.....
761   - if (strpos($file_info[0],"octet-stream") !== false)
  760 + // netcdf4 - application/x-hdf
  761 + if (strpos($file_info[0],"octet-stream") !== false || strpos($file_info[0],"x-hdf") !== false)
762 762 {
763 763 if (strpos($ext,"cdf") !== false) return "cdf";
764 764 if (strpos($ext,"nc") !== false) return "nc";
... ...