New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 4132 for branches/2013/dev_r3987_UKMO4_OBS/NEMOGCM/TOOLS/OBSTOOLS – NEMO

Ignore:
Timestamp:
2013-10-25T12:57:37+02:00 (11 years ago)
Author:
andrewryan
Message:

renamed namoff to namooo to further reduce confusion with OFF_SRC, documentation, quick script, example namelist and data module have been updated and tested to reflect this change

Location:
branches/2013/dev_r3987_UKMO4_OBS/NEMOGCM/TOOLS/OBSTOOLS/OOO/ooo
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2013/dev_r3987_UKMO4_OBS/NEMOGCM/TOOLS/OBSTOOLS/OOO/ooo/locator.py

    r4130 r4132  
    77    >>> namobs = observations(date, types=["profbfiles"]) 
    88 
    9     >>> namoff, namcl4 = forecasts(date, types=["forecast", "persistence"], lead_times=[12, 36, 60]) 
     9    >>> namooo, namcl4 = forecasts(date, types=["forecast", "persistence"], lead_times=[12, 36, 60]) 
    1010""" 
    1111 
     
    8686    :param lead_times: A list of lead_times to search for 
    8787 
    88     :returns: tuple of namelist data, (namoff, namcl4) 
     88    :returns: tuple of namelist data, (namooo, namcl4) 
    8989    """ 
    90     namoff = {} 
     90    namooo = {} 
    9191    namcl4 = {} 
    9292    if types is None: types = [] 
     
    115115        cl4_vars += len(files) * [type] 
    116116 
    117     # Namoff 
    118     namoff["ooo_files"] = ooo_files 
    119     namoff["nn_ooo_idx"] = nn_ooo_idx 
     117    # Namoo 
     118    namooo["ooo_files"] = ooo_files 
     119    namooo["nn_ooo_idx"] = nn_ooo_idx 
    120120 
    121121    # Namcl4 
     
    123123    namcl4["cl4_fcst_idx"] = cl4_fcst_idx 
    124124 
    125     return namoff, namcl4 
     125    return namooo, namcl4 
    126126 
    127127def field(date, type=None, lead_time=None): 
  • branches/2013/dev_r3987_UKMO4_OBS/NEMOGCM/TOOLS/OBSTOOLS/OOO/ooo/ooo.py

    r4130 r4132  
    4343    types = args.forecast_types 
    4444    lead_times = args.lead_times 
    45     namoff, namcl4 = locator.forecasts(date=date, 
     45    namooo, namcl4 = locator.forecasts(date=date, 
    4646                                       types=types, 
    4747                                       lead_times=lead_times) 
     
    5151    sublists = nml.namelists(text) 
    5252 
    53     # namoff 
    54     if "namoff" not in sublists: 
     53    # namooo 
     54    if "namooo" not in sublists: 
    5555        # Attach boilerplate 
    56         text += nml.new("namoff") 
    57     text = nml.update("namoff", text, data=namoff) 
     56        text += nml.new("namooo") 
     57    text = nml.update("namooo", text, data=namooo) 
    5858 
    5959    # namcl4 
     
    6868    namcl4["cl4_sys"] = "FOAM" 
    6969    namcl4["cl4_cfg"] = "orca025" 
    70     namcl4["cl4_vn"] = "1.0" 
     70    namcl4["cl4_vn"] = "'1.0'" 
    7171    namcl4["cl4_prefix"] = "class4" 
    7272    namcl4["cl4_contact"] = "example@example.com" 
Note: See TracChangeset for help on using the changeset viewer.