Changeset 4132
- Timestamp:
- 2013-10-25T12:57:37+02:00 (11 years ago)
- Location:
- branches/2013/dev_r3987_UKMO4_OBS
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2013/dev_r3987_UKMO4_OBS/DOC/TexFiles/Chapters/Chap_OBS.tex
r4123 r4132 852 852 The observation files and settings understood by \textbf{namobs} have been outlined in the online 853 853 obs oper section. In addition there are two further namelists wich control the operation of the offline 854 obs oper. \textbf{namo ff} which controls the input model fields and \textbf{namcl4} which controls the854 obs oper. \textbf{namooo} which controls the input model fields and \textbf{namcl4} which controls the 855 855 production of class 4 files. 856 856 … … 863 863 \textbf{votemper}, \textbf{vosaline} and optionally \textbf{sshn} present. 864 864 865 For each field read there must be an entry in the \textbf{namo ff} namelist specifying the865 For each field read there must be an entry in the \textbf{namooo} namelist specifying the 866 866 name of the file to read and the index along the \emph{time\_counter}. For example, to 867 867 read the second time counter from a single file the namelist would be. … … 871 871 \begin{verbatim} 872 872 !---------------------------------------------------------------------- 873 ! namo ffOffline obs_oper namelist873 ! namooo Offline obs_oper namelist 874 874 !---------------------------------------------------------------------- 875 875 ! ooo_files specifies the files containing the model counterpart 876 876 ! nn_ooo_idx specifies the time_counter index within the model file 877 &namo ff877 &namooo 878 878 ooo_files = "foo.nc" 879 879 nn_ooo_idx = 2 … … 892 892 \begin{verbatim} 893 893 !---------------------------------------------------------------------- 894 ! namo ffOffline obs_oper namelist894 ! namooo Offline obs_oper namelist 895 895 !---------------------------------------------------------------------- 896 896 ! ooo_files specifies the files containing the model counterpart 897 897 ! nn_ooo_idx specifies the time_counter index within the model file 898 898 ! nn_ooo_freq specifies number of time steps between read operations 899 &namo ff899 &namooo 900 900 ooo_files = "foo.nc" "foo.nc" 901 901 nn_ooo_idx = 1 2 … … 915 915 at different indices can be combined at a particular frequency in time to 916 916 generate a pseudo model evolution. As long as all that is needed is a single 917 model counterpart at a regular interval then namo ffis all that needs to917 model counterpart at a regular interval then namooo is all that needs to 918 918 be edited. However, a far more interesting approach can be taken in which 919 919 multiple forecasts, analyses, persisted analyses and climatologies are … … 933 933 934 934 The above namelist performs two basic functions. It organises the fields 935 given in \textbf{namo ff} into groups so that observations can be matched935 given in \textbf{namooo} into groups so that observations can be matched 936 936 up multiple times. It also controls the metadata and the output variable 937 937 of the class 4 file when a write routine is called. … … 1044 1044 1045 1045 In terms of files and indices of fields inside each file the class 4 approach 1046 makes use of the \textbf{namo ff} namelist. If our fields are in separate files1046 makes use of the \textbf{namooo} namelist. If our fields are in separate files 1047 1047 with a single field per file our example inputs will be specified. 1048 1048 … … 1062 1062 \begin{verbatim} 1063 1063 !---------------------------------------------------------------------- 1064 ! namo ffOffline obs_oper namelist1064 ! namooo Offline obs_oper namelist 1065 1065 !---------------------------------------------------------------------- 1066 1066 ! ooo_files specifies the files containing the model counterpart 1067 1067 ! nn_ooo_idx specifies the time_counter index within the model file 1068 1068 ! nn_ooo_freq specifies number of time steps between read operations 1069 &namo ff1069 &namooo 1070 1070 ooo_files = "F.1.nc" "F.2.nc" "F.3.nc" "P.1.nc" "P.2.nc" "P.3.nc" "A.1.nc" 1071 1071 nn_ooo_idx = 1 1 1 1 1 1 1 -
branches/2013/dev_r3987_UKMO4_OBS/NEMOGCM/NEMO/OOO_SRC/ooo.nml
r4120 r4132 1 1 2 2 !---------------------------------------------------------------------- 3 ! namo ffOffline obs_oper namelist3 ! namooo Offline obs_oper namelist 4 4 !---------------------------------------------------------------------- 5 5 ! ooo_files specifies the files containing the model counterpart 6 6 ! nn_ooo_idx specifies the index within the model file 7 7 ! nn_ooo_freq specifies the number of timesteps between file reads 8 &namo ff8 &namooo 9 9 ooo_files = 'fcst.0.nc' 10 10 nn_ooo_idx = 1 -
branches/2013/dev_r3987_UKMO4_OBS/NEMOGCM/NEMO/OOO_SRC/ooo_data.F90
r4117 r4132 55 55 56 56 ! Standard offline obs_oper information 57 NAMELIST/namo ff/ooo_files, nn_ooo_idx, nn_ooo_freq57 NAMELIST/namooo/ooo_files, nn_ooo_idx, nn_ooo_freq 58 58 59 59 ! Class 4 file specifiers … … 85 85 86 86 ! Standard offline obs_oper settings 87 READ(numnam, namo ff)87 READ(numnam, namooo) 88 88 89 89 ! Read class 4 output settings … … 108 108 WRITE(numout,*) 'offline obs_oper : Initialization' 109 109 WRITE(numout,*) '~~~~~~~~~~~~~~~~~' 110 WRITE(numout,*) ' Namelist namo ff: set offline obs_oper parameters'110 WRITE(numout,*) ' Namelist namooo : set offline obs_oper parameters' 111 111 DO jf = 1, n_files 112 112 WRITE(numout,'(1X,2A)') ' Input forecast file name forecastfile = ', & -
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.