def main(): print("Started model2roms") confM2R = configM2R.Model2romsConfig() if confM2R.createatmosforcing or confM2R.createoceanforcing: if (confM2R.useesmf): import ESMF print("Starting logfile for ESMF") # manager = ESMF.Manager(debug=False) if confM2R.createoceanforcing: # model2roms.convertMODEL2ROMS(confM2R) clim2bry.writeBry(confM2R) if confM2R.createatmosforcing: atmosForcing.createAtmosFileUV(confM2R) if confM2R.decimategridfile: decimateGrid.createGrid( confM2R.grdROMS, "/Users/trondkr/Projects/KINO/GRID/kino_1600m_18072015.nc", "/Users/trondkr/Projects/KINO/GRID/kino_1600m_18072015v2.nc", 2) if confM2R.extractStations: print( "Running in station mode and extracting pre-defined station locations" ) IOstation.getStationData(confM2R) print('Finished ' + time.ctime(time.time()))
def run(): print("Started model2roms") confM2R = configM2R.Model2romsConfig() if confM2R.createatmosforcing or confM2R.createoceanforcing: if confM2R.createoceanforcing: model2roms.convertMODEL2ROMS(confM2R) clim2bry.writebry(confM2R) # if confM2R.createAtmosForcing: # atmosForcing.createAtmosFileUV(confM2R) if confM2R.decimategridfile: decimateGrid.createGrid( confM2R.grdROMS, "/Users/trondkr/Projects/KINO/GRID/kino_1600m_18072015.nc", "/Users/trondkr/Projects/KINO/GRID/kino_1600m_18072015v2.nc", 2) if confM2R.extractstations: print( "Running in station mode and extracting pre-defined station locations" ) IOstation.getStationData(confM2R) print('Finished ' + time.ctime(time.time()))
def run(): logging.basicConfig(level=logging.INFO) logging.info("[M2R_run] Initialized logging") logging.info("[M2R_run] Started model2roms") confM2R = configM2R.Model2romsConfig() confM2R.create_grd_objects() if confM2R.create_atmos_forcing or confM2R.create_ocean_forcing: if confM2R.create_ocean_forcing: model2roms.convert_MODEL2ROMS(confM2R) clim2bry.writebry(confM2R) # if confM2R.createAtmosForcing: # atmosForcing.createAtmosFileUV(confM2R) if confM2R.decimate_gridfile: decimateGrid.createGrid(confM2R.grdROMS, "/Users/trondkr/Projects/KINO/GRID/kino_1600m_18072015.nc", "/Users/trondkr/Projects/KINO/GRID/kino_1600m_18072015v2.nc", 2) if confM2R.extract_stations: print("Running in station mode and extracting pre-defined station locations") IOstation.getStationData(confM2R) print('Finished ' + time.ctime(time.time()))
def run(): confM2R = configM2R.Model2romsConfig() if confM2R.createatmosforcing or confM2R.createoceanforcing: if confM2R.createoceanforcing: model2roms.convertMODEL2ROMS(confM2R) clim2bry.writebry(confM2R) # if confM2R.createAtmosForcing: # atmosForcing.createAtmosFileUV(confM2R) print('Finished ' + time.ctime(time.time()))
def setUp(self): compile.compilefortran("gfortran") self.configM2R = configM2R.Model2romsConfig() self.assertIsNotNone(self.configM2R)
def setUp(self): self.configM2R = configM2R.Model2romsConfig() self.assertIsNotNone(self.configM2R)