def setup_variable(name, units, missing, startime, endtime, startimebnds, endtimebnds): ''' Create variable attributes from the table loaded by load_table. Usage: cmip6_cv.check_variable( name, units, missing ) Where: name is the variable name to validate units are the variable units missing is the missing value for this variable. startime: time value for first part of timestap -- time[0] endtime: time value for last part of timestap -- time[-1] startimebnds: time bound value for first part of timestap -- time_bnds[0] endtimebnds: time bound value for last part of timestap -- time_bnds[-1] return: variable_id on success -1 on failure ''' ierr = _cmip6_cv.setup_variable( name, units, missing, startime, endtime, startimebnds, endtimebnds) return(ierr)
def setup_variable(name, units, missing): ''' Create variable attributes from the table loaded by load_table. Usage: cmip6_cv.check_variable( name, units, missing ) Where: name is the variable name to validate units are the variable units missing is the missing value for this variable. return: variable_id on success -1 on failure ''' ierr = _cmip6_cv.setup_variable(name, units, missing) return(ierr)
def setup_variable(name, units, missing): ''' Create variable attributes from the table loaded by load_table. Usage: cmip6_cv.check_variable( name, units, missing ) Where: name is the variable name to validate units are the variable units missing is the missing value for this variable. return: variable_id on success -1 on failure ''' ierr = _cmip6_cv.setup_variable(name, units, missing) return (ierr)