auxil
- utils.auxil.authenticate_cds_anc(env)
If the configuration contains username and password for CDS anc data api, create ~/.cdsapirc containing these credentials
- utils.auxil.authenticate_earthdata_anc(env)
If the configuration contains username and password for NASA anc data api, create ~/.netrc and ~/.urs_cookies (Linux) or ~/_netrc (Windows) containing these credentials
- utils.auxil.chmod_recursive(path, mode)
Recursively chmod a directory
- utils.auxil.error(file, e)
- utils.auxil.gpt_subprocess(cmd, log_path, attempts=1, timeout=False, indent=1)
- utils.auxil.init_hindcast(env_file, params_file)
Initialize a sencast run with an environment file and a parameters file.
- utils.auxil.load_environment(env_file=None, env_path='/home/docs/checkouts/readthedocs.org/user_builds/sencast/checkouts/latest/utils/../environments')
Load the environment configuration from a ini file. If no ini file is provided, it tries to automatically pick one.
- utils.auxil.load_params(params_file, params_path='/home/docs/checkouts/readthedocs.org/user_builds/sencast/checkouts/latest/utils/../parameters')
Read the parameters from a ini file.
- utils.auxil.load_properties(properties_file, separator_char='=', comment_char='#')
Read a properties file into a dict.
- utils.auxil.load_wkt(wkt_file, wkt_path='/home/docs/checkouts/readthedocs.org/user_builds/sencast/checkouts/latest/utils/../wkt')
Read the perimeter from a given wkt file.
- utils.auxil.log(file, text, indent=0, blank=False)
- utils.auxil.log_output(res, log_path, indent=2)
- utils.auxil.set_memory_parameters(env)
Set the max memory usage and GPT cache size if not set.