- Timestamp:
- 2021-09-24T12:33:16+02:00 (16 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/UKMO/NEMO_4.0.4_generic_obs/src/OCE/OBS/obs_readmdt.F90
r15187 r15285 31 31 32 32 PUBLIC obs_rea_mdt ! called by dia_obs_init 33 PUBLIC obs_offset_mdt ! called by obs_rea_mdt34 35 INTEGER , PUBLIC :: nn_msshc = 1 ! MDT correction scheme36 REAL(wp), PUBLIC :: rn_mdtcorr = 1.61_wp ! User specified MDT correction37 REAL(wp), PUBLIC :: rn_mdtcutoff = 65.0_wp ! MDT cutoff for computed correction38 33 39 34 !!---------------------------------------------------------------------- … … 44 39 CONTAINS 45 40 46 SUBROUTINE obs_rea_mdt( sladata, k2dint, kmdt ) 41 SUBROUTINE obs_rea_mdt( sladata, k2dint, kmdt, nn_msshc, rn_mdtcorr, & 42 rn_mdtcutoff ) 47 43 !!--------------------------------------------------------------------- 48 44 !! … … 57 53 USE iom 58 54 ! 59 TYPE(obs_surf), INTENT(inout) :: sladata ! SLA data 60 INTEGER , INTENT(in) :: k2dint ! ? 61 INTEGER , INTENT(in) :: kmdt ! Index of MDT extra var 55 TYPE(obs_surf), INTENT(inout) :: sladata ! SLA data 56 INTEGER , INTENT(in) :: k2dint ! Interpolation type 57 INTEGER , INTENT(in) :: kmdt ! Index of MDT extra var 58 INTEGER , INTENT(in) :: nn_msshc ! MDT correction scheme 59 REAL(wp) , INTENT(in) :: rn_mdtcorr ! User specified MDT correction 60 REAL(wp) , INTENT(in) :: rn_mdtcutoff ! MDT cutoff for computed correction 62 61 ! 63 62 CHARACTER(LEN=12), PARAMETER :: cpname = 'obs_rea_mdt' … … 106 105 107 106 ! Remove the offset between the MDT used with the sla and the model MDT 108 IF( nn_msshc == 1 .OR. nn_msshc == 2 ) & 109 & CALL obs_offset_mdt( jpi, jpj, z_mdt, zfill ) 107 IF( nn_msshc == 1 .OR. nn_msshc == 2 ) THEN 108 CALL obs_offset_mdt( jpi, jpj, z_mdt, zfill, nn_msshc, & 109 & rn_mdtcorr, rn_mdtcutoff ) 110 ENDIF 110 111 111 112 ! Interpolate the MDT already on the model grid at the observation point … … 170 171 171 172 172 SUBROUTINE obs_offset_mdt( kpi, kpj, mdt, zfill ) 173 SUBROUTINE obs_offset_mdt( kpi, kpj, mdt, zfill, nn_msshc, rn_mdtcorr, & 174 rn_mdtcutoff ) 173 175 !!--------------------------------------------------------------------- 174 176 !! … … 184 186 !!---------------------------------------------------------------------- 185 187 INTEGER, INTENT(IN) :: kpi, kpj 186 REAL(wp), DIMENSION(kpi,kpj), INTENT(INOUT) :: mdt ! MDT used on the model grid 187 REAL(wp) , INTENT(IN ) :: zfill 188 REAL(wp), DIMENSION(kpi,kpj), INTENT(INOUT) :: mdt ! MDT used on the model grid 189 REAL(wp) , INTENT(IN ) :: zfill ! Fill value 190 INTEGER , INTENT(IN ) :: nn_msshc ! MDT correction scheme 191 REAL(wp) , INTENT(IN ) :: rn_mdtcorr ! User specified MDT correction 192 REAL(wp) , INTENT(IN ) :: rn_mdtcutoff ! MDT cutoff for computed correction 188 193 ! 189 194 INTEGER :: ji, jj
Note: See TracChangeset
for help on using the changeset viewer.