29.01.2015 Views

Table of Contents - The Atmospheric Studies Group at TRC

Table of Contents - The Atmospheric Studies Group at TRC

Table of Contents - The Atmospheric Studies Group at TRC

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Section 8: CALMET Model Files<br />

CALMET.DAT File - D<strong>at</strong>a Records<br />

<strong>The</strong> CALMET.DAT d<strong>at</strong>a records include hourly fields <strong>of</strong> winds and meteorological variables. In addition<br />

to the regular CALMET output variables, both CALGRID and CALPUFF require additional threedimensional<br />

fields <strong>of</strong> air temper<strong>at</strong>ure and vertical velocity. <strong>The</strong> presence <strong>of</strong> these fields in the CALMET<br />

output file is flagged by the header record logical variable, LCALGRD, having a value <strong>of</strong> TRUE.<br />

<strong>The</strong> d<strong>at</strong>a records contain three-dimensional gridded fields <strong>of</strong> U, V, and W wind components and air<br />

temper<strong>at</strong>ure, and two-dimensional fields <strong>of</strong> PGT stability class, surface friction velocity, mixing height,<br />

Monin-Obukhov length, convective velocity scale, precipit<strong>at</strong>ion r<strong>at</strong>e (not used by CALGRID), nearsurface<br />

temper<strong>at</strong>ure, air density, short-wave solar radi<strong>at</strong>ion, rel<strong>at</strong>ive humidity, and precipit<strong>at</strong>ion type<br />

codes (not used by CALGRID). A description <strong>of</strong> each variable in the d<strong>at</strong>a records is provided in <strong>Table</strong> 8-<br />

27.<br />

Sample FORTRAN write st<strong>at</strong>ements for the CALMET.DAT d<strong>at</strong>a records are:<br />

c --- Write U, V, W wind components<br />

┌─<br />

Loop over vertical layers, k<br />

│<br />

│<br />

write(iunit)CLABU,NDATHRB,IBSEC,NDATHRE,IESEC,<br />

│<br />

((U(i,j,k),i=1,nx),j=1,ny)<br />

│<br />

write(iunit)CLABV, NDATHRB,IBSEC,NDATHRE,IESEC,<br />

│<br />

((V(i,j,k),i=1,nx),j=1,ny)<br />

│<br />

if(LCALGRD)write(iunit)CLABW,NDATHRB,IBSEC,NDATHRE,IESEC,<br />

│<br />

((W(i,j,k+1),i=1,nx),j=1,ny)<br />

│<br />

└─<br />

End loop over vertical layers<br />

c --- Write 3-D temper<strong>at</strong>ure field<br />

if(LCALGRD.and.irtype.eq.1) then<br />

┌─<br />

Loop over vertical layers, k<br />

│<br />

│<br />

write(iunit)CLABT, NDATHRB,IBSEC,NDATHRE,IESEC,<br />

│<br />

((ZTEMP(i,j,k),i=1,nxm),j=1,nym)<br />

│<br />

└─<br />

End loop over vertical layers<br />

endif<br />

c --- Write 2-D meteorological fields<br />

if(irtype.eq.1) then<br />

write(iunit)CLABSC, NDATHRB,IBSEC,NDATHRE,IESEC,IPGT<br />

write(iunit)CLABUS, NDATHRB,IBSEC,NDATHRE,IESEC,USTAR<br />

write(iunit)CLABZI, NDATHRB,IBSEC,NDATHRE,IESEC,ZI<br />

write(iunit)CLABL, NDATHRB,IBSEC,NDATHRE,IESEC,EL<br />

write(iunit)CLABWS, NDATHRB,IBSEC,NDATHRE,IESEC,WSTAR<br />

write(iunit)CLABRMM, NDATHRB,IBSEC,NDATHRE,IESEC,RMM<br />

8-128

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!