Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
thopri
PyNEMO
Commits
84b3a171
Commit
84b3a171
authored
5 years ago
by
thopri
Browse files
Options
Download
Email Patches
Plain Diff
nc write now working for tide HC boundary generation
parent
d5bdf5ce
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
inputs/namelist_remote.bdy
inputs/namelist_remote.bdy
+1
-1
pynemo/tide/nemo_bdy_tide3.py
pynemo/tide/nemo_bdy_tide3.py
+4
-1
pynemo/tide/nemo_bdy_tide_ncgen.py
pynemo/tide/nemo_bdy_tide_ncgen.py
+2
-0
No files found.
inputs/namelist_remote.bdy
View file @
84b3a171
...
...
@@ -62,7 +62,7 @@
! baroclinic velocities
ln_tra = .true. ! boundary conditions for T and S
ln_ice = .false. ! ice boundary condition
nn_rimwidth =
9
! width of the relaxation zone
nn_rimwidth =
1
! width of the relaxation zone
!------------------------------------------------------------------------------
! unstructured open boundaries tidal parameters
...
...
This diff is collapsed.
Click to expand it.
pynemo/tide/nemo_bdy_tide3.py
View file @
84b3a171
...
...
@@ -288,7 +288,10 @@ def nemo_bdy_tide_rot(setup, DstCoord, Grid_T, Grid_U, Grid_V, comp,tide_model):
sinv
=
rot_rep
(
sinuY
,
sinvY
,
'v'
,
'en to j'
,
dst_gcos
,
dst_gsin
)
#return the values
return
cosz
,
sinz
,
cosu
,
sinu
,
cosv
,
sinv
cons
=
{}
cons
[
'cos'
]
=
{
'z'
:
cosz
,
'u'
:
cosu
,
'v'
:
cosv
}
cons
[
'sin'
]
=
{
'z'
:
sinz
,
'u'
:
sinu
,
'v'
:
sinv
}
return
cons
def
constituents_index
(
constituents
,
inputcons
):
...
...
This diff is collapsed.
Click to expand it.
pynemo/tide/nemo_bdy_tide_ncgen.py
View file @
84b3a171
...
...
@@ -36,9 +36,11 @@ def CreateBDYTideNetcdfFile(filename, N,I,J,h,fv,grd):
varz1ID
=
ncid
.
createVariable
(
'z1'
,
'f4'
,(
'yb'
,
'xb'
,),
fill_value
=
fv
)
varz2ID
=
ncid
.
createVariable
(
'z2'
,
'f4'
,(
'yb'
,
'xb'
,),
fill_value
=
fv
)
elif
grd
==
'U'
:
varmskID
=
ncid
.
createVariable
(
'bdy_msk'
,
'f4'
,
(
'y'
,
'x'
,),
fill_value
=
fv
)
varu1ID
=
ncid
.
createVariable
(
'u1'
,
'f4'
,(
'yb'
,
'xb'
,),
fill_value
=
fv
)
varu2ID
=
ncid
.
createVariable
(
'u2'
,
'f4'
,(
'yb'
,
'xb'
,),
fill_value
=
fv
)
elif
grd
==
'V'
:
varmskID
=
ncid
.
createVariable
(
'bdy_msk'
,
'f4'
,
(
'y'
,
'x'
,),
fill_value
=
fv
)
varv1ID
=
ncid
.
createVariable
(
'v1'
,
'f4'
,(
'yb'
,
'xb'
,),
fill_value
=
fv
)
varv2ID
=
ncid
.
createVariable
(
'v2'
,
'f4'
,(
'yb'
,
'xb'
,),
fill_value
=
fv
)
else
:
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment