Commit c9ab9b8d233d16c76f6c51838461c7a18346d4ed
1 parent
dd534f05
Exists in
master
bugFix #5376 getcdf problem with MARS.MOONS dataset id
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
converter/get_cdf.php
... | ... | @@ -14,7 +14,7 @@ if (!$_GET['id']) { |
14 | 14 | |
15 | 15 | require_once './DDserverWeb_ini.php'; |
16 | 16 | |
17 | -$name = preg_replace('/\..*/', '', $_GET['id']); // ie. ACE/SW/sw19980204 | |
17 | +$name = preg_replace('/(.*\/.*\/.*)(\..*)/', '${1}', $_GET['id']); // ie. ACE/SW/sw19980204 | |
18 | 18 | $inputFilePath = baseDir . $name . '.nc.gz'; // ie. /data/DDBASE/DATA/ACE/SW/sw19980204.nc.gz |
19 | 19 | $outputFilePath = $tmpDir . str_replace('/', '_', $name) . '.cdf'; // ie. /tmp/ACE_SW_sw19980204.cdf |
20 | 20 | ... | ... |