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 8954 for branches/UKMO/dev_r4650_general_vert_coord_obsoper_logchl_std/NEMOGCM/NEMO/OPA_SRC/OBS/obs_read_logchl.F90 – NEMO

Ignore:
Timestamp:
2017-12-08T12:32:59+01:00 (6 years ago)
Author:
dford
Message:

Import changes from reanalysis branch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/UKMO/dev_r4650_general_vert_coord_obsoper_logchl_std/NEMOGCM/NEMO/OPA_SRC/OBS/obs_read_logchl.F90

    r7713 r8954  
    8282      INTEGER :: jj 
    8383      INTEGER :: jk 
     84      INTEGER :: jadd 
    8485      INTEGER :: iflag 
    8586      INTEGER :: inobf 
     
    115116      TYPE(obfbdata), POINTER, DIMENSION(:) :: & 
    116117         & inpfiles 
     118      LOGICAL :: ll_get_std   ! Logical for getting STD 
    117119      real(wp), DIMENSION(knumfiles) :: & 
    118120         & djulini, & 
     
    120122      INTEGER :: iobs 
    121123      INTEGER :: iobstot 
     124      INTEGER :: iaddref_std 
    122125      INTEGER :: ios 
    123126      INTEGER :: ioserrcount 
     
    205208               CALL ctl_stop( 'File format unknown' ) 
    206209            ENDIF 
     210 
     211            !------------------------------------------------------------------  
     212            ! Find the references to additional entries, if any  
     213            !------------------------------------------------------------------  
     214            ! STD  
     215            iaddref_std = 0  
     216            ll_get_std = .FALSE. 
     217            DO jadd = 1,inpfiles(jj) % nadd   
     218               IF (  TRIM(inpfiles(jj) % caddname(jadd)) == "STD" ) THEN  
     219                  iaddref_std = jadd 
     220                  ll_get_std = .TRUE.  
     221                  EXIT  
     222               ENDIF  
     223            END DO 
    207224 
    208225            !------------------------------------------------------------------ 
     
    417434                  logchldata%rmod(iobs,1) = fbrmdi 
    418435               ENDIF 
     436                   
     437               ! Copy in STD  
     438               IF ( ll_get_std ) THEN  
     439                  logchldata%rext(iobs,1) = inpfiles(jj)%padd(1,ji,iaddref_std,1)  
     440               ELSE 
     441                  IF ( jk == 1 )   & 
     442                  &   CALL ctl_warn(   & 
     443                  &   "No STD values for logchl observations, setting to zero.")  
     444                  logchldata%rext(iobs,1) = 0.  
     445               ENDIF  
    419446            ENDIF 
    420447         ENDIF 
Note: See TracChangeset for help on using the changeset viewer.