FV3 Bundle
make_saar_data Namespace Reference

Functions

def float2string (val, sformat, addcomma)
 
def write_variable_real (var_name, dims, v)
 
def write_variable_int (var_name, dims, v)
 

Variables

 rootgrp = Dataset('gsw_data_v3_0.nc', 'r')
 
 v = rootgrp.variables
 
 d = rootgrp.dimensions
 
 nx = len(d['nx'])
 
 ny = len(d['ny'])
 
 nz = len(d['nz'])
 
 version_date = rootgrp.version_date
 
 version_number = rootgrp.version_number
 
list vars_real
 
list vars_int = [["ndepth_ref", "", [nx,ny]]]
 
 fd = os.open("gsw_mod_saar_data.f90", os.O_CREAT|os.O_EXCL|os.O_RDWR, 0644)
 
 out = os.fdopen(fd, "w")
 
 var_name = var_label
 

Function Documentation

◆ float2string()

def make_saar_data.float2string (   val,
  sformat,
  addcomma 
)

Definition at line 14 of file make_saar_data.py.

Here is the caller graph for this function:

◆ write_variable_int()

def make_saar_data.write_variable_int (   var_name,
  dims,
  v 
)

Definition at line 97 of file make_saar_data.py.

◆ write_variable_real()

def make_saar_data.write_variable_real (   var_name,
  dims,
  v 
)

Definition at line 26 of file make_saar_data.py.

Here is the call graph for this function:

Variable Documentation

◆ d

make_saar_data.d = rootgrp.dimensions

Definition at line 172 of file make_saar_data.py.

◆ fd

make_saar_data.fd = os.open("gsw_mod_saar_data.f90", os.O_CREAT|os.O_EXCL|os.O_RDWR, 0644)

Definition at line 188 of file make_saar_data.py.

◆ nx

make_saar_data.nx = len(d['nx'])

Definition at line 174 of file make_saar_data.py.

◆ ny

make_saar_data.ny = len(d['ny'])

Definition at line 175 of file make_saar_data.py.

◆ nz

make_saar_data.nz = len(d['nz'])

Definition at line 176 of file make_saar_data.py.

◆ out

make_saar_data.out = os.fdopen(fd, "w")

Definition at line 193 of file make_saar_data.py.

◆ rootgrp

make_saar_data.rootgrp = Dataset('gsw_data_v3_0.nc', 'r')

Definition at line 170 of file make_saar_data.py.

◆ v

make_saar_data.v = rootgrp.variables

Definition at line 171 of file make_saar_data.py.

◆ var_name

make_saar_data.var_name = var_label

Definition at line 223 of file make_saar_data.py.

◆ vars_int

list make_saar_data.vars_int = [["ndepth_ref", "", [nx,ny]]]

Definition at line 185 of file make_saar_data.py.

◆ vars_real

list make_saar_data.vars_real
Initial value:
1 = [["p_ref", "", [nz]], ["lats_ref", "", [ny]],
2  ["longs_ref", "", [nx]], ["saar_ref", "SAAR_ref", [nx,ny,nz]],
3  ["delta_sa_ref", "deltaSA_ref", [nx,ny,nz]]]

Definition at line 181 of file make_saar_data.py.

◆ version_date

make_saar_data.version_date = rootgrp.version_date

Definition at line 178 of file make_saar_data.py.

◆ version_number

make_saar_data.version_number = rootgrp.version_number

Definition at line 179 of file make_saar_data.py.