Skip to content
Snippets Groups Projects
Commit f0dedeb2 authored by Anne Tipka's avatar Anne Tipka
Browse files

solved bug from Ticket #297

parent 697b8d00
No related branches found
No related tags found
No related merge requests found
...@@ -510,7 +510,11 @@ class MarsRetrieval(object): ...@@ -510,7 +510,11 @@ class MarsRetrieval(object):
newattrs['area'] = attrs['area'].split('/') newattrs['area'] = attrs['area'].split('/')
newattrs['grid'] = list(map(float,attrs['grid'].split('/'))) newattrs['grid'] = list(map(float,attrs['grid'].split('/')))
newattrs['param'] = attrs['param'].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' newattrs['format'] = 'grib'
return newattrs return newattrs
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment