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 12035 for branches/UKMO/dev_r5518_obs_oper_update_SlaAssim/NEMOGCM/NEMO/OPA_SRC/OBS/obs_read_surf.F90 – NEMO

Ignore:
Timestamp:
2019-12-03T12:20:53+01:00 (4 years ago)
Author:
kingr
Message:

Added option to remove tides from SLA by taking average over 24h50m.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/UKMO/dev_r5518_obs_oper_update_SlaAssim/NEMOGCM/NEMO/OPA_SRC/OBS/obs_read_surf.F90

    r11863 r12035  
    3939 
    4040   SUBROUTINE obs_rea_surf( surfdata, knumfiles, cdfilenames, & 
    41       &                     kvars, kextr, kstp, ddobsini, ddobsend, & 
     41      &                     kvars, kextr, kstp, ddobsini, ddobsend, MeanPeriodHours, & 
    4242      &                     ldignmis, ldmod, ldnightav, ldclim, cdvars ) 
    4343      !!--------------------------------------------------------------------- 
     
    7474      REAL(dp), INTENT(IN) :: ddobsini   ! Obs. ini time in YYYYMMDD.HHMMSS 
    7575      REAL(dp), INTENT(IN) :: ddobsend   ! Obs. end time in YYYYMMDD.HHMMSS 
     76      REAL(wp), INTENT(IN) :: MeanPeriodHours ! Averaging period in hours 
    7677      CHARACTER(len=8), DIMENSION(kvars), INTENT(IN) :: cdvars 
    7778 
     
    280281               inpfiles(jj)%iobsj = -1 
    281282            ENDIF 
     283 
     284            !If the observations are representing a time mean then set the time 
     285            !of the obs to the end of that meaning period relative to the start of the run 
     286            IF ( MeanPeriodHours > 0._wp ) THEN 
     287               DO ji = 1, inpfiles(jj)%nobs 
     288                  inpfiles(jj)%ptim(ji) = & 
     289                        & djulini(jj) + (MeanPeriodHours/24.) 
     290               END DO 
     291            ENDIF    
     292 
    282293            inowin = 0 
    283294            DO ji = 1, inpfiles(jj)%nobs 
Note: See TracChangeset for help on using the changeset viewer.