<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<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);">
Thank you very much for sharing this link, Jennifer!</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
After more research and trial-and-erroring, I've been able to get the desired result by calling xcbar as an option within color.gs and setting all the display colors/xcbar before displaying the grib variable - voila!</div>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I will keep your cmorph_nicam.gs option as a backup though!</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Best,</div>
<div id="Signature">
<div>
<div id="divtagdefaultwrapper" dir="ltr" style="color:rgb(0,0,0); background-color:rgb(255,255,255); font-family:Calibri,Arial,Helvetica,sans-serif">
</div>
<div dir="ltr" style="color:rgb(0,0,0); background-color:rgb(255,255,255); font-family:Calibri,Arial,Helvetica,sans-serif">
<div style="font-size:13px; color:rgb(0,0,0); font-family:Tahoma"><font face="Calibri,Arial,Helvetica,sans-serif"><font face="Calibri,Arial,Helvetica,sans-serif" size="2" color="#006FC9"><span style="font-size:12pt"><br>
</span></font></font></div>
<span style="font-size:12pt; font-size:12pt"></span>
<div style="font-size:13px; color:rgb(0,0,0); font-family:Tahoma"><font face="Calibri,Arial,Helvetica,sans-serif"><font face="Calibri,Arial,Helvetica,sans-serif" size="2" color="#006FC9" style=""><span style="font-size:11pt"><b><span style="font-size:14pt">Aaron
 Perry</span></b></span></font></font></div>
<div style="color:rgb(0,0,0); font-family:Tahoma"><font face="Calibri,Arial,Helvetica,sans-serif" style=""><font face="Calibri,Arial,Helvetica,sans-serif" size="2" color="#006FC9" style="font-size:13px"><span style="font-size:11pt"><span style="font-size:14pt"></span></span></font><font face="Calibri,Arial,Helvetica,sans-serif" color="#006FC9" style=""><span style="font-size:12pt">Meteorologist<br>
</span><span style="font-size:12pt"></span></font><font face="Calibri,Arial,Helvetica,sans-serif" size="2" color="#006FC9" style="font-size:13px"><span style="font-size:12pt">Class of '16</span></font><font face="Calibri,Arial,Helvetica,sans-serif" size="2" color="#006FC9" style="font-size:13px"><span style="font-size:12pt"><br>
</span></font><font face="Calibri,Arial,Helvetica,sans-serif" size="2" color="#006FC9" style="font-size:13px"><span style="font-size:12pt">Northern Vermont University-Lyndon</span></font></font></div>
<div style="font-size:13px; color:rgb(0,0,0); font-family:Tahoma"><font face="Calibri,Arial,Helvetica,sans-serif"><font face="Calibri,Arial,Helvetica,sans-serif" size="2" color="#006FC9"><span style="font-size:12pt"><span style="font-size:10pt">(formerly </span><span style="font-size:10pt">Lyndon
 State College)</span></span></font><font face="Calibri,Arial,Helvetica,sans-serif" size="2" color="#006FC9"><span style="font-size:12pt"><br>
<span style="font-size:12pt"></span><span style="font-size:12pt">Boston, Mass.</span></span></font></font></div>
<span style="font-size:12pt"></span>
<div style="font-size:13px; color:rgb(0,0,0); font-family:Tahoma"><font face="Calibri,Arial,Helvetica,sans-serif"><font size="2" color="#006FC9"><span style="font-size:12pt"><span style="font-size:12pt">Twitter:
</span><a href="https://twitter.com/AaronPerryWx" class="OWAAutoLink"><span style="font-size:12pt">@AaronPerryWx</span></a></span></font><font size="2"><span style="font-size:11pt"><span style="font-size:12pt"><a href="https://twitter.com/arnpry" target="_blank" id="LPNoLP"></a><a href="https://twitter.com/AaronPerryWx" class="OWAAutoLink"></a></span></span></font></font></div>
<span style="font-size:12pt"></span>
<div style="font-size:13px; color:rgb(0,0,0); font-family:Tahoma"><font face="Calibri,Arial,Helvetica,sans-serif"><font face="Calibri,Arial,Helvetica,sans-serif" size="2" color="#006FC9"><span style="font-size:12pt">Email: </span></font><font face="Calibri,Arial,Helvetica,sans-serif" size="2"><span style="font-size:12pt"><a href="mailto:axp09171@vsc.edu" title="axp09171@vsc.edu">axp09171@vsc.edu</a></span></font></font></div>
</div>
</div>
</div>
</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 Adams, Jennifer M. (GSFC-610.2)[ADNET SYSTEMS INC] <jennifer.m.adams@nasa.gov><br>
<b>Sent:</b> Tuesday, April 19, 2022 12:32 PM<br>
<b>To:</b> GrADS Users Forum <gradsusr@gradsusr.org><br>
<b>Subject:</b> Re: [gradsusr] [EXTERNAL] Re: Plotting xcbar.gs Even When There is No Valid Data</font>
<div> </div>
</div>
<style>
<!--
@font-face
        {font-family:"Cambria Math"}
@font-face
        {font-family:Calibri}
@font-face
        {font-family:"Calibri Light"}
@font-face
        {font-family:Tahoma}
p.x_MsoNormal, li.x_MsoNormal, div.x_MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
h4
        {margin-right:0in;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Calibri",sans-serif;
        font-weight:bold}
a:link, span.x_MsoHyperlink
        {color:blue;
        text-decoration:underline}
span.x_Heading4Char
        {font-family:"Calibri Light",sans-serif;
        color:#2F5496;
        font-style:italic}
p.x_xxmsonormal, li.x_xxmsonormal, div.x_xxmsonormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
span.x_EmailStyle25
        {font-family:"Calibri",sans-serif;
        color:windowtext}
.x_MsoChpDefault
        {font-size:10.0pt}
@page WordSection1
        {margin:1.0in 1.0in 1.0in 1.0in}
div.x_WordSection1
        {}
-->
</style>
<div lang="EN-US" link="blue" vlink="purple" style="word-wrap:break-word">
<h4 style="display:block; color:#ff0000; background-color:white; font-size:16px; font-weight:bold">
This message is from an external sender. Please be careful when clicking on links and attachments.</h4>
<br>
<br>
<div>
<div class="x_WordSection1">
<p class="x_MsoNormal">I put an old script I wrote (back in 2009!) here for you to see an example:
<a href="https://nam04.safelinks.protection.outlook.com/?url=ftp%3A%2F%2Fcola.gmu.edu%2Fpub%2Fjma%2Fcmorph_nicam.gs&data=05%7C01%7Caxp09171%40alumni.northernvermont.edu%7C0e14aae8ff844d0a496b08da22224d3b%7Cb17e9703dbdd49fa909c03dfd13086af%7C0%7C0%7C637859828460373340%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000%7C%7C%7C&sdata=VUcc9ZWEfjOEpkxQ5MpxAvb5bo9eF9X6aoHJQ39wHhY%3D&reserved=0" originalsrc="ftp://cola.gmu.edu/pub/jma/cmorph_nicam.gs" shash="YpNyil55ZMMvE/7dW2+kKHxvOGZcbKWeVdp9LrMimg6V8Br/GHU+MsUmI32Y6jAWaUXTRDC82Tf9+ypfnh5wFlz/nP+nIj0IH9Z2l+K7qFsOujrAjcTFB8OPU5Pw3Rt+UVPXBcpWY7iu1C9LsknX377W55GMWf7M2dp2yLsZJT4=">
ftp://cola.gmu.edu/pub/jma/cmorph_nicam.gs</a></p>
<p class="x_MsoNormal">You have to copy/paste the code from xcbar.gs into your script as a function, and then _shdinfo will be shared by main script and the function.
<br>
<br>
<br>
<br>
</p>
<div>
<p class="x_MsoNormal"><span style="font-size:9.0pt">-- <span style="color:black"><br>
Jennifer Miletta Adams<br>
Senior Scientific Software Developer<br>
Goddard Earth Sciences Data and Information Services Center (GES DISC)</span></span></p>
<p class="x_MsoNormal"><span style="font-size:9.0pt; color:black">NASA/GSFC, Code 610.2</span><span style="font-size:9.0pt">
</span></p>
<p class="x_MsoNormal"><span style="font-size:9.0pt; color:#AFABAB">Building 32, Room S159</span></p>
</div>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal"> </p>
<div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0in 0in 0in">
<p class="x_MsoNormal"><b><span style="font-size:12.0pt; color:black">From: </span>
</b><span style="font-size:12.0pt; color:black">gradsusr <gradsusr-bounces@gradsusr.org> on behalf of "Perry, Aaron" <axp09171@alumni.northernvermont.edu><br>
<b>Reply-To: </b>GrADS Users Forum <gradsusr@gradsusr.org><br>
<b>Date: </b>Tuesday, April 12, 2022 at 5:33 PM<br>
<b>To: </b>GrADS Users Forum <gradsusr@gradsusr.org><br>
<b>Subject: </b>Re: [gradsusr] [EXTERNAL] Re: Plotting xcbar.gs Even When There is No Valid Data</span></p>
</div>
<div>
<p class="x_MsoNormal"> </p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black">I've modified (highlighted text) Lines 157 through 189 in xcbar.gs to save the result (a text file called ref_shade_info) of 'q shades' for future use. I'm having trouble figuring out how to
 use the _shdinfo variable you had suggested for use outside of xcbar.gs.</span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black">I've also attached ref_shade_info to this email for reference.</span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black">My colorbar is</span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div>
<p class="x_MsoNormal"><b><u><span style="font-size:12.0pt; color:black">My Attempt:</span></u></b><span style="font-size:12.0pt; color:black"></span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black">*** get shade information ***
</span></p>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black">  if( cnum = -1 )</span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black">*    'q shades'</span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black; background:yellow">     istat = 0</span><span style="font-size:12.0pt; color:black"></span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black; background:yellow">     while (istat != 2)</span><span style="font-size:12.0pt; color:black"></span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black; background:yellow">     data = read('ref_shade_info')</span><span style="font-size:12.0pt; color:black"></span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black; background:yellow">     shdinfo = sublin(data,2)</span><span style="font-size:12.0pt; color:black"></span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black; background:yellow">     say shdinfo</span><span style="font-size:12.0pt; color:black"></span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black">*    dummy=write('ref_shade_info',shdinfo)</span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black">    if ( subwrd( shdinfo, 1 ) = 'None' )
</span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black">      say 'Error in xcbar.gs: No shading information'</span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black">      return</span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black">    endif</span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black">* number of colors</span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black">    cnum = subwrd( shdinfo, 5 )</span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black">    if( cnum <= 0 )</span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black">      say 'Error in xcbar.gs: Number of color is zero'</span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black">      return</span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black">    endif</span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black">* color and (higher) levels</span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black">    i = 1</span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black">    while( i <= cnum )</span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black">      rec = sublin( shdinfo, i+1 )</span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black">      col.i = subwrd( rec, 1 )</span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black">      hi.i = subwrd( rec, 3 )</span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black">      i = i + 1</span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black">    endwhile</span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black; background:yellow">    endwhile</span><span style="font-size:12.0pt; color:black"></span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black">  endif</span></p>
</div>
<div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black">Am I on the right track?</span></p>
</div>
<div id="x_Signature">
<div>
<div>
<div>
<p class="x_MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:"Tahoma",sans-serif; color:black"> </span></p>
</div>
<div>
<p class="x_MsoNormal" style="background:white"><b><span style="font-size:14.0pt; color:#006FC9">Aaron Perry</span></b><span style="font-size:10.0pt; font-family:"Tahoma",sans-serif; color:black"></span></p>
</div>
<div>
<p class="x_MsoNormal" style="background:white"><span style="font-size:12.0pt; color:#006FC9">Meteorologist<br>
Class of '16<br>
Northern Vermont University-Lyndon</span><span style="font-family:"Tahoma",sans-serif; color:black"></span></p>
</div>
<div>
<p class="x_MsoNormal" style="background:white"><span style="font-size:10.0pt; color:#006FC9">(formerly Lyndon State College)</span><span style="font-size:12.0pt; color:#006FC9"><br>
Boston, Mass.</span><span style="font-size:10.0pt; font-family:"Tahoma",sans-serif; color:black"></span></p>
</div>
<div>
<p class="x_MsoNormal" style="background:white"><span style="font-size:12.0pt; color:#006FC9">Twitter:
<a href="https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftwitter.com%2FAaronPerryWx&data=05%7C01%7Caxp09171%40alumni.northernvermont.edu%7C0e14aae8ff844d0a496b08da22224d3b%7Cb17e9703dbdd49fa909c03dfd13086af%7C0%7C0%7C637859828460373340%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000%7C%7C%7C&sdata=3ejMYuEFyTHAL2w5JGOxGVhSCfA85a%2FXhLywQGCTWQE%3D&reserved=0" originalsrc="https://twitter.com/AaronPerryWx" shash="sTV2hOP2kDWXioU2WFyJsAmwkQSWgLd/wQb9Mi7vTpMXxY6DtqWTBH+M6zZLywX4bslyk2IhjEFP7jmpqd2IoCJNvri5z4Fg7R5QT3rVC1Ew9NXuSlrTaOaDeGwlNY3bFqsvD/fMxtdGgveDYkG59BN8Tx2xHCInm9Mz8iZzbS4=">
@AaronPerryWx</a></span><span style="font-size:10.0pt; font-family:"Tahoma",sans-serif; color:black"></span></p>
</div>
<div>
<p class="x_MsoNormal" style="background:white"><span style="font-size:12.0pt; color:#006FC9">Email: </span><span style="font-size:12.0pt; color:black"><a href="mailto:axp09171@vsc.edu" title="axp09171@vsc.edu">axp09171@vsc.edu</a></span><span style="font-size:10.0pt; font-family:"Tahoma",sans-serif; color:black"></span></p>
</div>
</div>
</div>
</div>
</div>
<div class="x_MsoNormal" align="center" style="text-align:center">
<hr size="0" width="100%" align="center">
</div>
<div id="x_divRplyFwdMsg">
<p class="x_MsoNormal"><b><span style="color:black">From:</span></b><span style="color:black"> gradsusr <gradsusr-bounces@gradsusr.org> on behalf of Perry, Aaron <axp09171@alumni.northernvermont.edu><br>
<b>Sent:</b> Tuesday, April 12, 2022 9:08 AM<br>
<b>To:</b> GrADS Users Forum <gradsusr@gradsusr.org><br>
<b>Subject:</b> Re: [gradsusr] [EXTERNAL] Re: Plotting xcbar.gs Even When There is No Valid Data</span>
</p>
<div>
<p class="x_MsoNormal"> </p>
</div>
</div>
<div>
<h4 style="background:white"><span style="color:red">This message is from an external sender. Please be careful when clicking on links and attachments.</span></h4>
<p class="x_MsoNormal" style="margin-bottom:12.0pt"> </p>
<div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black">Ok, thank you for that clarification!</span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black">I will give the process a try and update back later today.</span></p>
</div>
<div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div id="x_x_Signature">
<div>
<div>
<div>
<p class="x_MsoNormal" style="background:white"><b><span style="font-size:14.0pt; color:#006FC9">Aaron Perry</span></b><span style="font-size:10.0pt; font-family:"Tahoma",sans-serif; color:black"></span></p>
</div>
<div>
<p class="x_MsoNormal" style="background:white"><span style="font-size:12.0pt; color:#006FC9">Meteorologist<br>
Class of '16<br>
Northern Vermont University-Lyndon</span><span style="font-family:"Tahoma",sans-serif; color:black"></span></p>
</div>
<div>
<p class="x_MsoNormal" style="background:white"><span style="font-size:10.0pt; color:#006FC9">(formerly Lyndon State College)</span><span style="font-size:12.0pt; color:#006FC9"><br>
Boston, Mass.</span><span style="font-size:10.0pt; font-family:"Tahoma",sans-serif; color:black"></span></p>
</div>
<div>
<p class="x_MsoNormal" style="background:white"><span style="font-size:12.0pt; color:#006FC9">Twitter:
<a href="https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftwitter.com%2FAaronPerryWx&data=05%7C01%7Caxp09171%40alumni.northernvermont.edu%7C0e14aae8ff844d0a496b08da22224d3b%7Cb17e9703dbdd49fa909c03dfd13086af%7C0%7C0%7C637859828460373340%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000%7C%7C%7C&sdata=3ejMYuEFyTHAL2w5JGOxGVhSCfA85a%2FXhLywQGCTWQE%3D&reserved=0" originalsrc="https://twitter.com/AaronPerryWx" shash="sTV2hOP2kDWXioU2WFyJsAmwkQSWgLd/wQb9Mi7vTpMXxY6DtqWTBH+M6zZLywX4bslyk2IhjEFP7jmpqd2IoCJNvri5z4Fg7R5QT3rVC1Ew9NXuSlrTaOaDeGwlNY3bFqsvD/fMxtdGgveDYkG59BN8Tx2xHCInm9Mz8iZzbS4=">
@AaronPerryWx</a></span><span style="font-size:10.0pt; font-family:"Tahoma",sans-serif; color:black"></span></p>
</div>
<div>
<p class="x_MsoNormal" style="background:white"><span style="font-size:12.0pt; color:#006FC9">Email: </span><span style="font-size:12.0pt; color:black"><a href="mailto:axp09171@vsc.edu" title="axp09171@vsc.edu">axp09171@vsc.edu</a></span><span style="font-size:10.0pt; font-family:"Tahoma",sans-serif; color:black"></span></p>
</div>
</div>
</div>
</div>
</div>
<div class="x_MsoNormal" align="center" style="text-align:center">
<hr size="0" width="100%" align="center">
</div>
<div id="x_x_divRplyFwdMsg">
<p class="x_MsoNormal"><b><span style="color:black">From:</span></b><span style="color:black"> gradsusr <gradsusr-bounces@gradsusr.org> on behalf of Adams, Jennifer M. (GSFC-610.2)[ADNET SYSTEMS INC] <jennifer.m.adams@nasa.gov><br>
<b>Sent:</b> Tuesday, April 12, 2022 8:49 AM<br>
<b>To:</b> GrADS Users Forum <gradsusr@gradsusr.org><br>
<b>Subject:</b> Re: [gradsusr] [EXTERNAL] Re: Plotting xcbar.gs Even When There is No Valid Data</span>
</p>
<div>
<p class="x_MsoNormal"> </p>
</div>
</div>
<div>
<h4 style="background:white"><span style="color:red">This message is from an external sender. Please be careful when clicking on links and attachments.</span></h4>
<p class="x_MsoNormal" style="margin-bottom:12.0pt"> </p>
<div>
<div>
<p class="x_xxmsonormal">Yes, but you also need to use a modified version of xcbar.gs that uses your saved shade information instead of calling ‘q shades’ again.
</p>
<p class="x_xxmsonormal"> </p>
<div>
<p class="x_xxmsonormal"><span style="font-size:9.0pt">-- <span style="color:black"><br>
Jennifer Miletta Adams<br>
Senior Scientific Software Developer<br>
Goddard Earth Sciences Data and Information Services Center (GES DISC)</span></span></p>
<p class="x_xxmsonormal"><span style="font-size:9.0pt; color:black">NASA/GSFC, Code 610.2</span><span style="font-size:9.0pt">
</span></p>
<p class="x_xxmsonormal"><span style="font-size:9.0pt; color:#AFABAB">Building 32, Room S159</span></p>
</div>
<p class="x_xxmsonormal"> </p>
<p class="x_xxmsonormal"> </p>
<div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0in 0in 0in">
<p class="x_xxmsonormal"><b><span style="font-size:12.0pt; color:black">From: </span>
</b><span style="font-size:12.0pt; color:black">gradsusr <gradsusr-bounces@gradsusr.org> on behalf of "Perry, Aaron" <axp09171@alumni.northernvermont.edu><br>
<b>Reply-To: </b>GrADS Users Forum <gradsusr@gradsusr.org><br>
<b>Date: </b>Tuesday, April 12, 2022 at 8:45 AM<br>
<b>To: </b>GrADS Users Forum <gradsusr@gradsusr.org><br>
<b>Subject: </b>[EXTERNAL] Re: [gradsusr] Plotting xcbar.gs Even When There is No Valid Data</span></p>
</div>
<div>
<p class="x_xxmsonormal"> </p>
</div>
<div>
<p class="x_xxmsonormal"><span style="font-size:12.0pt; color:black">Thank you very much for the quick reply, Jennifer!</span></p>
</div>
<div>
<p class="x_xxmsonormal"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div>
<p class="x_xxmsonormal"><span style="font-size:12.0pt; color:black">So to reiterate, I need to save the 'q shades' output from a forecast hour with valid data and then use that same output for a forecast hour that has no data, (instead of running 'q shades'
 again on the forecast hour with no data) therefore preserving the desired colorbar on the plot.</span></p>
</div>
<div>
<div>
<p class="x_xxmsonormal"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div id="x_x_x_Signature">
<div>
<div>
<div>
<p class="x_xxmsonormal" style="background:white"><span style="font-size:10.0pt; font-family:"Tahoma",sans-serif; color:black"> </span></p>
</div>
<div>
<p class="x_xxmsonormal" style="background:white"><b><span style="font-size:14.0pt; color:#006FC9">Aaron Perry</span></b></p>
</div>
<div>
<p class="x_xxmsonormal" style="background:white"><span style="font-size:12.0pt; color:#006FC9">Meteorologist<br>
Class of '16<br>
Northern Vermont University-Lyndon</span></p>
</div>
<div>
<p class="x_xxmsonormal" style="background:white"><span style="font-size:10.0pt; color:#006FC9">(formerly Lyndon State College)</span><span style="font-size:12.0pt; color:#006FC9"><br>
Boston, Mass.</span></p>
</div>
<div>
<p class="x_xxmsonormal" style="background:white"><span style="font-size:12.0pt; color:#006FC9">Twitter:
<a href="https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftwitter.com%2FAaronPerryWx&data=05%7C01%7Caxp09171%40alumni.northernvermont.edu%7C0e14aae8ff844d0a496b08da22224d3b%7Cb17e9703dbdd49fa909c03dfd13086af%7C0%7C0%7C637859828460373340%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000%7C%7C%7C&sdata=3ejMYuEFyTHAL2w5JGOxGVhSCfA85a%2FXhLywQGCTWQE%3D&reserved=0" originalsrc="https://twitter.com/AaronPerryWx" shash="sTV2hOP2kDWXioU2WFyJsAmwkQSWgLd/wQb9Mi7vTpMXxY6DtqWTBH+M6zZLywX4bslyk2IhjEFP7jmpqd2IoCJNvri5z4Fg7R5QT3rVC1Ew9NXuSlrTaOaDeGwlNY3bFqsvD/fMxtdGgveDYkG59BN8Tx2xHCInm9Mz8iZzbS4=">
@AaronPerryWx</a></span></p>
</div>
<div>
<p class="x_xxmsonormal" style="background:white"><span style="font-size:12.0pt; color:#006FC9">Email: </span><span style="font-size:12.0pt; color:black"><a href="mailto:axp09171@vsc.edu" title="axp09171@vsc.edu">axp09171@vsc.edu</a></span></p>
</div>
</div>
</div>
</div>
</div>
<div class="x_MsoNormal" align="center" style="text-align:center">
<hr size="0" width="100%" align="center">
</div>
<div id="x_x_x_divRplyFwdMsg">
<p class="x_xxmsonormal"><b><span style="color:black">From:</span></b><span style="color:black"> gradsusr <gradsusr-bounces@gradsusr.org> on behalf of Jennifer M Adams <jadams21@gmu.edu><br>
<b>Sent:</b> Tuesday, April 12, 2022 7:31 AM<br>
<b>To:</b> (gradsusr@gradsusr.org) <gradsusr@gradsusr.org><br>
<b>Subject:</b> Re: [gradsusr] Plotting xcbar.gs Even When There is No Valid Data</span>
</p>
<div>
<p class="x_xxmsonormal"> </p>
</div>
</div>
<div>
<h4 style="background:white"><span style="color:red">This message is from an external sender. Please be careful when clicking on links and attachments.</span></h4>
<p class="x_xxmsonormal" style="margin-bottom:12.0pt"> </p>
<div>
<div>
<p class="x_xxmsonormal"><span style="font-size:12.0pt; color:black">The colorbar scripts generally run 'q shades' and then parse the output in the 'result' variable. I have worked around this by setting up a plot with the contour levels and colors I want,
 then saving the output from 'q shades' in a script variable for later use:<br>
'q shades'<br>
_shdinfo = result<br>
<br>
Then I append a modified copy of the colorbar script as a function in my main drawing script that uses _shdinfo instead of running 'q shades' again.
</span></p>
</div>
<div>
<p class="x_xxmsonormal"><span style="font-size:12.0pt; color:black">--Jennifer</span></p>
</div>
<div>
<p class="x_xxmsonormal"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div class="x_MsoNormal" align="center" style="text-align:center">
<hr size="0" width="100%" align="center">
</div>
<div id="x_x_x_x_divRplyFwdMsg">
<p class="x_xxmsonormal"><b><span style="color:black">From:</span></b><span style="color:black"> gradsusr <gradsusr-bounces@gradsusr.org> on behalf of Perry, Aaron <axp09171@alumni.northernvermont.edu><br>
<b>Sent:</b> Tuesday, April 12, 2022 4:29 AM<br>
<b>To:</b> (gradsusr@gradsusr.org) <gradsusr@gradsusr.org><br>
<b>Subject:</b> [gradsusr] Plotting xcbar.gs Even When There is No Valid Data</span>
</p>
<div>
<p class="x_xxmsonormal"> </p>
</div>
</div>
<div>
<div>
<p class="x_xxmsonormal"><span style="font-size:12.0pt; color:black">Good Morning All,</span></p>
</div>
<div>
<p class="x_xxmsonormal"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div>
<p class="x_xxmsonormal"><span style="font-size:12.0pt; color:black">I am trying to figure out a way to plot xcbar.gs even when there is no valid data in the grid to plot.</span></p>
</div>
<div>
<p class="x_xxmsonormal"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div>
<p class="x_xxmsonormal"><span style="font-size:12.0pt; color:black">For instance, there is no GFS precipitation values in a certain domain, say the Northeastern US, for Forecast Hour 12. xcbar.gs says that there is no shading information and therefore, does
 not plot a colorbar for that one frame. I want to have that precipitation colorbar plot for every frame regardless of if there is data in the grid or not.</span></p>
</div>
<div>
<div>
<p class="x_xxmsonormal"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div>
<p class="x_xxmsonormal"><span style="font-size:12.0pt; color:black">I've tried going into xcbar.gs to see if there is an override to plot regardless of valid data or not but, there doesn't appear to be.</span></p>
</div>
<div>
<p class="x_xxmsonormal"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div>
<p class="x_xxmsonormal"><span style="font-size:12.0pt; color:black">Any and all suggestions would be greatly appreciated.</span></p>
</div>
<div id="x_x_x_x_x_Signature">
<div>
<div>
<div>
<p class="x_xxmsonormal" style="background:white"><span style="font-size:10.0pt; font-family:"Tahoma",sans-serif; color:black"> </span></p>
</div>
<div>
<p class="x_xxmsonormal" style="background:white"><b><span style="font-size:14.0pt; color:#006FC9">Aaron Perry</span></b></p>
</div>
<div>
<p class="x_xxmsonormal" style="background:white"><span style="font-size:12.0pt; color:#006FC9">Meteorologist<br>
Class of '16<br>
Northern Vermont University-Lyndon</span></p>
</div>
<div>
<p class="x_xxmsonormal" style="background:white"><span style="font-size:10.0pt; color:#006FC9">(formerly Lyndon State College)</span><span style="font-size:12.0pt; color:#006FC9"><br>
Boston, Mass.</span></p>
</div>
<div>
<p class="x_xxmsonormal" style="background:white"><span style="font-size:12.0pt; color:#006FC9">Twitter:
<a href="https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsecure-web.cisco.com%2F1egToesz6FY1dQvl09040rrssQtgZSpZ37u0JC_BhMIqqGXDaOKm_GcDP8OZxfw5NJlqqFuoRKoKn2aXLLHz9lGrlKhdHibrlncd2fl0OlueWSALz8zjKx2Izbrd-LyQCFWj0MqKzgH_mksX34UIKC1VbG1_FBggf_vjEgGoxBL4zBoj1MVHm6S4jxv_uKfwbNLx3eKyftRZwBp2AWbzJ1CmTLAzSyX6MIl2g5HJ1zXFiGCIsLCK13RYrT53_lKb3Td_kTlxK4Q5KlGLw1UjBqktTn1Tp-yowSGIvKMO9CTBSsEyShaWNwIN6GLt1aw4CJj1NXJPDTnS4ANRpo3RphXFkpbfklh77_t-H9dgk-5yCcr3D8gt8zas1IivafPUV0EgxvOIzWrcY5zClfmgVUq2nOZUWKttKxLA2XKWtwLgt9CSk1kLr63d5eQykYA2fPEs3gXwIs5wJ7We-gs1AzQ%2Fhttps%253A%252F%252Ftwitter.com%252FAaronPerryWx&data=05%7C01%7Caxp09171%40alumni.northernvermont.edu%7C0e14aae8ff844d0a496b08da22224d3b%7Cb17e9703dbdd49fa909c03dfd13086af%7C0%7C0%7C637859828460373340%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000%7C%7C%7C&sdata=b591zZ%2FkvE3BhdwVAq%2FKB8RIrAofbC4Fth8Defs915M%3D&reserved=0" originalsrc="https://secure-web.cisco.com/1egToesz6FY1dQvl09040rrssQtgZSpZ37u0JC_BhMIqqGXDaOKm_GcDP8OZxfw5NJlqqFuoRKoKn2aXLLHz9lGrlKhdHibrlncd2fl0OlueWSALz8zjKx2Izbrd-LyQCFWj0MqKzgH_mksX34UIKC1VbG1_FBggf_vjEgGoxBL4zBoj1MVHm6S4jxv_uKfwbNLx3eKyftRZwBp2AWbzJ1CmTLAzSyX6MIl2g5HJ1zXFiGCIsLCK13RYrT53_lKb3Td_kTlxK4Q5KlGLw1UjBqktTn1Tp-yowSGIvKMO9CTBSsEyShaWNwIN6GLt1aw4CJj1NXJPDTnS4ANRpo3RphXFkpbfklh77_t-H9dgk-5yCcr3D8gt8zas1IivafPUV0EgxvOIzWrcY5zClfmgVUq2nOZUWKttKxLA2XKWtwLgt9CSk1kLr63d5eQykYA2fPEs3gXwIs5wJ7We-gs1AzQ/https%3A%2F%2Ftwitter.com%2FAaronPerryWx" shash="heOiEjPMygMytKtkgEyRPo4Gc/gemww7i6jrD339RKTMga7QiotHZbVWcR6eZIyUSfJObuLeSneyEpFf4Yr1IpnrDq88SwQQr45QxckJJZNhiH9PFdvx1eiZHCenpWFBBKxSvgWrJ9o7Zh5IiF+lAIiJel4QDwifw33lT6u08CA=">
@AaronPerryWx</a></span></p>
</div>
<div>
<p class="x_xxmsonormal" style="background:white"><span style="font-size:12.0pt; color:#006FC9">Email: </span><span style="font-size:12.0pt; color:black"><a href="mailto:axp09171@vsc.edu" title="axp09171@vsc.edu">axp09171@vsc.edu</a></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="x_xxmsonormal" style="background:white"> </p>
</div>
</div>
</div>
</body>
</html>