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