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 4130 – NEMO

Changeset 4130


Ignore:
Timestamp:
2013-10-24T23:13:30+02:00 (10 years ago)
Author:
andrewryan
Message:

added default class 4 file settings to ooo utility

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

    r4122 r4130  
    9494 
    9595    # Initialise data 
    96     off_files = [] 
    97     nn_off_idx = [] 
     96    ooo_files = [] 
     97    nn_ooo_idx = [] 
    9898    cl4_vars = [] 
    9999    cl4_fcst_idx = [] 
     
    110110            out_indices.append(ilt + 1) 
    111111        # Expand return lists 
    112         off_files += files 
    113         nn_off_idx += in_indices 
     112        ooo_files += files 
     113        nn_ooo_idx += in_indices 
    114114        cl4_fcst_idx += out_indices 
    115115        cl4_vars += len(files) * [type] 
    116116 
    117117    # Namoff 
    118     namoff["off_files"] = off_files 
    119     namoff["nn_off_idx"] = nn_off_idx 
     118    namoff["ooo_files"] = ooo_files 
     119    namoff["nn_ooo_idx"] = nn_ooo_idx 
    120120 
    121121    # Namcl4 
  • branches/2013/dev_r3987_UKMO4_OBS/NEMOGCM/TOOLS/OBSTOOLS/OOO/ooo/ooo.py

    r4127 r4130  
    6565    namcl4["cl4_match_len"] = len(namcl4["cl4_vars"]) 
    6666    namcl4["cl4_fcst_len"] = len(namcl4["cl4_leadtime"]) 
     67    # Add naming convention 
     68    namcl4["cl4_sys"] = "FOAM" 
     69    namcl4["cl4_cfg"] = "orca025" 
     70    namcl4["cl4_vn"] = "1.0" 
     71    namcl4["cl4_prefix"] = "class4" 
     72    namcl4["cl4_contact"] = "example@example.com" 
     73    namcl4["cl4_inst"] = "institute" 
    6774    text = nml.update("namcl4", text, data=namcl4) 
    6875 
Note: See TracChangeset for help on using the changeset viewer.