From 668b547cd55b3a738040c8e4c83b50c5473c5a94 Mon Sep 17 00:00:00 2001 From: shaunwbell Date: Tue, 20 Aug 2024 15:34:22 -0800 Subject: [PATCH] Update SOAP2ArchiveCSV.py force python 3.10 and pandas 2.0 requirements --- SOAP2ArchiveCSV.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SOAP2ArchiveCSV.py b/SOAP2ArchiveCSV.py index d9e3a6f..c78d925 100755 --- a/SOAP2ArchiveCSV.py +++ b/SOAP2ArchiveCSV.py @@ -115,7 +115,7 @@ bd_thinned[out_columns].dropna().to_csv(k + '.y' + year,' ',header=False,index=False,na_rep=np.nan,mode='a') else: out_columns=['platformId','latitude','longitude','year','doy','hhmm','value'] + ['value.'+str(i) for i in range(1,7)] + ['locationClass'] - bd_thinned[out_columns].dropna().to_csv(k + '.y' + year,' ',header=False,index=False,na_rep=np.nan,mode='a') + bd_thinned[out_columns].dropna(subset=['latitude','longitude']).to_csv(k + '.y' + year,' ',header=False,index=False,na_rep=np.nan,mode='a') if args.beaconyearfiles: pb = df.groupby('platformType')