From c786baa392dcff0a337203d27c2db0dbc1469489 Mon Sep 17 00:00:00 2001 From: zarzycki Date: Thu, 20 Jun 2024 16:59:02 +0200 Subject: [PATCH 1/2] small tweaks to auto mesh gen code --- grids/gen-mesh.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/grids/gen-mesh.sh b/grids/gen-mesh.sh index c818dd5..c5a02b4 100755 --- a/grids/gen-mesh.sh +++ b/grids/gen-mesh.sh @@ -1,9 +1,10 @@ #!/bin/bash -l -BASERES=48 -REFINE_LEVEL=2 -#BASERES=128 -#REFINE_LEVEL=3 +#BASERES=48 +#REFINE_LEVEL=2 +BASERES=192 +REFINE_LEVEL=3 +PHYSGRID=2 SQUADGEN=~/Software/squadgen/ # Define from outer to inner @@ -51,8 +52,8 @@ do GRIDNAME=TClandfall-${MESH_ID}_ne${BASERES}x${REFINE_FACTOR} ${SQUADGEN}/SQuadGen --output ${GRIDNAME}.g --refine_rect ${REFINE_RECT_STR} --refine_level ${REFINE_LEVEL} --lat_ref ${LATCENTER} --lon_ref ${LONCENTER} --resolution ${BASERES} --orient_ref -3 --smooth_type SPRING - GenerateVolumetricMesh --in ${GRIDNAME}.g --out ${GRIDNAME}_pg2.g --np 2 --uniform - ConvertMeshToSCRIP --in ${GRIDNAME}_pg2.g --out ${GRIDNAME}_pg2_scrip.nc + GenerateVolumetricMesh --in ${GRIDNAME}.g --out ${GRIDNAME}_pg${PHYSGRID}.g --np ${PHYSGRID} --uniform + ConvertMeshToSCRIP --in ${GRIDNAME}_pg${PHYSGRID}.g --out ${GRIDNAME}_pg${PHYSGRID}_scrip.nc ncl gridplot.ncl 'gridfile="'${GRIDNAME}'.g"' From e905c6b8988f7ad3fc071ace9200a4a61e405eb4 Mon Sep 17 00:00:00 2001 From: zarzycki Date: Thu, 20 Jun 2024 16:59:30 +0200 Subject: [PATCH 2/2] fix typo in plot-points --- grids/plot-points.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grids/plot-points.py b/grids/plot-points.py index 8967aa7..bdaac7d 100644 --- a/grids/plot-points.py +++ b/grids/plot-points.py @@ -2,7 +2,7 @@ import cartopy.feature as cfeature import matplotlib.pyplot as plt import pandas as pd -x + column_names = ['label', 'longitude', 'latitude'] df = pd.read_csv('tc_mesh_centers.csv', names=column_names)