You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi Kaitlin. I believe that I have traced my interpolation error (so-wise/so-wise-gyre#8) to the vertical grid extension in the SOSEGrid class. I thought I should note the issue here as well.
When the SOSE grid is first read in, which occurs in SOSEGrid.__init__, it looks fine:
In [11]: self.z[0:2]
Out[11]: array([ -5. , -15.5])
In [12]: self.z_edges[0:2]
Out[12]: array([ 0., -10.])
which matches the values in RC and RF, as expected. Further down __init__, we see the model grid values:
Is this an error? It seems odd to have two zero values for the first two edges. That seems to have come from the zero padding to extend the grid.
As a test, I changed my topmost vertical level to match the SOSE grid (10 m thickness), and my error (so-wise/so-wise-gyre#8) went away. The command sose_ics does not crash if the model grid has the same top cell thickness as the SOSE grid. This is fine for now, but eventually I'd like to be able to add thinner vertical levels to the top cells.
As always, any advice/thoughts are appreciated. : )
The text was updated successfully, but these errors were encountered:
Hi @knaughten. Thanks again for the suggestions. Unfortunately, that didn't fix the issue. I tried +10 and +1. In both cases, the values of `Zl' were nonsensical, and the sea ice interpolation error happened just the same as before.
Hi Kaitlin. I believe that I have traced my interpolation error (so-wise/so-wise-gyre#8) to the vertical grid extension in the
SOSEGrid
class. I thought I should note the issue here as well.When the SOSE grid is first read in, which occurs in
SOSEGrid.__init__
, it looks fine:which matches the values in
RC
andRF
, as expected. Further down__init__
, we see the model grid values:which are
This is consistent with the first few vertical levels of the
model_grid
:After the extension (lines 563-737 in the file grid.py, the
sose_grid
vertical levels are padded with extra zeros:Is this an error? It seems odd to have two zero values for the first two edges. That seems to have come from the zero padding to extend the grid.
As a test, I changed my topmost vertical level to match the SOSE grid (10 m thickness), and my error (so-wise/so-wise-gyre#8) went away. The command
sose_ics
does not crash if the model grid has the same top cell thickness as the SOSE grid. This is fine for now, but eventually I'd like to be able to add thinner vertical levels to the top cells.As always, any advice/thoughts are appreciated. : )
The text was updated successfully, but these errors were encountered: