subroutine instant_ncdescription_islice implicit none integer :: n do n=1,nslicevars select case(slicevars(3*n-2:3*n-1)) case('u0') call ncinfo( isliceVars(n,:), 'u' , 'Streamwise velocity' , 'm/s' , 'tttt' ) case('v0') call ncinfo( isliceVars(n,:), 'v' , 'Spanwise velocity' , 'm/s' , 'tmtt' ) case('w0') call ncinfo( isliceVars(n,:), 'w' , 'Vertical velocity' , 'm/s' , 'ttmt' ) case('p0') call ncinfo( isliceVars(n,:), 'p' , 'Kinematic Pressure' , 'm^2/s^2' , 'tttt' ) case('pa') call ncinfo( isliceVars(n,:), 'pabs', 'Hydrostatic absolute pressure', 'Pa', 'tttt' ) case('th') if (ltempeq) call ncinfo( isliceVars(n,:), 'thl' , 'Liquid water potential temperature', 'K', 'tttt' ) case('ta') if (ltempeq) call ncinfo( isliceVars(n,:), 'tha' , 'Air temperature', 'K', 'tttt' ) case('rh') if (ltempeq .and. lmoist) call ncinfo( isliceVars(n,:), 'rh', 'Relative humidity', '%', 'tttt' ) case('qt') if (lmoist) call ncinfo( isliceVars(n,:), 'qt' , 'Total water specific humidity', 'kg/kg' , 'tttt' ) case('ql') if (lmoist) call ncinfo( isliceVars(n,:), 'ql' , 'Liquid-water specific humidity', 'kg/kg', 'tttt' ) case('s1') if (nsv>0) call ncinfo( isliceVars(n,:), 's1' , 'Concentration field 1' , 'g/m^3' , 'tttt' ) case('s2') if (nsv>1) call ncinfo( isliceVars(n,:), 's2' , 'Concentration field 2' , 'g/m^3' , 'tttt' ) case('s3') if (nsv>2) call ncinfo( isliceVars(n,:), 's3' , 'Concentration field 3' , 'g/m^3' , 'tttt' ) case('s4') if (nsv>3) call ncinfo( isliceVars(n,:), 's4' , 'Concentration field 4' , 'g/m^3' , 'tttt' ) case default print *, "Invalid slice variables name. Check namoptions setting for 'slicevars'. & &The variables can be only from the list: u0,v0,w0,p0,pa,th,ta,rh,qt,ql,s1,s2,s3,s4. & &There should not be any space in the string. " STOP 1 end select end do end subroutine instant_ncdescription_islice