Changeset 8954
- Timestamp:
- 2017-12-08T12:32:59+01:00 (7 years ago)
- Location:
- branches/UKMO/dev_r4650_general_vert_coord_obsoper_logchl_std/NEMOGCM/NEMO/OPA_SRC/OBS
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/UKMO/dev_r4650_general_vert_coord_obsoper_logchl_std/NEMOGCM/NEMO/OPA_SRC/OBS/diaobs.F90
r7713 r8954 1166 1166 nlogchlvars = 1 1167 1167 1168 ! Set the number of extra variables for logchl to 01169 nlogchlextr = 01168 ! Set the number of extra variables for logchl to 1 (STD) 1169 nlogchlextr = 1 1170 1170 1171 1171 IF ( ln_logchlfb ) THEN -
branches/UKMO/dev_r4650_general_vert_coord_obsoper_logchl_std/NEMOGCM/NEMO/OPA_SRC/OBS/obs_read_logchl.F90
r7713 r8954 82 82 INTEGER :: jj 83 83 INTEGER :: jk 84 INTEGER :: jadd 84 85 INTEGER :: iflag 85 86 INTEGER :: inobf … … 115 116 TYPE(obfbdata), POINTER, DIMENSION(:) :: & 116 117 & inpfiles 118 LOGICAL :: ll_get_std ! Logical for getting STD 117 119 real(wp), DIMENSION(knumfiles) :: & 118 120 & djulini, & … … 120 122 INTEGER :: iobs 121 123 INTEGER :: iobstot 124 INTEGER :: iaddref_std 122 125 INTEGER :: ios 123 126 INTEGER :: ioserrcount … … 205 208 CALL ctl_stop( 'File format unknown' ) 206 209 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 207 224 208 225 !------------------------------------------------------------------ … … 417 434 logchldata%rmod(iobs,1) = fbrmdi 418 435 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 419 446 ENDIF 420 447 ENDIF -
branches/UKMO/dev_r4650_general_vert_coord_obsoper_logchl_std/NEMOGCM/NEMO/OPA_SRC/OBS/obs_write.F90
r7713 r8954 974 974 nadd = padd%inum 975 975 ELSE 976 nadd = 0976 nadd = 1 977 977 ENDIF 978 978 … … 1000 1000 fbdata%caddunit(1,1) = 'mg/m3' 1001 1001 fbdata%cgrid(1) = 'T' 1002 DO ja = 1, nadd 1003 fbdata%caddname(1+ja) = padd%cdname(ja) 1004 fbdata%caddlong(1+ja,1) = padd%cdlong(ja,1) 1005 fbdata%caddunit(1+ja,1) = padd%cdunit(ja,1) 1006 END DO 1002 IF ( PRESENT( padd ) ) THEN 1003 DO ja = 1, nadd 1004 fbdata%caddname(1+ja) = padd%cdname(ja) 1005 fbdata%caddlong(1+ja,1) = padd%cdlong(ja,1) 1006 fbdata%caddunit(1+ja,1) = padd%cdunit(ja,1) 1007 END DO 1008 ELSE 1009 fbdata%caddname(2) = 'STD' 1010 fbdata%caddlong(2) = 'Standard deviation of LOGCHL' 1011 fbdata%caddunit(2) = 'mg/m3' 1012 ENDIF 1007 1013 1008 1014 WRITE(cfname, FMT="(A,'_fdbk_',I4.4,'.nc')") TRIM(cprefix), nproc … … 1067 1073 fbdata%iobsk(1,jo,1) = 0 1068 1074 DO ja = 1, nadd 1069 fbdata%padd(1,jo,1+ja,1) = & 1070 & logchldata%rext(jo,padd%ipoint(ja)) 1075 IF ( PRESENT( padd ) ) THEN 1076 fbdata%padd(1,jo,1+ja,1) = & 1077 & logchldata%rext(jo,padd%ipoint(ja)) 1078 ELSE 1079 fbdata%padd(1,jo,1+ja,1) = & 1080 & logchldata%rext(jo,1) 1081 ENDIF 1071 1082 END DO 1072 1083 DO je = 1, next
Note: See TracChangeset
for help on using the changeset viewer.