Ejemplo n.º 1
0
 def set_landmask(self):
     self.landmask = vos.readPCRmapClone(
         self._configuration.globalOptions['landmask'],
         self._configuration.cloneMap,
         self._configuration.tmpDir,
         self._configuration.globalOptions['inputDir'],
         True)
     self.landmask = self.landmask > 0
Ejemplo n.º 2
0
    def __init__(self, configuration, modelTime, initialState=None):

        self._configuration = configuration
        self._modelTime = modelTime

        # clone map, land mask
        pcr.setclone(configuration.cloneMap)
        self.cloneMap = self._configuration.cloneMap
        self.landmask = vos.readPCRmapClone(
            configuration.globalOptions['landmask'], configuration.cloneMap,
            configuration.tmpDir, configuration.globalOptions['inputDir'],
            True)
        attr = vos.getMapAttributesALL(self.cloneMap)
        self.nLat = int(attr['rows'])
        self.nLon = int(attr['cols'])