<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<div>
<p class="MsoNormal">Jeff wrote:<o:p></o:p></p>
</div>
<div>
<div>
<p class="MsoNormal"><i>>>You can write a control file and adjust the nx and ny values in the XDEF and YDEF lines
<o:p></o:p></i></p>
<p class="MsoNormal"><i>>> so that GrADS attempts to plot your fields on a coarser grid.
<o:p></o:p></i></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">This will only work if the grid is not rectilinear and you are using PDEF, where the XDEF/YDEF entries describe the destination grid for the pdef interpolation. Otherwise, the XDEF and YDEF entries must match the native grid.
<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">The lterp() and skip() functions will work, but I suggest using ‘define’ to copy the original grid into memory first. This will mean you do the file I/O only once, and will speed up any function you apply to the original grid.
<o:p></o:p></p>
<p class="MsoNormal">--Jennifer<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">On Tue, Dec 15, 2020 at 7:36 AM Robert Kuligowski <<a href="mailto:bob.kuligowski@noaa.gov">bob.kuligowski@noaa.gov</a>> wrote:<o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<p class="MsoNormal">All,<br>
<br>
     I have some netCDF files with 6501 lines and 18,000 columns that <br>
I'm plotting in GrADS, and creating the .png  output files is taking a <br>
long time.  I clearly don't need that much detail in the actual image, <br>
so is there a simple way to sample or aggregate the data in GrADS before <br>
plotting in order to make it render more quickly?  I looked through the <br>
documentation but wasn't able to find the droids I'm looking for.  Thanks!<br>
<br>
Cheers,<br>
<br>
-- <br>
Bob Kuligowski, Ph.D.<br>
Meteorologist<br>
NOAA/NESDIS/Center for Satellite Applications and Research (STAR)<br>
<br>
Mailing Address:<br>
National Oceanic and Atmospheric Administration<br>
NESDIS STAR/SMCD<br>
Bob Kuligowski<br>
NCWCP E/RA2<br>
5830 University Research Court<br>
2nd Floor, Office #2828<br>
College Park, MD 20740-3818<br>
<br>
Phone:  (301) 683-3593<br>
Fax  :  (301) 683-3616<br>
<br>
<a href="https://gcc02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.star.nesdis.noaa.gov%2Fstar%2FKuligowski_B.php&data=04%7C01%7Cjennifer.m.adams%40nasa.gov%7C315c22bfb3f344b97bba08d8a11df848%7C7005d45845be48ae8140d43da96dd17b%7C0%7C0%7C637436497384567088%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=XneMEb94S96wGtuJ79Z5RxGIN1rsamcavKZ82GT4S0I%3D&reserved=0" target="_blank">http://www.star.nesdis.noaa.gov/star/Kuligowski_B.php</a><br>
<a href="https://gcc02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.star.nesdis.noaa.gov%2Fsmcd%2Femb%2Fff%2Findex.php&data=04%7C01%7Cjennifer.m.adams%40nasa.gov%7C315c22bfb3f344b97bba08d8a11df848%7C7005d45845be48ae8140d43da96dd17b%7C0%7C0%7C637436497384567088%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=TJCSlpV34%2BC%2Fxg3IHH9WB1MqgT3vKOmi47u27r4ccSA%3D&reserved=0" target="_blank">http://www.star.nesdis.noaa.gov/smcd/emb/ff/index.php</a><br>
<br>
_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="https://gcc02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgradsusr.org%2Fmailman%2Flistinfo%2Fgradsusr&data=04%7C01%7Cjennifer.m.adams%40nasa.gov%7C315c22bfb3f344b97bba08d8a11df848%7C7005d45845be48ae8140d43da96dd17b%7C0%7C0%7C637436497384577049%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=c94Glc9YJ3gAT4WZMUQn%2BhRewczA4H8hj0nqzbv1dd4%3D&reserved=0" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><o:p></o:p></p>
</blockquote>
</div>
<p class="MsoNormal"><br clear="all">
<br>
-- <o:p></o:p></p>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt">Jeff Duda, Research Scientist</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">University of Colorado Boulder<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Cooperative Institute for Research in Environmental Sciences<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">NOAA/OAR/ESRL/Global Systems Laboratory<br>
<span style="font-size:10.0pt">Boulder, CO</span><o:p></o:p></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>