[ncl-talk] Ways to speed up efficiency of ncl script

Walter Kolczynski walter.kolczynski at noaa.gov
Thu Mar 10 14:08:47 MST 2016


First obvious thing I've found is that you are rereading all of those 
3-D fields from the file at every level, resulting in 7x the I/O. All of 
those reads should be moved outside of the inner loop so you only read 
the data once and subset as needed.

- Walter

On 2016-03-10 15:57, Andrew Kren - NOAA Affiliate wrote:
> Dear ncl-talk,
>
> I'm running this script (attached) twice daily to grab NAM forecast 
> model data and plot results. It plots data at each hour and several 
> pressure levels for two regional domains over the U.S. The program 
> works great, though it takes 200 minutes to finish, and I'm wondering 
> what I may be doing that is redundant that is slowing it down? I tried 
> to eliminate some things but it didn't seem to help. Are there any 
> suggestions for how to make this code more efficient?
>
> Thanks for your always reliable help!
>
> -- 
> Andrew Kren, PhD
> Research Scientist I, Global Observing Systems Analysis (GOSA) Group
> NOAA ESRL Global Systems Division (Rm 3C515)
> 325 Broadway, Boulder, CO 80305
> (303) 497-5418 <tel:%28303%29%20497-5418>
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk



---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160310/be72cd47/attachment.html 


More information about the ncl-talk mailing list