Skip to content

Commit

Permalink
Fixed ICARTT code. Filtering still dubious d/t anomalies in the merge…
Browse files Browse the repository at this point in the history
…d data.
  • Loading branch information
jsschlosser committed Oct 7, 2024
1 parent 7dcf889 commit dcdc558
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ISARA_ACTIVATE_Data_Retrieval.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@ def curry(i1):
return curry

#DN = input("Enter directory name with merged in-situ data\ne.g., ACTIVATE/FalconSMPS:\n")
IFN = [f for f in os.listdir(r'./misc/ACTIVATE/InSituData/') if f.endswith('.ict')]
for input_filename in IFN:#[26:]:#
IFN = np.array([f for f in os.listdir(r'./misc/ACTIVATE/InSituData/') if f.endswith('.ict')]).astype(str)
for input_filename in IFN[26:]:#:#
print(input_filename)
# import the .ict data into a dictonary
(output_dict, time, date, alt, lat, lon, sd1, sd2, RH_amb, RH_sp, Sc,
Expand Down
2 changes: 1 addition & 1 deletion importICARTT.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def imp(filename, num_time_columns):
for i1 in np.arange(0,len(rawdata)).reshape(-1):
processdata1 = rawdata[i1]
processdata2 = np.array(processdata1.split(",")).astype(float)
for i2 in np.arange(len(processdata2)-1):
for i2 in np.arange(0,len(processdata2)-1):
if not processdata2[i2]:
processdata2[i2] = np.nan
elif processdata2[i2] == fv[i2]:
Expand Down

0 comments on commit dcdc558

Please sign in to comment.