Skip to content

Commit

Permalink
some more spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
navidcy committed Feb 16, 2024
1 parent 5bff30f commit 41b9f6f
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 24 deletions.
29 changes: 15 additions & 14 deletions demos/access_om2-forced.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -706,8 +706,8 @@
" '/g/data/ik11/inputs/GEBCO_2022/GEBCO_2022.nc',\n",
" {\"xh\": \"lon\",\n",
" \"yh\": \"lat\",\n",
" \"elevation\":\"elevation\"}, ## Again this dictionary just maps mom6 variable names to what they are in your topog.\n",
" minimum_layers = 1 ## Minimum number of layers allowed. Any areas with fewer layers are marked as land\n",
" \"elevation\": \"elevation\"}, ## Again this dictionary just maps mom6 variable names to what they are in your topog.\n",
" minimum_layers = 1 ## Minimum number of layers allowed. Any areas with fewer layers are marked as land\n",
" )"
]
},
Expand Down Expand Up @@ -768,26 +768,27 @@
"outputs": [],
"source": [
"# Define a mapping from the MOM5 B grid variables and dimensions to the MOM6 C grid ones\n",
"ocean_varnames = {\"time\": \"time\",\n",
" \"yh\": \"yt_ocean\",\n",
" \"xh\": \"xt_ocean\",\n",
" \"xq\": \"xu_ocean\",\n",
" \"yq\": \"yu_ocean\",\n",
" \"zl\": \"st_ocean\",\n",
" \"eta\": \"eta_t\",\n",
" \"u\": \"u\",\n",
" \"v\": \"v\",\n",
" \"tracers\": {\"salt\": \"salt\", \"temp\": \"temp\"}}\n",
"ocean_varnames = {\"time\": \"time\",\n",
" \"yh\": \"yt_ocean\",\n",
" \"xh\": \"xt_ocean\",\n",
" \"xq\": \"xu_ocean\",\n",
" \"yq\": \"yu_ocean\",\n",
" \"zl\": \"st_ocean\",\n",
" \"eta\": \"eta_t\",\n",
" \"u\": \"u\",\n",
" \"v\": \"v\",\n",
" \"tracers\": {\"salt\": \"salt\", \"temp\": \"temp\"}\n",
" }\n",
"\n",
"# Set up the initial condition\n",
"expt.initial_condition(\n",
" tmpdir, # The directory where the unprocessed initial condition is stored, as definied earlier\n",
" tmpdir, # The directory where the unprocessed initial condition is stored, as definied earlier\n",
" ocean_varnames,\n",
" gridtype=\"B\"\n",
" )\n",
"\n",
"# Now iterate through our four boundaries \n",
"for i,orientation in enumerate([\"south\", \"north\", \"west\", \"east\"]):\n",
"for i, orientation in enumerate([\"south\", \"north\", \"west\", \"east\"]):\n",
" expt.rectangular_boundary(\n",
" tmpdir / (orientation + \"_unprocessed.nc\"),\n",
" ocean_varnames,\n",
Expand Down
18 changes: 8 additions & 10 deletions demos/reanalysis-forced.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -226,15 +226,13 @@
"source": [
"# Define a mapping from the GLORYS variables and dimensions to the MOM6 ones\n",
"ocean_varnames = {\"time\": \"time\",\n",
" \"y\": \"latitude\",\n",
" \"x\":\" longitude\",\n",
" \"zl\": \"depth\",\n",
" \"eta\": \"zos\",\n",
" \"u\": \"uo\",\n",
" \"v\": \"vo\",\n",
" \"tracers\": {\"salt\": \"so\",\n",
" \"temp\": \"thetao\"\n",
" }\n",
" \"y\": \"latitude\",\n",
" \"x\":\" longitude\",\n",
" \"zl\": \"depth\",\n",
" \"eta\": \"zos\",\n",
" \"u\": \"uo\",\n",
" \"v\": \"vo\",\n",
" \"tracers\": {\"salt\": \"so\", \"temp\": \"thetao\"}\n",
" }\n",
"\n",
"# Set up the initial condition\n",
Expand All @@ -245,7 +243,7 @@
" )\n",
"\n",
"# Now iterate through our four boundaries \n",
"for i,orientation in enumerate([\"south\", \"north\", \"west\", \"east\"]):\n",
"for i, orientation in enumerate([\"south\", \"north\", \"west\", \"east\"]):\n",
" expt.rectangular_boundary(\n",
" glorys_path / (orientation + \"_unprocessed.nc\"),\n",
" ocean_varnames,\n",
Expand Down

0 comments on commit 41b9f6f

Please sign in to comment.