FV3 Bundle
|
Functions | |
def | float2string (val, sformat, addcomma) |
def | write_variable (var_name, dims, v) |
def | write_structure (var_name, dims, v) |
Variables | |
string | nan = "9e90_r8" |
pzeros = re.compile("0{7,}[1-9]*") | |
pnines = re.compile("9{7,}[0-8]*") | |
dictionary | work_dims |
list | work_vars |
list | vars |
rootgrp = Dataset('gsw_data_v3_0.nc', 'r') | |
v = rootgrp.variables | |
d = rootgrp.dimensions | |
version_date = rootgrp.version_date | |
version_number = rootgrp.version_number | |
fd = os.open("gsw_mod_check_data.f90", os.O_CREAT|os.O_EXCL|os.O_RDWR, 0644) | |
out = os.fdopen(fd, "w") | |
string | dim_format = "integer, parameter :: %s = %d\n" |
var_name = var_label | |
list | dims = [len(d[dname]) for dname in v[var_name].dimensions] |
def make_check_data.float2string | ( | val, | |
sformat, | |||
addcomma | |||
) |
def make_check_data.write_structure | ( | var_name, | |
dims, | |||
v | |||
) |
def make_check_data.write_variable | ( | var_name, | |
dims, | |||
v | |||
) |
make_check_data.d = rootgrp.dimensions |
Definition at line 448 of file make_check_data.py.
string make_check_data.dim_format = "integer, parameter :: %s = %d\n" |
Definition at line 474 of file make_check_data.py.
Definition at line 510 of file make_check_data.py.
make_check_data.fd = os.open("gsw_mod_check_data.f90", os.O_CREAT|os.O_EXCL|os.O_RDWR, 0644) |
Definition at line 453 of file make_check_data.py.
string make_check_data.nan = "9e90_r8" |
Definition at line 14 of file make_check_data.py.
make_check_data.out = os.fdopen(fd, "w") |
Definition at line 458 of file make_check_data.py.
make_check_data.pnines = re.compile("9{7,}[0-8]*") |
Definition at line 17 of file make_check_data.py.
make_check_data.pzeros = re.compile("0{7,}[1-9]*") |
Definition at line 16 of file make_check_data.py.
make_check_data.rootgrp = Dataset('gsw_data_v3_0.nc', 'r') |
Definition at line 446 of file make_check_data.py.
make_check_data.v = rootgrp.variables |
Definition at line 447 of file make_check_data.py.
make_check_data.var_name = var_label |
Definition at line 509 of file make_check_data.py.
list make_check_data.vars |
Definition at line 221 of file make_check_data.py.
make_check_data.version_date = rootgrp.version_date |
Definition at line 450 of file make_check_data.py.
make_check_data.version_number = rootgrp.version_number |
Definition at line 451 of file make_check_data.py.
dictionary make_check_data.work_dims |
Definition at line 185 of file make_check_data.py.
list make_check_data.work_vars |
Definition at line 194 of file make_check_data.py.