Skip to content

Commit

Permalink
Merge branch 'master' of github.com:zarzycki/betacast
Browse files Browse the repository at this point in the history
  • Loading branch information
zarzycki committed Jul 7, 2024
2 parents 8ec930b + e905c6b commit d3c5c3a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
13 changes: 7 additions & 6 deletions grids/gen-mesh.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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"'

Expand Down
2 changes: 1 addition & 1 deletion grids/plot-points.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit d3c5c3a

Please sign in to comment.