E3SM-Project/e3sm_to_cmip

Update `VarHandler._get_table_freq()` once all legacy land-atm handlers are refactored

tomvothecoder opened this issue · 0 comments

def _update_table_ref(self, freq: str, realm: str, cmip_tables_path: str):
"""
Update the referenced CMIP table for cmorizing based on the selected
frequency and realm.
Parameters
----------
freq : str
The frequency for CMORizing, which is used to derive the appropriate
CMIP6 table.
realm : str
The realm.
cmip_tables_path : str
The path to the CMIP6 tables.
"""
# TODO: Implement logic from
# `e3sm_to_cmip.util._get_table_for_non_monthly_freq()`.
self.table = _get_table_for_non_monthly_freq(
self.name, self.table, freq, realm, cmip_tables_path
)

  • Move logic from _get_table_for_non_monthly_freq() this this method
  • Update downstream calls from old function to this method.