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

Changeset 4117


Ignore:
Timestamp:
2013-10-23T22:32:11+02:00 (10 years ago)
Author:
andrewryan
Message:

updated naming convention of variables to eliminate confusion with OFF_SRC variables

Location:
branches/2013/dev_r3987_UKMO4_OBS
Files:
6 edited

Legend:

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

    r4115 r4117  
    869869!       namoff Offline obs_oper namelist 
    870870!---------------------------------------------------------------------- 
    871 !   off_files    specifies the files containing the model counterpart 
    872 !   nn_off_idx   specifies the time_counter index within the model file 
     871!   ooo_files    specifies the files containing the model counterpart 
     872!   nn_ooo_idx   specifies the time_counter index within the model file 
    873873&namoff 
    874    off_files = "foo.nc" 
    875    nn_off_idx = 2 
     874   ooo_files = "foo.nc" 
     875   nn_ooo_idx = 2 
    876876/ 
    877877\end{verbatim}  
     
    880880\subsubsection{Multiple fields per run} 
    881881 
    882 Model field iteration is controlled via \textbf{nn\_off\_freq} which specifies 
     882Model field iteration is controlled via \textbf{nn\_ooo\_freq} which specifies 
    883883the number of model steps at which the next field gets read. For example, if 
    88488412 hourly fields are to be interpolated in a setup where 288 steps equals 24 hours. 
     
    890890!       namoff Offline obs_oper namelist 
    891891!---------------------------------------------------------------------- 
    892 !   off_files    specifies the files containing the model counterpart 
    893 !   nn_off_idx   specifies the time_counter index within the model file 
    894 !   nn_off_freq  specifies number of time steps between read operations 
     892!   ooo_files    specifies the files containing the model counterpart 
     893!   nn_ooo_idx   specifies the time_counter index within the model file 
     894!   nn_ooo_freq  specifies number of time steps between read operations 
    895895&namoff 
    896    off_files = "foo.nc" "foo.nc" 
    897    nn_off_idx = 1 2 
    898    nn_off_freq = 144 
     896   ooo_files = "foo.nc" "foo.nc" 
     897   nn_ooo_idx = 1 2 
     898   nn_ooo_freq = 144 
    899899/ 
    900900\end{verbatim}  
     
    10461046\tiny 
    10471047\begin{verbatim} 
    1048    off_files = "F.1.nc" "F.2.nc" "F.3.nc" "P.1.nc" "P.2.nc" "P.3.nc" "A.1.nc" 
    1049    nn_off_idx = 1 1 1 1 1 1 1 
     1048   ooo_files = "F.1.nc" "F.2.nc" "F.3.nc" "P.1.nc" "P.2.nc" "P.3.nc" "A.1.nc" 
     1049   nn_ooo_idx = 1 1 1 1 1 1 1 
    10501050\end{verbatim} 
    10511051\end{alltt} 
     
    10601060!       namoff Offline obs_oper namelist 
    10611061!---------------------------------------------------------------------- 
    1062 !   off_files    specifies the files containing the model counterpart 
    1063 !   nn_off_idx   specifies the time_counter index within the model file 
    1064 !   nn_off_freq  specifies number of time steps between read operations 
     1062!   ooo_files    specifies the files containing the model counterpart 
     1063!   nn_ooo_idx   specifies the time_counter index within the model file 
     1064!   nn_ooo_freq  specifies number of time steps between read operations 
    10651065&namoff 
    1066    off_files = "F.1.nc" "F.2.nc" "F.3.nc" "P.1.nc" "P.2.nc" "P.3.nc" "A.1.nc" 
    1067    nn_off_idx = 1 1 1 1 1 1 1 
     1066   ooo_files = "F.1.nc" "F.2.nc" "F.3.nc" "P.1.nc" "P.2.nc" "P.3.nc" "A.1.nc" 
     1067   nn_ooo_idx = 1 1 1 1 1 1 1 
    10681068/ 
    10691069!---------------------------------------------------------------------- 
     
    11221122In certain cases it may be desirable to include both multiple model fields per 
    11231123observation window with multiple match ups per observation. This can be achieved 
    1124 by specifying \textbf{nn\_off\_freq} as well as the class 4 settings. Care must 
    1125 be taken in generating the off\_files list such that the files are arranged into 
     1124by specifying \textbf{nn\_ooo\_freq} as well as the class 4 settings. Care must 
     1125be taken in generating the ooo\_files list such that the files are arranged into 
    11261126consecutive blocks of single match ups. For example, 2 forecast fields  
    11271127of 12 hourly data would result in 4 separate read operations but only 2 write 
     
    11311131\tiny 
    11321132\begin{verbatim} 
    1133    off_files = "F1.nc" "F1.nc" "F2.nc" "F2.nc" 
     1133   ooo_files = "F1.nc" "F1.nc" "F2.nc" "F2.nc" 
    11341134... 
    11351135   cl4_fcst_idx = 1 2 
  • branches/2013/dev_r3987_UKMO4_OBS/NEMOGCM/NEMO/OOO_SRC/namelist

    r4095 r4117  
    33!       namoff Offline obs_oper namelist 
    44!---------------------------------------------------------------------- 
    5 !   off_files     specifies the files containing the model counterpart 
    6 !   nn_off_idx    specifies the index within the model file 
    7 !   nn_off_freq   specifies the number of timesteps between file reads 
     5!   ooo_files     specifies the files containing the model counterpart 
     6!   nn_ooo_idx    specifies the index within the model file 
     7!   nn_ooo_freq   specifies the number of timesteps between file reads 
    88&namoff 
    9    off_files = 'fcst.0.nc' 
    10    nn_off_idx = 1 
     9   ooo_files = 'fcst.0.nc' 
     10   nn_ooo_idx = 1 
    1111/ 
    1212!---------------------------------------------------------------------- 
  • branches/2013/dev_r3987_UKMO4_OBS/NEMOGCM/NEMO/OOO_SRC/obs_fbm.F90

    r4110 r4117  
    15641564      !! ** Purpose : Write an obfbdata structure into a class 4 file. 
    15651565      !! 
    1566       !! ** Method  : 1. Allocate memory needed by off_wri 
     1566      !! ** Method  : 1. Allocate memory needed by ooo_write 
    15671567      !!              2. Map obfbdata into allocated memory 
    1568       !!              3. Pass mapped data to off_wri 
     1568      !!              3. Pass mapped data to ooo_write 
    15691569      !!              4. Deallocate memory 
    15701570      !!---------------------------------------------------------------------- 
  • branches/2013/dev_r3987_UKMO4_OBS/NEMOGCM/NEMO/OOO_SRC/ooo_data.F90

    r4110 r4117  
    3131   !! Offline obs_oper settings 
    3232   CHARACTER(len=lc) :: & 
    33       & off_files(MaxNumFiles)         !: model files 
     33      & ooo_files(MaxNumFiles)         !: model files 
    3434   INTEGER            :: & 
    3535      & jifile, &                      !: current file list index 
    3636      & n_files, &                     !: number of files 
    3737      & jimatch, &                     !: current match 
    38       & nn_off_idx(MaxNumFiles), &     !: time_counter indices 
    39       & nn_off_freq                    !: read frequency in time steps 
     38      & nn_ooo_idx(MaxNumFiles), &     !: time_counter indices 
     39      & nn_ooo_freq                    !: read frequency in time steps 
    4040   CHARACTER(len=128) :: & 
    4141      & alt_file                       !: altimeter file 
     
    5555 
    5656      ! Standard offline obs_oper information 
    57       NAMELIST/namoff/off_files, nn_off_idx, nn_off_freq 
     57      NAMELIST/namoff/ooo_files, nn_ooo_idx, nn_ooo_freq 
    5858 
    5959      ! Class 4 file specifiers 
     
    6666      jifile = 1                    !: input file iteration variable  
    6767      n_files = 0                   !: number of files to cycle through 
    68       off_files(:) = ''             !: list of files to read in 
    69       nn_off_idx(:) = 0             !: list of indices inside each file 
    70       nn_off_freq = -1              !: input frequency in time steps 
     68      ooo_files(:) = ''             !: list of files to read in 
     69      nn_ooo_idx(:) = 0             !: list of indices inside each file 
     70      nn_ooo_freq = -1              !: input frequency in time steps 
    7171 
    7272      ! Class 4 initialisation 
     
    9494      ! count input files 
    9595      lmask(:) = .FALSE. 
    96       WHERE (off_files(:) /= '') lmask(:) = .TRUE. 
     96      WHERE (ooo_files(:) /= '') lmask(:) = .TRUE. 
    9797      n_files = COUNT(lmask) 
    9898 
    9999      !! Initialise sub obs window frequency 
    100       IF (nn_off_freq == -1) THEN 
     100      IF (nn_ooo_freq == -1) THEN 
    101101         !! Run length 
    102          nn_off_freq = nitend - nit000 + 1 
     102         nn_ooo_freq = nitend - nit000 + 1 
    103103      ENDIF 
    104104 
     
    111111         DO jf = 1, n_files 
    112112            WRITE(numout,'(1X,2A)') '   Input forecast file name          forecastfile = ', & 
    113                TRIM(off_files(jf)) 
     113               TRIM(ooo_files(jf)) 
    114114            WRITE(numout,*) '   Input forecast file index        forecastindex = ', & 
    115                nn_off_idx(jf) 
     115               nn_ooo_idx(jf) 
    116116            WRITE(numout,*) '   Output forecast leadtime index   leadtimeindex = ', & 
    117117               cl4_fcst_idx(jf) 
  • branches/2013/dev_r3987_UKMO4_OBS/NEMOGCM/NEMO/OOO_SRC/ooo_read.F90

    r4110 r4117  
    4242  
    4343      !! Filename, index and match-up kind 
    44       cdfilename = TRIM(off_files(kfile)) 
     44      cdfilename = TRIM(ooo_files(kfile)) 
    4545      cmatchname = TRIM(cl4_vars(kfile)) 
    46       kindex = nn_off_idx(kfile) 
     46      kindex = nn_ooo_idx(kfile) 
    4747 
    4848      !! Update model fields 
  • branches/2013/dev_r3987_UKMO4_OBS/NEMOGCM/NEMO/OOO_SRC/ooomod.F90

    r4110 r4117  
    7575         DO WHILE ( istp <= nitend .AND. nstop == 0 ) 
    7676            IF (jifile <= n_files + 1) THEN 
    77                IF ( MOD(istp, nn_off_freq) == nit000 ) THEN 
     77               IF ( MOD(istp, nn_ooo_freq) == nit000 ) THEN 
    7878                  !! Read next model counterpart 
    7979                  CALL ooo_rea_dri(jifile) 
Note: See TracChangeset for help on using the changeset viewer.