Changeset 4132


Ignore:
Timestamp:
2013-10-25T12:57:37+02:00 (8 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
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/2013/dev_r3987_UKMO4_OBS/DOC/TexFiles/Chapters/Chap_OBS.tex

    r4123 r4132  
    852852The observation files and settings understood by \textbf{namobs} have been outlined in the online 
    853853obs oper section. In addition there are two further namelists wich control the operation of the offline 
    854 obs oper. \textbf{namoff} which controls the input model fields and \textbf{namcl4} which controls the 
     854obs oper. \textbf{namooo} which controls the input model fields and \textbf{namcl4} which controls the 
    855855production of class 4 files.  
    856856 
     
    863863\textbf{votemper}, \textbf{vosaline} and optionally \textbf{sshn} present. 
    864864 
    865 For each field read there must be an entry in the \textbf{namoff} namelist specifying the 
     865For each field read there must be an entry in the \textbf{namooo} namelist specifying the 
    866866name of the file to read and the index along the \emph{time\_counter}. For example, to 
    867867read the second time counter from a single file the namelist would be. 
     
    871871\begin{verbatim}  
    872872!---------------------------------------------------------------------- 
    873 !       namoff Offline obs_oper namelist 
     873!       namooo Offline obs_oper namelist 
    874874!---------------------------------------------------------------------- 
    875875!   ooo_files    specifies the files containing the model counterpart 
    876876!   nn_ooo_idx   specifies the time_counter index within the model file 
    877 &namoff 
     877&namooo 
    878878   ooo_files = "foo.nc" 
    879879   nn_ooo_idx = 2 
     
    892892\begin{verbatim}  
    893893!---------------------------------------------------------------------- 
    894 !       namoff Offline obs_oper namelist 
     894!       namooo Offline obs_oper namelist 
    895895!---------------------------------------------------------------------- 
    896896!   ooo_files    specifies the files containing the model counterpart 
    897897!   nn_ooo_idx   specifies the time_counter index within the model file 
    898898!   nn_ooo_freq  specifies number of time steps between read operations 
    899 &namoff 
     899&namooo 
    900900   ooo_files = "foo.nc" "foo.nc" 
    901901   nn_ooo_idx = 1 2 
     
    915915at different indices can be combined at a particular frequency in time to  
    916916generate a pseudo model evolution. As long as all that is needed is a single 
    917 model counterpart at a regular interval then namoff is all that needs to 
     917model counterpart at a regular interval then namooo is all that needs to 
    918918be edited. However, a far more interesting approach can be taken in which 
    919919multiple forecasts, analyses, persisted analyses and climatologies are 
     
    933933 
    934934The above namelist performs two basic functions. It organises the fields 
    935 given in \textbf{namoff} into groups so that observations can be matched 
     935given in \textbf{namooo} into groups so that observations can be matched 
    936936up multiple times. It also controls the metadata and the output variable 
    937937of the class 4 file when a write routine is called. 
     
    10441044 
    10451045In terms of files and indices of fields inside each file the class 4 approach 
    1046 makes use of the \textbf{namoff} namelist. If our fields are in separate files 
     1046makes use of the \textbf{namooo} namelist. If our fields are in separate files 
    10471047with a single field per file our example inputs will be specified. 
    10481048 
     
    10621062\begin{verbatim} 
    10631063!---------------------------------------------------------------------- 
    1064 !       namoff Offline obs_oper namelist 
     1064!       namooo Offline obs_oper namelist 
    10651065!---------------------------------------------------------------------- 
    10661066!   ooo_files    specifies the files containing the model counterpart 
    10671067!   nn_ooo_idx   specifies the time_counter index within the model file 
    10681068!   nn_ooo_freq  specifies number of time steps between read operations 
    1069 &namoff 
     1069&namooo 
    10701070   ooo_files = "F.1.nc" "F.2.nc" "F.3.nc" "P.1.nc" "P.2.nc" "P.3.nc" "A.1.nc" 
    10711071   nn_ooo_idx = 1 1 1 1 1 1 1 
  • branches/2013/dev_r3987_UKMO4_OBS/NEMOGCM/NEMO/OOO_SRC/ooo.nml

    r4120 r4132  
    11 
    22!---------------------------------------------------------------------- 
    3 !       namoff Offline obs_oper namelist 
     3!       namooo Offline obs_oper namelist 
    44!---------------------------------------------------------------------- 
    55!   ooo_files     specifies the files containing the model counterpart 
    66!   nn_ooo_idx    specifies the index within the model file 
    77!   nn_ooo_freq   specifies the number of timesteps between file reads 
    8 &namoff 
     8&namooo 
    99   ooo_files = 'fcst.0.nc' 
    1010   nn_ooo_idx = 1 
  • branches/2013/dev_r3987_UKMO4_OBS/NEMOGCM/NEMO/OOO_SRC/ooo_data.F90

    r4117 r4132  
    5555 
    5656      ! Standard offline obs_oper information 
    57       NAMELIST/namoff/ooo_files, nn_ooo_idx, nn_ooo_freq 
     57      NAMELIST/namooo/ooo_files, nn_ooo_idx, nn_ooo_freq 
    5858 
    5959      ! Class 4 file specifiers 
     
    8585 
    8686      ! Standard offline obs_oper settings 
    87       READ(numnam, namoff) 
     87      READ(numnam, namooo) 
    8888 
    8989      ! Read class 4 output settings 
     
    108108         WRITE(numout,*) 'offline obs_oper : Initialization' 
    109109         WRITE(numout,*) '~~~~~~~~~~~~~~~~~' 
    110          WRITE(numout,*) '   Namelist namoff : set offline obs_oper parameters'  
     110         WRITE(numout,*) '   Namelist namooo : set offline obs_oper parameters'  
    111111         DO jf = 1, n_files 
    112112            WRITE(numout,'(1X,2A)') '   Input forecast file name          forecastfile = ', & 
  • 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.