示例#1
0
def makeWindInput():

    #DEFINE SPATIAL/TEMPORAL DOMAIN
    grid = CMSman.makegrid()
    steeringtimes = CMSman.maketimes(None, None, None)

    #RETRIEVE WIND DATA FROM DATABASE
    windata = CMSman.getwinddata(None, steeringtimes)  #add wintype
    if (windata == None):
        print '\n... downloading new wind data ... \n'
        GETman.getWIND(CMSconfig)
        windata = CMSman.getwinddata(None, steeringtimes)  #add wintype

    # CONSTRUCT THE FILE
    CMSman.gen_windfiles(windata, grid, steeringtimes)
示例#2
0
文件: prepareCMS.py 项目: serc/wave
def makeWindInput():
  
  #DEFINE SPATIAL/TEMPORAL DOMAIN
  grid = CMSman.makegrid()
  steeringtimes = CMSman.maketimes(None,None,None)  
  
  #RETRIEVE WIND DATA FROM DATABASE
  windata = CMSman.getwinddata(None,steeringtimes) #add wintype
  if (windata==None):
    print '\n... downloading new wind data ... \n'
    GETman.getWIND(CMSconfig)
    windata = CMSman.getwinddata(None,steeringtimes) #add wintype
  
  # CONSTRUCT THE FILE
  CMSman.gen_windfiles(windata,grid,steeringtimes)
示例#3
0
文件: setup.py 项目: serc/wave
def gen_wind_file(output_path, params):
  from wavecon import CMSman, GETman
  model_config = CMSConfig(params['sim_name']).load_sim_config()
  
  #DEFINE SPATIAL/TEMPORAL DOMAIN
  grid = CMSman.makegrid(model_config)
  steeringtimes = CMSman.maketimes(params['sim_starttime'],
    params['sim_runtime'], params['sim_timestep'])
  
  #RETRIEVE WIND DATA FROM DATABASE
  windata = CMSman.getwinddata(None,steeringtimes, model_config) #add wintype
  if (windata==None):
    print '\n... downloading new wind data ... \n'
    GETman.getWIND(model_config, params['sim_starttime'], params['sim_runtime'],
      params['sim_timestep'])
    windata = CMSman.getwinddata(None,steeringtimes, model_config) #add wintype
  
  # CONSTRUCT THE FILE
  CMSman.gen_windfiles(windata,grid,steeringtimes,model_config, output_path)
示例#4
0
文件: setup.py 项目: Mads-J/wave
def gen_wind_file(output_path, params):
    from wavecon import CMSman, GETman
    model_config = CMSConfig(params['sim_name']).load_sim_config()

    #DEFINE SPATIAL/TEMPORAL DOMAIN
    grid = CMSman.makegrid(model_config)
    steeringtimes = CMSman.maketimes(params['sim_starttime'],
                                     params['sim_runtime'],
                                     params['sim_timestep'])

    #RETRIEVE WIND DATA FROM DATABASE
    windata = CMSman.getwinddata(None, steeringtimes,
                                 model_config)  #add wintype
    if (windata == None):
        print '\n... downloading new wind data ... \n'
        GETman.getWIND(model_config, params['sim_starttime'],
                       params['sim_runtime'], params['sim_timestep'])
        windata = CMSman.getwinddata(None, steeringtimes,
                                     model_config)  #add wintype

    # CONSTRUCT THE FILE
    CMSman.gen_windfiles(windata, grid, steeringtimes, model_config,
                         output_path)