Changeset 4132 for branches/2013/dev_r3987_UKMO4_OBS/NEMOGCM/TOOLS/OBSTOOLS
- Timestamp:
- 2013-10-25T12:57:37+02:00 (11 years ago)
- 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 7 7 >>> namobs = observations(date, types=["profbfiles"]) 8 8 9 >>> namo ff, namcl4 = forecasts(date, types=["forecast", "persistence"], lead_times=[12, 36, 60])9 >>> namooo, namcl4 = forecasts(date, types=["forecast", "persistence"], lead_times=[12, 36, 60]) 10 10 """ 11 11 … … 86 86 :param lead_times: A list of lead_times to search for 87 87 88 :returns: tuple of namelist data, (namo ff, namcl4)88 :returns: tuple of namelist data, (namooo, namcl4) 89 89 """ 90 namo ff= {}90 namooo = {} 91 91 namcl4 = {} 92 92 if types is None: types = [] … … 115 115 cl4_vars += len(files) * [type] 116 116 117 # Namo ff118 namo ff["ooo_files"] = ooo_files119 namo ff["nn_ooo_idx"] = nn_ooo_idx117 # Namoo 118 namooo["ooo_files"] = ooo_files 119 namooo["nn_ooo_idx"] = nn_ooo_idx 120 120 121 121 # Namcl4 … … 123 123 namcl4["cl4_fcst_idx"] = cl4_fcst_idx 124 124 125 return namo ff, namcl4125 return namooo, namcl4 126 126 127 127 def field(date, type=None, lead_time=None): -
branches/2013/dev_r3987_UKMO4_OBS/NEMOGCM/TOOLS/OBSTOOLS/OOO/ooo/ooo.py
r4130 r4132 43 43 types = args.forecast_types 44 44 lead_times = args.lead_times 45 namo ff, namcl4 = locator.forecasts(date=date,45 namooo, namcl4 = locator.forecasts(date=date, 46 46 types=types, 47 47 lead_times=lead_times) … … 51 51 sublists = nml.namelists(text) 52 52 53 # namo ff54 if "namo ff" not in sublists:53 # namooo 54 if "namooo" not in sublists: 55 55 # Attach boilerplate 56 text += nml.new("namo ff")57 text = nml.update("namo ff", text, data=namoff)56 text += nml.new("namooo") 57 text = nml.update("namooo", text, data=namooo) 58 58 59 59 # namcl4 … … 68 68 namcl4["cl4_sys"] = "FOAM" 69 69 namcl4["cl4_cfg"] = "orca025" 70 namcl4["cl4_vn"] = " 1.0"70 namcl4["cl4_vn"] = "'1.0'" 71 71 namcl4["cl4_prefix"] = "class4" 72 72 namcl4["cl4_contact"] = "example@example.com"
Note: See TracChangeset
for help on using the changeset viewer.