From 327fe4f7915f8ab197b828bd76da517ea2389908 Mon Sep 17 00:00:00 2001 From: Joel Fiddes Date: Wed, 14 Aug 2024 16:34:10 +0200 Subject: [PATCH] fixed topo_sim issue of returning lon or lat vectors that ere one pixel out --- TopoPyScale/sim_fsm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TopoPyScale/sim_fsm.py b/TopoPyScale/sim_fsm.py index 549bcb1..0c6656b 100644 --- a/TopoPyScale/sim_fsm.py +++ b/TopoPyScale/sim_fsm.py @@ -769,7 +769,7 @@ def topo_map_sim(ds_var, n_decimals=2, dtype='float32', new_res=None): # resampling=Resampling.nearest # ) - # return coords of resampled grid here (this does not preserve dimensions perfectly (can be 1pix out)) + # return coords of resampled grid here (this does not preserve dimensions perfectly (can be 1pix out)) -FIXED! array = src.read() min_E, min_N, max_E, max_N = src.bounds # lons = np.arange(min_E, max_E, src.res[0])