Skip to content

Commit

Permalink
Add option to specify the doughnut size in dpsc
Browse files Browse the repository at this point in the history
- Adding a new argument to specify the exlusion factor to determine the
  size of excluded region around the displaced South pole in the
  southern cap subgrid.
- New argument in the form of --exfracdp=Number between 0 and 1
  --exfracdp=0.5 for the OM4 grid
  --exfracdp=0.4 makes the excluded region smaller
  --exfracdp=0.6 makes the excluded region larger
  • Loading branch information
nikizadehgfdl committed Nov 8, 2023
1 parent 4add8f6 commit 790069b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ocean_grid_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -848,7 +848,7 @@ def generate_latlon_grid(lni, lnj, llon0, llen_lon, llat0, llen_lat, ensure_nj_e

def usage():
print(
"ocean_grid_generator.py -f <output_grid_filename> -r <inverse_degrees_resolution> [--rdp=<displacement_factor/0.2> --south_cutoff_ang=<degrees_south_to_start> --south_cutoff_row=<rows_south_to_cut> --match_dy bp so --even_j --plot --write_subgrid_files --enhanced_equatorial --no-metrics --grids=sc]"
"ocean_grid_generator.py -f <output_grid_filename> -r <inverse_degrees_resolution> [--rdp=<displacement_factor/0.2> --exfracdp=0.5 --south_cutoff_ang=<degrees_south_to_start> --south_cutoff_row=<rows_south_to_cut> --match_dy bp so --even_j --plot --write_subgrid_files --enhanced_equatorial --no-metrics --grids=sc]"
)


Expand Down Expand Up @@ -1461,7 +1461,9 @@ def main(

parser.add_argument("--r_dp",type=float,required=False,default=0.0,
help="displacement factor/0.2 for the displaced south pole, do not specify both r_dp and lat_dp!")

parser.add_argument("--exfracdp",type=float,required=False,default=0.49,
help="exclusion factor that determines the size of the hole arount SP!")

parser.add_argument("--lon_dp",type=float,required=False,default=80.0,
help="longitude of the displaced south pole")

Expand Down

0 comments on commit 790069b

Please sign in to comment.