[gradsusr] [EXTERNAL] Re: Is there an easy way in GrADS to sample / aggregate a large data set instead of plotting it at full resolution?

Robert Kuligowski bob.kuligowski at noaa.gov
Tue Dec 15 17:32:56 EST 2020


All,

     Thanks for your responses!  I couldn't get skip() to work properly 
(it left gaps in the images) but lterp() worked great and I was able to 
cut the rendering time by about 85% by plotting at 1/4 the original 
resolution!

Cheers,

Bob

On 12/15/2020 12:56 PM, Adams, Jennifer M. (GSFC-610.2)[ADNET SYSTEMS 
INC] wrote:
>
> Jeff wrote:
>
> />>You can write a control file and adjust the nx and ny values in the 
> XDEF and YDEF lines /
>
> />> so that GrADS attempts to plot your fields on a coarser grid. /
>
> 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.
>
> 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.
>
> --Jennifer
>
> On Tue, Dec 15, 2020 at 7:36 AM Robert Kuligowski 
> <bob.kuligowski at noaa.gov <mailto:bob.kuligowski at noaa.gov>> wrote:
>
>     All,
>
>          I have some netCDF files with 6501 lines and 18,000 columns that
>     I'm plotting in GrADS, and creating the .png  output files is
>     taking a
>     long time.  I clearly don't need that much detail in the actual
>     image,
>     so is there a simple way to sample or aggregate the data in GrADS
>     before
>     plotting in order to make it render more quickly?  I looked
>     through the
>     documentation but wasn't able to find the droids I'm looking for. 
>     Thanks!
>
>     Cheers,
>
>     -- 
>     Bob Kuligowski, Ph.D.
>     Meteorologist
>     NOAA/NESDIS/Center for Satellite Applications and Research (STAR)
>
>     Mailing Address:
>     National Oceanic and Atmospheric Administration
>     NESDIS STAR/SMCD
>     Bob Kuligowski
>     NCWCP E/RA2
>     5830 University Research Court
>     2nd Floor, Office #2828
>     College Park, MD 20740-3818
>
>     Phone:  (301) 683-3593
>     Fax  :  (301) 683-3616
>
>     http://www.star.nesdis.noaa.gov/star/Kuligowski_B.php
>     <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>
>     http://www.star.nesdis.noaa.gov/smcd/emb/ff/index.php
>     <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>
>
>     _______________________________________________
>     gradsusr mailing list
>     gradsusr at gradsusr.org <mailto:gradsusr at gradsusr.org>
>     http://gradsusr.org/mailman/listinfo/gradsusr
>     <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>
>
>
>
> -- 
>
> Jeff Duda, Research Scientist
>
> University of Colorado Boulder
>
> Cooperative Institute for Research in Environmental Sciences
>
> NOAA/OAR/ESRL/Global Systems Laboratory
> Boulder, CO
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr

-- 
Bob Kuligowski, Ph.D.
Meteorologist
NOAA/NESDIS/Center for Satellite Applications and Research (STAR)

Mailing Address:
National Oceanic and Atmospheric Administration
NESDIS STAR/SMCD
Bob Kuligowski
NCWCP E/RA2
5830 University Research Court
2nd Floor, Office #2828
College Park, MD 20740-3818

Phone:  (301) 683-3593
Fax  :  (301) 683-3616

http://www.star.nesdis.noaa.gov/star/Kuligowski_B.php
http://www.star.nesdis.noaa.gov/smcd/emb/ff/index.php

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20201215/aff50b47/attachment-0001.html>


More information about the gradsusr mailing list