- Timestamp:
- 2021-10-18T14:42:58+02:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/UKMO/NEMO_4.0.4_generic_obs/src/OCE/OBS/obs_read_prof.F90
r15228 r15395 164 164 LOGICAL :: lldavtimset 165 165 LOGICAL :: llcycle 166 LOGICAL :: llpotm 166 167 TYPE(obfbdata), POINTER, DIMENSION(:) :: & 167 168 & inpfiles … … 867 868 868 869 ! Extra variables 870 ! Special consideration for if the extra variable is called TEMP 871 ! and there's a regular variable called POTM. These are in situ 872 ! and potential temperature respectively, and need the same QC checks 869 873 IF ( iextr > 0 ) THEN 870 874 profdata%vext%nepidx(ip3dt) = iprof 871 875 profdata%vext%nelidx(ip3dt) = ij 872 876 DO jext = 1, iextr 873 profdata%vext%eobs(ip3dt,kextr+jext) = inpfiles(jj)%pext(ij,ji,jext) 877 IF ( TRIM(inpfiles(jj)%cextname(jext)) == 'TEMP' ) THEN 878 llpotm = .false. 879 DO jvar = 1, kvars 880 IF ( TRIM(inpfiles(jj)%cname(jvar)) == 'POTM' ) THEN 881 IF ( ( .NOT. BTEST(inpfiles(jj)%ivlqc(ij,ji,jvar),2) .AND. & 882 & .NOT. BTEST(inpfiles(jj)%idqc(ij,ji),2) .AND. & 883 & ldvar(jvar) ) ) THEN 884 profdata%vext%eobs(ip3dt,kextr+jext) = inpfiles(jj)%pext(ij,ji,jext) 885 ELSE 886 profdata%vext%eobs(ip3dt,kextr+jext) = fbrmdi 887 ENDIF 888 llpotm = .true. 889 EXIT 890 ENDIF 891 END DO 892 IF ( .NOT. llpotm ) THEN 893 profdata%vext%eobs(ip3dt,kextr+jext) = inpfiles(jj)%pext(ij,ji,jext) 894 ENDIF 895 ELSE 896 profdata%vext%eobs(ip3dt,kextr+jext) = inpfiles(jj)%pext(ij,ji,jext) 897 ENDIF 874 898 END DO 875 899 ENDIF
Note: See TracChangeset
for help on using the changeset viewer.