FV3 Bundle
|
Go to the source code of this file.
Namespaces | |
make_check_data | |
Functions | |
def | make_check_data.float2string (val, sformat, addcomma) |
def | make_check_data.write_variable (var_name, dims, v) |
def | make_check_data.write_structure (var_name, dims, v) |
Variables | |
string | make_check_data.nan = "9e90_r8" |
make_check_data.pzeros = re.compile("0{7,}[1-9]*") | |
make_check_data.pnines = re.compile("9{7,}[0-8]*") | |
dictionary | make_check_data.work_dims |
list | make_check_data.work_vars |
list | make_check_data.vars |
make_check_data.rootgrp = Dataset('gsw_data_v3_0.nc', 'r') | |
make_check_data.v = rootgrp.variables | |
make_check_data.d = rootgrp.dimensions | |
make_check_data.version_date = rootgrp.version_date | |
make_check_data.version_number = rootgrp.version_number | |
make_check_data.fd = os.open("gsw_mod_check_data.f90", os.O_CREAT|os.O_EXCL|os.O_RDWR, 0644) | |
make_check_data.out = os.fdopen(fd, "w") | |
string | make_check_data.dim_format = "integer, parameter :: %s = %d\n" |
make_check_data.var_name = var_label | |
list | make_check_data.dims = [len(d[dname]) for dname in v[var_name].dimensions] |