- Timestamp:
- 2013-10-02T18:32:18+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2013/dev_r3987_UKMO4_OBS/NEMOGCM/NEMO/OOO_SRC/off_data.F90
r4030 r4048 3 3 IMPLICIT NONE 4 4 INTEGER, PARAMETER :: MaxNumFiles = 1000 5 5 6 !! Class 4 file settings 6 7 INTEGER :: & 7 & cl4_fclen, & !: number of forecast days8 & jimatch, & !: current match9 & n_match !: number of matches8 & cl4_fcst_idx(MaxNumFiles), & !: forecast indices 9 & cl4_match_len, & !: number of match types 10 & cl4_fcst_len !: number of forecast days 10 11 CHARACTER(len=lc) :: & 11 & cl4_vars(MaxNumFiles), & !: class 4 variables12 & cl4_sys, & !: class 4 system13 & cl4_cfg, & !: class 4 configuration14 & cl4_date, & !: class 4 date15 & cl4_vn, & !: class 4 version16 & cl4_prefix, & !: class 4 prefix17 & cl4_contact, & !: class 4 contact18 & cl4_inst !: class 4 institute19 REAL :: cl4_modjuld !: model Julian day12 & cl4_vars(MaxNumFiles), & !: class 4 variables 13 & cl4_sys, & !: class 4 system 14 & cl4_cfg, & !: class 4 configuration 15 & cl4_date, & !: class 4 date 16 & cl4_vn, & !: class 4 version 17 & cl4_prefix, & !: class 4 prefix 18 & cl4_contact, & !: class 4 contact 19 & cl4_inst !: class 4 institute 20 REAL :: cl4_modjuld !: model Julian day 20 21 REAL :: & 21 & cl4_leadtime(MaxNumFiles) !: Lead time data 22 & cl4_leadtime(MaxNumFiles) !: Lead time data 23 22 24 !! Offline obs_oper settings 23 25 CHARACTER(len=lc) :: & 24 & model_files(MaxNumFiles)!: model files26 & off_files(MaxNumFiles) !: model files 25 27 INTEGER :: & 26 & nn_modindex(MaxNumFiles), & !: model file indices 27 & nn_forecast(MaxNumFiles) !: forecast indices 28 & jifile, & !: current file list index 29 & n_files, & !: number of files 30 & jimatch, & !: current match 31 & nn_off_idx(MaxNumFiles), & !: time_counter indices 32 & nn_off_freq !: read frequency in time steps 28 33 CHARACTER(len=128) :: & 29 & alt_file !: altimeter file34 & alt_file !: altimeter file 30 35 CONTAINS 31 36 SUBROUTINE off_data_init( ld_cl4 ) … … 44 49 45 50 ! Standard offline obs_oper information 46 NAMELIST/namoff/ model_files, nn_modindex, nn_forecast51 NAMELIST/namoff/off_files, nn_off_idx, nn_off_freq 47 52 48 53 ! Class 4 file specifiers 49 54 NAMELIST/namcl4/cl4_vars, cl4_sys, cl4_cfg, cl4_date, cl4_vn, & 50 55 & cl4_prefix, cl4_contact, cl4_inst, cl4_leadtime, & 51 & cl4_fc len56 & cl4_fcst_idx, cl4_fcst_len, cl4_match_len 52 57 53 58 ! Standard offline obs_oper initialisation 54 jimatch = 0 !: match iteration variable 55 n_match = 0 !: number of matches to perform 56 model_files(:) = '' !: list of files to read in 57 nn_modindex(:) = 0 !: list of indices inside each file 59 jimatch = 0 !: match-up iteration variable 60 jifile = 1 !: input file iteration variable 61 n_files = 0 !: number of files to cycle through 62 off_files(:) = '' !: list of files to read in 63 nn_off_idx(:) = 0 !: list of indices inside each file 64 nn_off_freq = -1 !: input frequency in time steps 58 65 59 66 ! Class 4 initialisation 60 67 cl4_leadtime(:) = 0 !: Lead time axis value for each file 61 cl4_fclen = 0 !: Length of the forecast dimension 68 cl4_fcst_len = 0 !: Length of the forecast dimension 69 cl4_match_len = 1 !: Number of match types 70 cl4_fcst_idx(:) = 0 !: output file forecast index 62 71 cl4_vars(:) = '' !: output file variable names 63 72 cl4_sys = '' !: output file system … … 77 86 ENDIF 78 87 79 ! count forecast/persistencefiles88 ! count input files 80 89 lmask(:) = .FALSE. 81 WHERE ( model_files(:) /= '') lmask(:) = .TRUE.82 n_ match= COUNT(lmask)90 WHERE (off_files(:) /= '') lmask(:) = .TRUE. 91 n_files = COUNT(lmask) 83 92 93 !! Initialise sub obs window frequency 94 IF (nn_off_freq == -1) THEN 95 !! Run length 96 nn_off_freq = nitend - nit000 + 1 97 ENDIF 98 99 !! Print summary of settings 84 100 IF(lwp) THEN 85 101 WRITE(numout,*) … … 87 103 WRITE(numout,*) '~~~~~~~~~~~~~~~~~' 88 104 WRITE(numout,*) ' Namelist namoff : set offline obs_oper parameters' 89 DO jf = 1, n_ match105 DO jf = 1, n_files 90 106 WRITE(numout,'(1X,2A)') ' Input forecast file name forecastfile = ', & 91 TRIM( model_files(jf))107 TRIM(off_files(jf)) 92 108 WRITE(numout,*) ' Input forecast file index forecastindex = ', & 93 nn_ modindex(jf)94 WRITE(numout,*) ' Input forecast leadtime indexleadtimeindex = ', &95 nn_forecast(jf)96 WRITE(numout,*) ' Input forecast leadtime valueleadtimevalue = ', &109 nn_off_idx(jf) 110 WRITE(numout,*) ' Output forecast leadtime index leadtimeindex = ', & 111 cl4_fcst_idx(jf) 112 WRITE(numout,*) ' Output forecast leadtime value leadtimevalue = ', & 97 113 cl4_leadtime(jf) 98 114 WRITE(numout,'(1X,2A)') ' Input class 4 variable class 4 parameter = ', &
Note: See TracChangeset
for help on using the changeset viewer.