Skip to content

Commit

Permalink
Undo unit conversion - that doesn't go here
Browse files Browse the repository at this point in the history
  • Loading branch information
Dobson committed Jan 26, 2024
1 parent 3eb965d commit dc6040a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions swmmanywhere/prepare_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,7 @@ def download_precipitation(bbox: tuple[float, float, float, float],
with xr.open_dataset('download.nc') as data:
# Convert the xarray Dataset to a pandas DataFrame
df = data.to_dataframe()
df['precipitation'] *= 1000
df['unit'] = 'mm/hr'
df['unit'] = 'm/hr'


# Delete nc file
Expand Down

0 comments on commit dc6040a

Please sign in to comment.