Skip to content

Commit

Permalink
Sorts the list of FLUXNET csv files returned from glob. (#2836)
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielAdriaansen authored Dec 16, 2024
1 parent eec37af commit d19d396
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ def get_season_start_end(s,refdate):
sys.exit(1)
else:
fn_file_list = glob.glob(os.path.join(fndir,FILENAME_PATTERN))
fn_file_list.sort()
fn_stations = [os.path.basename(x).split('_')[1] for x in fn_file_list]
if fn_stations == []:
print("ERROR! NO FLUXNET DATA FOUND MATCHING FILE PATTERN "+FILENAME_PATTERN)
Expand Down

0 comments on commit d19d396

Please sign in to comment.