<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Hi Irena,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof" data-l-s="2786">
Here's my understanding of latref and lonref based on the CTL for NARR data from this
<a href="https://psl.noaa.gov/data/narr/format.html" title="https://psl.noaa.gov/data/narr/format.html" id="LPNoLPOWALinkPreview">
website</a>. </div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof" data-l-s="2786">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof" data-l-s="2786">
The latref and lonref in your ctl file can be your first grid point from left bottom so that you can set iref and jref as 1 and 1. In the NARR example, their left bottom grid is 1 in lat and -145 in lon.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof" data-l-s="2786">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof" data-l-s="2786">
Hope this helps!</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof" data-l-s="2786">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof" data-l-s="2786">
Haochen</div>
<div class="_Entity _EType_OWALinkPreview _EId_OWALinkPreview _EReadonly_1"></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="appendonsend"></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size: 11pt; color: rgb(0, 0, 0);"><b>From:</b> gradsusr <gradsusr-bounces@gradsusr.org> on behalf of Irena Ivanova <iivanov@gmu.edu><br>
<b>Sent:</b> Thursday, May 4, 2023 16:44<br>
<b>To:</b> gradsusr@gradsusr.org <gradsusr@gradsusr.org><br>
<b>Subject:</b> [gradsusr] GRADS control file for CMAQ output (PDEF)</font>
<div> </div>
</div>
<div dir="ltr">
<div class="x_elementToProof" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi, </div>
<div class="x_elementToProof" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="x_elementToProof" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I need help with the GRADS control file for Lambert Conformal projection.</div>
<div class="x_elementToProof" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="x_elementToProof" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I understand I need to define the grid using PDEF:</div>
<div class="x_elementToProof" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="x_elementToProof x_ContentPasted1 x_ContentPasted4" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
* PDEF isize jsize LCC latref lonref iref jref Struelat Ntruelat slon dx dy</div>
<div class="x_elementToProof x_ContentPasted1 x_ContentPasted4 x_ContentPasted5" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
*Example:       PDEF 103 69 lccr 30 -88 51.5 34.5 20 40 -88 90000 90000
<div class="x_ContentPasted5 x_elementToProof">*Args:</div>
<div class="x_ContentPasted5">*isize  The size of the native grid in the x direction</div>
<div class="x_ContentPasted5">*jsize  The size of the native grid in the y direction</div>
<div class="x_ContentPasted5">*latref reference latitude</div>
<div class="x_ContentPasted5">*lonref reference longitude (in degrees, E is positive, W is negative)</div>
<div class="x_ContentPasted5">*iref   i of ref point</div>
<div class="x_ContentPasted5">*jref   j of ref point</div>
<div class="x_ContentPasted5">*Struelat       S true lat</div>
<div class="x_ContentPasted5">*Ntruelat       N true lat</div>
<div class="x_ContentPasted5">*slon   standard longitude</div>
<div class="x_ContentPasted5">*dx     grid X increment in meters</div>
*dy     grid Y increment in meters<br>
</div>
<div class="x_elementToProof x_ContentPasted1 x_ContentPasted4 x_ContentPasted5" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="x_elementToProof x_ContentPasted1 x_ContentPasted4 x_ContentPasted5" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Here is my PDEF line but not sure what to specify for <span class="x_ContentPasted6" style="display: inline !important; background-color: rgb(255, 255, 255);">latref=? lonref=? and not sure if the other arguments are correct:</span></div>
<div class="x_elementToProof x_ContentPasted1 x_ContentPasted2" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
pdef 442 265 lcc  ???  ???  1    1    33       45       -97.   12000    12000<br>
</div>
<div class="x_elementToProof x_ContentPasted1 x_ContentPasted2" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="x_elementToProof x_ContentPasted1 x_ContentPasted2" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Here is an example lat-lon grid that covers CONUS domain (for GRADS to interpolate onto)</div>
<div class="x_elementToProof x_ContentPasted3" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
xdef  1000 linear   192. 0.1169081<br class="x_ContentPasted3">
ydef 500 linear   20.   0.1169081<br>
</div>
<div class="x_elementToProof" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="x_elementToProof" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"><br>
</span></div>
<div class="x_elementToProof" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">Here are the global attributes of the CMAQ-Offline output. I can provide the data file upon request.</span><br>
</div>
<div class="x_elementToProof" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="x_elementToProof" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="x_elementToProof x_ContentPasted0" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
// global attributes:
<div class="x_ContentPasted0">                :IOAPI_VERSION = "ioapi-3.2: $Id: init3.F90 185 2020-08-28 16:49:45Z co" ;</div>
<div class="x_ContentPasted0">                :EXEC_ID = "CMAQ_CCTMv531_sma8_20230412_212323_441724109                                    " ;</div>
<div class="x_ContentPasted0">                :FTYPE = 1 ;</div>
<div class="x_ContentPasted0">                :CDATE = 2023102 ;</div>
<div class="x_ContentPasted0">                :CTIME = 212328 ;</div>
<div class="x_ContentPasted0">                :WDATE = 2023102 ;</div>
<div class="x_ContentPasted0">                :WTIME = 212328 ;</div>
<div class="x_ContentPasted0">                :SDATE = 2019209 ;</div>
<div class="x_ContentPasted0">                :STIME = 0 ;</div>
<div class="x_ContentPasted0">                :TSTEP = 10000 ;</div>
<div class="x_ContentPasted0">                :NTHIK = 1 ;</div>
<div class="x_ContentPasted0">                :NCOLS = 442 ;</div>
<div class="x_ContentPasted0">                :NROWS = 265 ;</div>
<div class="x_ContentPasted0">                :NLAYS = 35 ;</div>
<div class="x_ContentPasted0">                :NVARS = 226 ;</div>
<div class="x_ContentPasted0">                :<span style="color: rgb(237, 92, 87);">GDTYP = 2</span> ;</div>
<div class="x_ContentPasted0">                :P_ALP = 33. ;</div>
<div class="x_ContentPasted0">                :P_BET = 45. ;</div>
<div class="x_ContentPasted0">                :P_GAM = -97. ;</div>
<div class="x_ContentPasted0">                :XCENT = -97. ;</div>
<div class="x_ContentPasted0">                :YCENT = 40. ;</div>
<div class="x_ContentPasted0">                :XORIG = -2508000. ;</div>
<div class="x_ContentPasted0">                :YORIG = -1716000. ;</div>
<div class="x_ContentPasted0">                :XCELL = 12000. ;</div>
<div class="x_ContentPasted0">                :YCELL = 12000. ;</div>
<div class="x_ContentPasted0">                :VGTYP = -9999 ;</div>
<div class="x_ContentPasted0">                :VGTOP = 0.999f ;</div>
<div class="x_ContentPasted0">                :VGLVLS = 1.f, 0.995253f, 0.990479f, 0.985679f, 0.980781f, 0.975782f, 0.970684f, 0.960187f, 0.954689f, 0.936895f, 0.930397f, 0.908404f, 0.888811f, 0.862914f, 0.829314f, 0.786714f, 0.735314f, 0.645814f, 0.614214f,
 0.582114f, 0.549714f, 0.511711f, 0.484394f, 0.451894f, 0.419694f, 0.388094f, 0.356994f, 0.326694f, 0.297694f, 0.270694f, 0.245894f, 0.223694f, 0.203594f, 0.154394f, 0.127094f, 0.f ;</div>
<div class="x_ContentPasted0">                :GDNAM = "AQF5X           " ;</div>
<div class="x_ContentPasted0">                :UPNAM = "OPACONC         " ;</div>
                :VAR-LIST = "NO2             NO              O               O3 ...<br>
</div>
<div class="x_elementToProof x_ContentPasted0" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="x_elementToProof x_ContentPasted0" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="x_elementToProof x_ContentPasted0" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Help much appreciated!</div>
<div class="x_elementToProof x_ContentPasted0" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="x_elementToProof x_ContentPasted0" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Irena </div>
</div>
</body>
</html>