<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<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 ContentPasted0">
Yes, it is in grib2 format. I forgot to mention this info in my original mail.<br>
<br>
I get the following error in gribmap generating the ctl file:<br>
<br>
<blockquote style="margin-top:0;margin-bottom:0">gribmap: scanning GRIB2 file: mvar_data.ecmwf_hourly.00z.090.gr2
<div class="ContentPasted0">getdrstemplate: DRS Template 5.42 not defined.</div>
<div class="ContentPasted0">gribmap: ERROR! g2_getfld failed: ierr=12</div>
</blockquote>
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof ContentPasted0 ContentPasted1">
Info about Data Representation Template 5.42: <a href="https://www.nco.ncep.noaa.gov/pmb/docs/grib2/grib2_doc/grib2_temp5-42.shtml" id="LPlnk989860">https://www.nco.ncep.noaa.gov/pmb/docs/grib2/grib2_doc/grib2_temp5-42.shtml</a></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof ContentPasted0 ContentPasted1">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof ContentPasted0 ContentPasted1">
At the very least, libaec needs to be linked in, and any build option for supporting CCSDS encoding/decoding needs to be enabled; however, I couldn't find any in the configure script.</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> gradsusr <gradsusr-bounces@gradsusr.org> on behalf of Jennifer M Adams <jadams21@gmu.edu><br>
<b>Sent:</b> Tuesday, May 30, 2023 11:30 AM<br>
<b>To:</b> GrADS Users Forum <gradsusr@gradsusr.org><br>
<b>Subject:</b> [EXTERNAL] Re: [gradsusr] GRADS control file for CMAQ output (PDEF)</font>
<div> </div>
</div>
<div>
<div style="display:none!important; display:none; visibility:hidden; font-size:1px; color:#ffffff; line-height:1px; height:0px; max-height:0px; opacity:0; overflow:hidden">
Is this data in GRIB format? I usually rely on grib2ctl or g2ctl to set PDEF parameters for me. From: gradsusr <gradsusr-bounces@ gradsusr. org> on behalf of Irena Ivanova <iivanov@ gmu. edu> Sent: Thursday, May 4, 2023 5: 44 PM To: 
</div>
<div style="display:none!important; display:none; visibility:hidden; font-size:1px; color:#ffffff; line-height:1px; height:0px; max-height:0px; opacity:0; overflow:hidden">
ZjQcmQRYFpfptBannerStart</div>
<div dir="ltr" lang="en" id="x_pfptBanneryti7trg" style="display:block!important; text-align:left!important; margin:16px 0px 16px 0px!important; padding:8px 16px 8px 16px!important; border-radius:4px!important; min-width:200px!important; background-color:#D0D8DC!important; background-color:#D0D8DC; border-top:4px solid #90a4ae!important; border-top:4px solid #90a4ae">
<div id="x_pfptBanneryti7trg" style="float:left!important; display:block!important; margin:0px 0px 1px 0px!important; max-width:600px!important">
<div id="x_pfptBanneryti7trg" style="display:block!important; visibility:visible!important; background-color:#D0D8DC!important; color:#000000!important; color:#000000; font-family:'Arial',sans-serif!important; font-family:'Arial',sans-serif; font-weight:bold!important; font-weight:bold; font-size:14px!important; line-height:18px!important; line-height:18px">
This Message Is From an External Sender </div>
<div id="x_pfptBanneryti7trg" style="display:block!important; visibility:visible!important; background-color:#D0D8DC!important; color:#000000!important; color:#000000; font-weight:normal; font-family:'Arial',sans-serif!important; font-family:'Arial',sans-serif; font-size:12px!important; line-height:18px!important; line-height:18px; margin-top:2px!important">
This message came from outside your organization. </div>
</div>
<div style="clear:both!important; display:block!important; visibility:hidden!important; line-height:0!important; font-size:0.01px!important; height:0px">
 </div>
</div>
<div style="display:none!important; display:none; visibility:hidden; font-size:1px; color:#ffffff; line-height:1px; height:0px; max-height:0px; opacity:0; overflow:hidden">
ZjQcmQRYFpfptBannerEnd</div>
<style>
<!--
#x_pfptBanneryti7trg
        {display:block!important;
        visibility:visible!important;
        opacity:1!important;
        background-color:#D0D8DC!important;
        max-width:none!important;
        max-height:none!important}
-->
</style><style type="text/css" style="display:none">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div class="x_elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Is this data in GRIB format? I usually rely on grib2ctl or g2ctl to set PDEF parameters for me.
<br>
</div>
<div id="x_appendonsend"></div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> gradsusr <gradsusr-bounces@gradsusr.org> on behalf of Irena Ivanova <iivanov@gmu.edu><br>
<b>Sent:</b> Thursday, May 4, 2023 5:44 PM<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>
<style type="text/css" style="display:none">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div class="x_x_elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hi, </div>
<div class="x_x_elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div class="x_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_x_elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div class="x_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_x_elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div class="x_x_elementToProof x_x_ContentPasted1 x_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_x_elementToProof x_x_ContentPasted1 x_x_ContentPasted4 x_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_x_ContentPasted5 x_x_elementToProof">*Args:</div>
<div class="x_x_ContentPasted5">*isize  The size of the native grid in the x direction</div>
<div class="x_x_ContentPasted5">*jsize  The size of the native grid in the y direction</div>
<div class="x_x_ContentPasted5">*latref reference latitude</div>
<div class="x_x_ContentPasted5">*lonref reference longitude (in degrees, E is positive, W is negative)</div>
<div class="x_x_ContentPasted5">*iref   i of ref point</div>
<div class="x_x_ContentPasted5">*jref   j of ref point</div>
<div class="x_x_ContentPasted5">*Struelat       S true lat</div>
<div class="x_x_ContentPasted5">*Ntruelat       N true lat</div>
<div class="x_x_ContentPasted5">*slon   standard longitude</div>
<div class="x_x_ContentPasted5">*dx     grid X increment in meters</div>
*dy     grid Y increment in meters<br>
</div>
<div class="x_x_elementToProof x_x_ContentPasted1 x_x_ContentPasted4 x_x_ContentPasted5" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div class="x_x_elementToProof x_x_ContentPasted1 x_x_ContentPasted4 x_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_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_x_elementToProof x_x_ContentPasted1 x_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_x_elementToProof x_x_ContentPasted1 x_x_ContentPasted2" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div class="x_x_elementToProof x_x_ContentPasted1 x_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_x_elementToProof x_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_x_ContentPasted3">
ydef 500 linear   20.   0.1169081<br>
</div>
<div class="x_x_elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div class="x_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_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_x_elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div class="x_x_elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div class="x_x_elementToProof x_x_ContentPasted0" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
// global attributes:
<div class="x_x_ContentPasted0">                :IOAPI_VERSION = "ioapi-3.2: $Id: init3.F90 185 2020-08-28 16:49:45Z co" ;</div>
<div class="x_x_ContentPasted0">                :EXEC_ID = "CMAQ_CCTMv531_sma8_20230412_212323_441724109                                    " ;</div>
<div class="x_x_ContentPasted0">                :FTYPE = 1 ;</div>
<div class="x_x_ContentPasted0">                :CDATE = 2023102 ;</div>
<div class="x_x_ContentPasted0">                :CTIME = 212328 ;</div>
<div class="x_x_ContentPasted0">                :WDATE = 2023102 ;</div>
<div class="x_x_ContentPasted0">                :WTIME = 212328 ;</div>
<div class="x_x_ContentPasted0">                :SDATE = 2019209 ;</div>
<div class="x_x_ContentPasted0">                :STIME = 0 ;</div>
<div class="x_x_ContentPasted0">                :TSTEP = 10000 ;</div>
<div class="x_x_ContentPasted0">                :NTHIK = 1 ;</div>
<div class="x_x_ContentPasted0">                :NCOLS = 442 ;</div>
<div class="x_x_ContentPasted0">                :NROWS = 265 ;</div>
<div class="x_x_ContentPasted0">                :NLAYS = 35 ;</div>
<div class="x_x_ContentPasted0">                :NVARS = 226 ;</div>
<div class="x_x_ContentPasted0">                :<span style="color:rgb(237,92,87)">GDTYP = 2</span> ;</div>
<div class="x_x_ContentPasted0">                :P_ALP = 33. ;</div>
<div class="x_x_ContentPasted0">                :P_BET = 45. ;</div>
<div class="x_x_ContentPasted0">                :P_GAM = -97. ;</div>
<div class="x_x_ContentPasted0">                :XCENT = -97. ;</div>
<div class="x_x_ContentPasted0">                :YCENT = 40. ;</div>
<div class="x_x_ContentPasted0">                :XORIG = -2508000. ;</div>
<div class="x_x_ContentPasted0">                :YORIG = -1716000. ;</div>
<div class="x_x_ContentPasted0">                :XCELL = 12000. ;</div>
<div class="x_x_ContentPasted0">                :YCELL = 12000. ;</div>
<div class="x_x_ContentPasted0">                :VGTYP = -9999 ;</div>
<div class="x_x_ContentPasted0">                :VGTOP = 0.999f ;</div>
<div class="x_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_x_ContentPasted0">                :GDNAM = "AQF5X           " ;</div>
<div class="x_x_ContentPasted0">                :UPNAM = "OPACONC         " ;</div>
                :VAR-LIST = "NO2             NO              O               O3 ...<br>
</div>
<div class="x_x_elementToProof x_x_ContentPasted0" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div class="x_x_elementToProof x_x_ContentPasted0" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div class="x_x_elementToProof x_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_x_elementToProof x_x_ContentPasted0" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div class="x_x_elementToProof x_x_ContentPasted0" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Irena </div>
</div>
</div>
</body>
</html>