Skip to content

Commit

Permalink
WIP - script for reading and computing AOT from AERONET avoiding usle…
Browse files Browse the repository at this point in the history
…ss dependencies
  • Loading branch information
RobiFag committed Jun 29, 2018
1 parent 568164e commit d32803c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions read_aeronet_manually.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@
columns = []
m_time = []
dates_list = []
columns = []
t_columns = []
i_col = []
coll = []
wl = []


for row in file(file_name): # reading file from line 4
count+=1
if count==4:
Expand Down Expand Up @@ -53,19 +55,21 @@
print timedelta
print dates.index(closest)

count=0
for row in file(file_name): # reading file from line 4
count+=1
if count==4:
columns = row.split(',')
for i, col in enumerate(columns):
t_columns = row.split(',')
for i, col in enumerate(t_columns):
if "AOT_" in col:
i_col.append(i)
coll.append(col)
for line in coll:
l = line.split('_')
wl.append(int(l[1]))
print wl

print i_col,coll
print wl

aot_req = 550
upper = min([ i for i in wl if i >= aot_req], key=lambda x:abs(x-aot_req))
Expand Down

0 comments on commit d32803c

Please sign in to comment.