#!/usr/bin/env python """!Functions called automatically before a cycle is launched. This module contains utility functions for the hwrf.launcher.launch() prelaunch argument. These functions edit the configuration of an individual cycle before the cycle starts.""" import os import hwrf.numerics import produtil.fileop from produtil.log import jlogger ##@var __all__ # Symbols exported by "from hwrf.prelaunch import *" __all__=['prelaunch_ungrib','prelaunch_rsmc','prelaunch_basin'] def prelaunch_wind(conf,logger): """!Disables relocation and GSI if the wind is below some threshold.""" threshold=conf.getint('config','min_wind_for_init',0) wind=conf.syndat.wmax if wind