polaris.tasks.ocean.analysis.config_sections.camel_to_snake

polaris.tasks.ocean.analysis.config_sections.camel_to_snake(name)[source]

Convert a model’s camel-case variable name to the lower case with underscores that Polaris config sections and options are spelled with

Parameters:

name (str) – A variable name in the spelling a model writes it with, such as velocityZonal

Returns:

snake_name (str) – The same name in lower case with underscores, such as velocity_zonal