From 1a9094af3c562fbc04939d25f5ee27ff4b163f4c Mon Sep 17 00:00:00 2001 From: Steven Brus Date: Mon, 23 Mar 2020 12:14:10 -0600 Subject: [PATCH] Fix bug in pointwiseStats locations for Sandy cases - Add missing +1 offset to cell IDs used in the points.nc file generated in the init step of the hurricane Sandy cases. --- .../compass/ocean/hurricane/create_pointstats_file.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing_and_setup/compass/ocean/hurricane/create_pointstats_file.py b/testing_and_setup/compass/ocean/hurricane/create_pointstats_file.py index d89a72bf49..2ff6700611 100644 --- a/testing_and_setup/compass/ocean/hurricane/create_pointstats_file.py +++ b/testing_and_setup/compass/ocean/hurricane/create_pointstats_file.py @@ -76,7 +76,7 @@ def create_pointstats_file(mesh_file,stations_files): pnt_ids = data_nc.createVariable('pointCellGlobalID',np.int32,(npts,)) # Set variables - pnt_ids[:] = idx[:] + pnt_ids[:] = idx[:]+1 data_nc.close() ######################################################################################