Changeset 5063 for branches/2014/dev_r4650_UKMO14.12_STAND_ALONE_OBSOPER/NEMOGCM/NEMO/SAO_SRC/sao_data.F90
- Timestamp:
- 2015-02-05T17:29:55+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2014/dev_r4650_UKMO14.12_STAND_ALONE_OBSOPER/NEMOGCM/NEMO/SAO_SRC/sao_data.F90
r4849 r5063 12 12 INTEGER, PARAMETER :: MaxNumFiles = 1000 13 13 14 !! Class 4 file settings15 INTEGER :: &16 & cl4_fcst_idx(MaxNumFiles), & !: forecast indices17 & cl4_match_len, & !: number of match types18 & cl4_fcst_len !: number of forecast days19 CHARACTER(len=lc) :: &20 & cl4_vars(MaxNumFiles), & !: class 4 variables21 & cl4_sys, & !: class 4 system22 & cl4_cfg, & !: class 4 configuration23 & cl4_date, & !: class 4 date24 & cl4_vn, & !: class 4 version25 & cl4_prefix, & !: class 4 prefix26 & cl4_contact, & !: class 4 contact27 & cl4_inst !: class 4 institute28 REAL :: cl4_modjuld !: model Julian day29 REAL :: &30 & cl4_leadtime(MaxNumFiles) !: Lead time data31 32 14 !! Stand Alone Observation operator settings 33 15 CHARACTER(len=lc) :: & 34 16 & sao_files(MaxNumFiles) !: model files 35 17 INTEGER :: & 36 & jifile, & !: current file list index37 18 & n_files, & !: number of files 38 & jimatch, & !: current match39 19 & nn_sao_idx(MaxNumFiles), & !: time_counter indices 40 20 & nn_sao_freq !: read frequency in time steps 41 CHARACTER(len=128) :: &42 & alt_file !: altimeter file43 21 CONTAINS 44 SUBROUTINE sao_data_init( ld_cl4)22 SUBROUTINE sao_data_init() 45 23 !!---------------------------------------------------------------------- 46 24 !! *** SUBROUTINE sao_data_init *** … … 53 31 & jf !: file dummy loop index 54 32 LOGICAL :: lmask(MaxNumFiles) !: Logical mask used for counting 55 LOGICAL, INTENT(IN) :: ld_cl4 !: Logical class 4 on/off56 33 INTEGER :: ios 57 34 … … 59 36 NAMELIST/namsao/sao_files, nn_sao_idx, nn_sao_freq 60 37 61 ! Class 4 file specifiers62 NAMELIST/namcl4/cl4_vars, cl4_sys, cl4_cfg, cl4_date, cl4_vn, &63 & cl4_prefix, cl4_contact, cl4_inst, cl4_leadtime, &64 & cl4_fcst_idx, cl4_fcst_len, cl4_match_len65 66 38 ! Standard offline obs_oper initialisation 67 jimatch = 0 !: match-up iteration variable68 jifile = 1 !: input file iteration variable69 39 n_files = 0 !: number of files to cycle through 70 40 sao_files(:) = '' !: list of files to read in 71 41 nn_sao_idx(:) = 0 !: list of indices inside each file 72 42 nn_sao_freq = -1 !: input frequency in time steps 73 74 ! Class 4 initialisation75 cl4_leadtime(:) = 0 !: Lead time axis value for each file76 cl4_fcst_len = 0 !: Length of the forecast dimension77 cl4_match_len = 1 !: Number of match types78 cl4_fcst_idx(:) = 0 !: output file forecast index79 cl4_vars(:) = '' !: output file variable names80 cl4_sys = '' !: output file system81 cl4_cfg = '' !: output file configuration82 cl4_date = '' !: output file date string83 cl4_vn = '' !: output file version84 cl4_prefix = 'class4' !: output file prefix85 cl4_contact = '' !: output file contact details86 cl4_inst = '' !: output file institution87 43 88 44 ! Standard offline obs_oper settings … … 95 51 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namsao in configuration namelist', .TRUE. ) 96 52 97 ! Read class 4 output settings98 IF (ld_cl4) THEN99 REWIND( numnam_ref ) ! Namelist namctl in reference namelist : Control prints & Benchmark100 READ ( numnam_ref, namcl4, IOSTAT = ios, ERR = 903 )101 903 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namcl4 in reference namelist', .TRUE. )102 103 REWIND( numnam_cfg ) ! Namelist namctl in confguration namelist : Control prints & Benchmark104 READ ( numnam_cfg, namcl4, IOSTAT = ios, ERR = 904 )105 904 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namcl4 in configuration namelist', .TRUE. )106 ENDIF107 53 108 54 ! count input files … … 122 68 WRITE(numout,*) 'offline obs_oper : Initialization' 123 69 WRITE(numout,*) '~~~~~~~~~~~~~~~~~' 124 WRITE(numout,*) ' Namelist namsao : set stand alone obs_oper parameters' 70 WRITE(numout,*) ' Namelist namsao : set stand alone obs_oper parameters' 125 71 DO jf = 1, n_files 126 72 WRITE(numout,'(1X,2A)') ' Input forecast file name forecastfile = ', & … … 128 74 WRITE(numout,*) ' Input forecast file index forecastindex = ', & 129 75 nn_sao_idx(jf) 130 WRITE(numout,*) ' Output forecast leadtime index leadtimeindex = ', &131 cl4_fcst_idx(jf)132 WRITE(numout,*) ' Output forecast leadtime value leadtimevalue = ', &133 cl4_leadtime(jf)134 WRITE(numout,'(1X,2A)') ' Input class 4 variable class 4 parameter = ', &135 TRIM(cl4_vars(jf))136 76 END DO 137 WRITE(numout, '(1X,2A)') ' Input class 4 system class 4 system = ', &138 TRIM(cl4_sys)139 WRITE(numout, '(1X,2A)') ' Input class 4 config class 4 config = ', &140 TRIM(cl4_cfg)141 WRITE(numout, '(1X,2A)') ' Input class 4 date class 4 date = ', &142 TRIM(cl4_date)143 WRITE(numout, '(1X,2A)') ' Input class 4 version class 4 version = ', &144 TRIM(cl4_vn)145 WRITE(numout, '(1X,2A)') ' Input class 4 prefix class 4 prefix = ', &146 TRIM(cl4_prefix)147 WRITE(numout, '(1X,2A)') ' Input class 4 contact class 4 contact = ', &148 TRIM(cl4_contact)149 WRITE(numout, '(1X,2A)') ' Input class 4 institute class 4 institute = ', &150 TRIM(cl4_inst)151 77 END IF 152 78
Note: See TracChangeset
for help on using the changeset viewer.