Skip to content

Commit

Permalink
Fixed bug with PVDD data indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
KYSIEMENS committed May 23, 2024
1 parent cb40616 commit 80a6f89
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion discharge_obs_pd.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,8 @@ def write_PVDD(prov_Q_path,prov_H_path):
stn_H = H_data[H_data.iloc[:,1]==stn]
stn_Q.index = stn_Q.iloc[:,0]
stn_H.index = stn_H.iloc[:,0]
stn_data = pd.concat([stn_Q,stn_H],axis=1)
#stn_data = pd.concat([stn_Q,stn_H],axis=1)
stn_data = pd.merge(stn_Q,stn_H,left_index=True,right_index=True,how='outer')
stn_data.loc[:,"Time_PST"] = pd.to_datetime(stn_data.index).copy().tz_localize('UTC').tz_convert('US/Pacific').tz_localize(None)
stn_data.loc[:,"id"] = stn
output = stn_data.loc[:,["id","Time_PST","Stage","Discharge"]]
Expand Down

0 comments on commit 80a6f89

Please sign in to comment.