From f0dedeb2fc96bdcdfb048304b2305838e3608dd3 Mon Sep 17 00:00:00 2001 From: Anne Tipka <anne.philipp@univie.ac.at> Date: Sun, 20 Feb 2022 15:38:43 +0100 Subject: [PATCH] solved bug from Ticket #297 --- Source/Python/Classes/MarsRetrieval.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Source/Python/Classes/MarsRetrieval.py b/Source/Python/Classes/MarsRetrieval.py index dd97879..f9e824a 100644 --- a/Source/Python/Classes/MarsRetrieval.py +++ b/Source/Python/Classes/MarsRetrieval.py @@ -510,7 +510,11 @@ class MarsRetrieval(object): newattrs['area'] = attrs['area'].split('/') newattrs['grid'] = list(map(float,attrs['grid'].split('/'))) newattrs['param'] = attrs['param'].split('/') - newattrs['time'] = list(map(str,range(0,24,3))) + if '/' in attrs['step']: + sstep = int(attrs['step'].split('/')[4]) + newattrs['time'] = list(map(str,range(0,24,sstep))) + elif '160.128' in attrs['param']: + newattrs['time'] = attrs['time'] newattrs['format'] = 'grib' return newattrs -- GitLab