Skip to content

Commit

Permalink
Update SOAP2ArchiveCSV.py
Browse files Browse the repository at this point in the history
force python 3.10 and pandas 2.0 requirements
  • Loading branch information
shaunwbell committed Aug 20, 2024
1 parent e9d0438 commit 668b547
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SOAP2ArchiveCSV.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 668b547

Please sign in to comment.