fre.yamltools.data_table.is_valid_data_table_yaml module

  • This file is part of the GFDL Flexible Modeling System (FMS) YAML tools.

  • FMS_yaml_tools is free software: you can redistribute it and/or modify it under

  • the terms of the GNU Lesser General Public License as published by

  • the Free Software Foundation, either version 3 of the License, or (at

  • your option) any later version.

  • FMS_yaml_tools is distributed in the hope that it will be useful, but WITHOUT

  • ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or

  • FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License

  • for more details.

  • You should have received a copy of the GNU Lesser General Public

  • License along with FMS. If not, see <http://www.gnu.org/licenses/>.

Author: Uriel Ramirez 05/27/2022

fre.yamltools.data_table.is_valid_data_table_yaml.check_fieldname_code(fieldname)
fre.yamltools.data_table.is_valid_data_table_yaml.check_filename_and_field(field, interp_method)
fre.yamltools.data_table.is_valid_data_table_yaml.check_gridname(grid_name)

Check if the input grid_name is valid. Crashes if it not.

fre.yamltools.data_table.is_valid_data_table_yaml.check_if_bounds_present(entry)

Check if the region bounds are valid, crashes if they are not

fre.yamltools.data_table.is_valid_data_table_yaml.check_interp_method(interp_method)

Check if the interp method is valid. Crashes if it not.

fre.yamltools.data_table.is_valid_data_table_yaml.check_region(my_type, start, end)

Check if the region is defined correctly. Crashes if it not.

fre.yamltools.data_table.is_valid_data_table_yaml.check_region_type(region_type)

Check if the input region type is valid. Crashes if it is not.

fre.yamltools.data_table.is_valid_data_table_yaml.main()