Esempio n. 1
0
 def __init__(self, start, end, delta):
     Project.__init__(self, start, end, delta)
     
     from os.path import abspath, join, curdir
     filename = abspath(join(curdir, 'results-new', 'data'))
     
     tm.fortran_file(56, filename + '_run.asc')       # trajectory path
     tm.fortran_file(57, filename + '_out.asc')       # exit position
     tm.fortran_file(58, filename + '_in.asc')        # entrance position
     tm.fortran_file(59, filename + '_err.asc')       # Error position
Esempio n. 2
0
    def __init__(self, nc, start, end, delta):

        # This sets a lot of the fortran static variables
        Project.__init__(self, nc.variables["ocean_time"].size, start, end, delta)

        self.nc = nc
        self.u = nc.variables["u"]
        self.v = nc.variables["v"]

        tm.mod_param.imt = len(nc.dimensions["xi_rho"])
        tm.mod_param.jmt = len(nc.dimensions["eta_rho"])
        tm.mod_param.km = len(nc.dimensions["s_rho"])

        ngcm = (nc.variables["ocean_time"][1] - nc.variables["ocean_time"][0]) / (3600)
        tm.mod_param.ngcm = ngcm

        tm.mod_param.iter = 100  # iteration between two gcm data sets (always =1 for timeanalyt)