From dc6040a1feff11d13fd7d0a9ee1ae49bbe2a818a Mon Sep 17 00:00:00 2001 From: Dobson Date: Fri, 26 Jan 2024 10:11:51 +0000 Subject: [PATCH] Undo unit conversion - that doesn't go here --- swmmanywhere/prepare_data.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/swmmanywhere/prepare_data.py b/swmmanywhere/prepare_data.py index 02f99e73..951e5f38 100644 --- a/swmmanywhere/prepare_data.py +++ b/swmmanywhere/prepare_data.py @@ -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