Skip to content
Snippets Groups Projects
Commit 8c1d1757 authored by Anne Philipp's avatar Anne Philipp
Browse files

sorted filelist for doubling ens files

parent 44174de3
No related branches found
No related tags found
No related merge requests found
......@@ -1790,6 +1790,7 @@ class EcFlexpart(object):
# get a list of all prepared output files with control forecast (CF)
CF_filelist = UioFiles(path, prefix + '*.N000')
CF_filelist.files = sorted(CF_filelist.files)
for cffile in CF_filelist.files:
with open(cffile, 'rb') as f:
......@@ -1803,7 +1804,6 @@ class EcFlexpart(object):
filename = cffile.split('N000')[0]
for i in range(1, maxnum + 1):
# read an ensemble member
g = open(filename + 'N{:0>3}'.format(i), 'rb')
# create file for newly calculated ensemble member
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment