Skip to content

Commit

Permalink
remove scale_factor index due to h5netcdf update
Browse files Browse the repository at this point in the history
  • Loading branch information
jarq6c committed Mar 17, 2022
1 parent 7747a67 commit c0c158c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/nwm_client/src/hydrotools/nwm_client/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ def get_DataFrame(
df = ds[['reference_time', 'time', 'streamflow']].to_dataframe().reset_index()

# Extract scale factor
scale_factor = ds['streamflow'].scale_factor[0]
scale_factor = ds['streamflow'].scale_factor

# Scale data
df.loc[:, 'streamflow'] = df['streamflow'].mul(scale_factor)
Expand Down

0 comments on commit c0c158c

Please sign in to comment.