Skip to content
This repository was archived by the owner on Apr 18, 2018. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
220 changes: 220 additions & 0 deletions so_box_biogeo/diags/.ipynb_checkpoints/estNsq-checkpoint.ipynb

Large diffs are not rendered by default.

Binary file added so_box_biogeo/diags/dynDiag.0000000009.data
Binary file not shown.
16 changes: 16 additions & 0 deletions so_box_biogeo/diags/dynDiag.0000000009.meta
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
simulation = { 'OBC + Biogeo S.Ocean Box' };
nDims = [ 3 ];
dimList = [
42, 1, 42,
20, 1, 20,
15, 1, 15
];
dataprec = [ 'float64' ];
nrecords = [ 9 ];
timeStepNumber = [ 9 ];
timeInterval = [ 4.500000000000E+03 8.100000000000E+03 ];
missingValue = [ -9.99000000000000E+02 ];
nFlds = [ 9 ];
fldList = {
'VVELMASS' 'UVELMASS' 'THETA ' 'SALT ' 'GM_PsiX ' 'GM_PsiY ' 'PhiVEL ' 'PsiVEL ' 'CONVADJ '
};
220 changes: 220 additions & 0 deletions so_box_biogeo/diags/estNsq.ipynb

Large diffs are not rendered by default.

60 changes: 60 additions & 0 deletions so_box_biogeo/diags/mitgcmgrid.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
from MITgcmutils import rdmds
import numpy as np

def loadgrid(gridname,region=None,varname=None):
"""
[Function]
grd=loadgrid(gridname,region=None,varname=None):

[Description]
Read grid files and load them into the 'grd' object

[Inputs]
gridname : an identification string.
Once 'gridname' is given, 'dirGrid' will be assigned.
A user must define 'dirGrid' beforehand. Please see the code.
region : A list defining the boundary for the grid.
[x0,x1,y0,y1] (default is [0,nx,0,ny])
varname : A list of strings for the grid data to load

[Output]
grd : An object containing grid data.

"""

if gridname=="so_box":
dirGrid="../results/"

if varname is None:
varname=['XC','YC','RAC','DXC','DYC','hFacC','hFacW','hFacS','Depth',\
'RC','RF','DRC','DRF','XG','YG','RAZ','DXG','DYG'];

class grd(object):
for iv,vname in enumerate(varname):
if region is None:
exec('tmpvar=rdmds("'+dirGrid+varname[iv]+'")');
tmpvar=tmpvar.squeeze();
exec(varname[iv]+'=tmpvar')
else:
if vname is 'RC' or vname is 'RF' or vname is 'DRC' or vname is 'DRF':
exec('tmpvar=rdmds("'+dirGrid+varname[iv]+'")');
else:
exec('tmpvar=rdmds("'+dirGrid+varname[iv]+'",region='+str(region)+')');
tmpvar=tmpvar.squeeze();
exec(varname[iv]+'=tmpvar')
if vname=='hFacC':
mskC=hFacC.copy()
mskC[mskC==0]=np.nan
mskC[np.isfinite(mskC)]=1.
if vname=='hFacW':
mskW=hFacW.copy()
mskW[mskW==0]=np.nan
mskW[np.isfinite(mskW)]=1.
if vname=='hFacS':
mskS=hFacS.copy()
mskS[mskS==0]=np.nan
mskS[np.isfinite(mskS)]=1.
del tmpvar
del grd.iv,grd.vname

return grd
Binary file added so_box_biogeo/diags/mitgcmgrid.pyc
Binary file not shown.
Binary file added so_box_biogeo/diags/ocestrat.0000000009.data
Binary file not shown.
16 changes: 16 additions & 0 deletions so_box_biogeo/diags/ocestrat.0000000009.meta
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
simulation = { 'OBC + Biogeo S.Ocean Box' };
nDims = [ 3 ];
dimList = [
42, 1, 42,
20, 1, 20,
15, 1, 15
];
dataprec = [ 'float64' ];
nrecords = [ 2 ];
timeStepNumber = [ 9 ];
timeInterval = [ 4.500000000000E+03 8.100000000000E+03 ];
missingValue = [ -9.99000000000000E+02 ];
nFlds = [ 2 ];
fldList = {
'DRHODR ' 'RHOAnoma'
};
Binary file added so_box_biogeo/results/DRC.data
Binary file not shown.
9 changes: 9 additions & 0 deletions so_box_biogeo/results/DRC.meta
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
simulation = { 'OBC + Biogeo S.Ocean Box' };
nDims = [ 3 ];
dimList = [
1, 1, 1,
1, 1, 1,
16, 1, 16
];
dataprec = [ 'float64' ];
nrecords = [ 1 ];
Binary file added so_box_biogeo/results/DRF.data
Binary file not shown.
9 changes: 9 additions & 0 deletions so_box_biogeo/results/DRF.meta
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
simulation = { 'OBC + Biogeo S.Ocean Box' };
nDims = [ 3 ];
dimList = [
1, 1, 1,
1, 1, 1,
15, 1, 15
];
dataprec = [ 'float64' ];
nrecords = [ 1 ];
Binary file added so_box_biogeo/results/DXG.data
Binary file not shown.
8 changes: 8 additions & 0 deletions so_box_biogeo/results/DXG.meta
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
simulation = { 'OBC + Biogeo S.Ocean Box' };
nDims = [ 2 ];
dimList = [
42, 1, 42,
20, 1, 20
];
dataprec = [ 'float64' ];
nrecords = [ 1 ];
1 change: 1 addition & 0 deletions so_box_biogeo/results/DYG.data
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��A��@��
8 changes: 8 additions & 0 deletions so_box_biogeo/results/DYG.meta
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
simulation = { 'OBC + Biogeo S.Ocean Box' };
nDims = [ 2 ];
dimList = [
42, 1, 42,
20, 1, 20
];
dataprec = [ 'float64' ];
nrecords = [ 1 ];
Binary file added so_box_biogeo/results/RAC.data
Binary file not shown.
8 changes: 8 additions & 0 deletions so_box_biogeo/results/RAC.meta
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
simulation = { 'OBC + Biogeo S.Ocean Box' };
nDims = [ 2 ];
dimList = [
42, 1, 42,
20, 1, 20
];
dataprec = [ 'float64' ];
nrecords = [ 1 ];
Binary file added so_box_biogeo/results/RC.data
Binary file not shown.
9 changes: 9 additions & 0 deletions so_box_biogeo/results/RC.meta
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
simulation = { 'OBC + Biogeo S.Ocean Box' };
nDims = [ 3 ];
dimList = [
1, 1, 1,
1, 1, 1,
15, 1, 15
];
dataprec = [ 'float64' ];
nrecords = [ 1 ];
Binary file added so_box_biogeo/results/RF.data
Binary file not shown.
9 changes: 9 additions & 0 deletions so_box_biogeo/results/RF.meta
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
simulation = { 'OBC + Biogeo S.Ocean Box' };
nDims = [ 3 ];
dimList = [
1, 1, 1,
1, 1, 1,
16, 1, 16
];
dataprec = [ 'float64' ];
nrecords = [ 1 ];
Binary file added so_box_biogeo/results/XC.data
Binary file not shown.
8 changes: 8 additions & 0 deletions so_box_biogeo/results/XC.meta
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
simulation = { 'OBC + Biogeo S.Ocean Box' };
nDims = [ 2 ];
dimList = [
42, 1, 42,
20, 1, 20
];
dataprec = [ 'float64' ];
nrecords = [ 1 ];
Binary file added so_box_biogeo/results/YC.data
Binary file not shown.
8 changes: 8 additions & 0 deletions so_box_biogeo/results/YC.meta
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
simulation = { 'OBC + Biogeo S.Ocean Box' };
nDims = [ 2 ];
dimList = [
42, 1, 42,
20, 1, 20
];
dataprec = [ 'float64' ];
nrecords = [ 1 ];
Binary file added so_box_biogeo/results/hFacC.data
Binary file not shown.
10 changes: 10 additions & 0 deletions so_box_biogeo/results/hFacC.meta
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
simulation = { 'OBC + Biogeo S.Ocean Box' };
nDims = [ 3 ];
dimList = [
42, 1, 42,
20, 1, 20,
15, 1, 15
];
dataprec = [ 'float64' ];
nrecords = [ 1 ];
timeStepNumber = [ 0 ];