[ncl-talk] Script producing two png files, I only want one of them?

Srishti Dasarathy srdasara at ucsd.edu
Tue Feb 19 15:58:36 MST 2019


Hi Rick, 

Thank you, this worked great! I appreciate it. 

Best wishes,
Srishti

> On Feb 18, 2019, at 8:26 PM, Rick Brownrigg <brownrig at ucar.edu> wrote:
> 
> Ok, not sure, but at line 235,   "res at gsnDraw = True". This should be set to False. Apologies for not catching that the first time around. 
> 
> In general, any of the gsn_xxxx routines draw their graphics immediately upon being called, unless @gsnDraw and @gsnFrame are set to False. Normally, this default behavior is what users want, but when doing an overlay, or a panel plot, or annotating a plot with markers/text/polylines/etc, its important that these resources be set to False, so that all of the graphical results can be "accumulated" and output on a single frame/page/image.
> 
> 
> 
> On Mon, Feb 18, 2019 at 3:15 PM Srishti Dasarathy <srdasara at ucsd.edu <mailto:srdasara at ucsd.edu>> wrote:
> Wrong attachment in the earlier message, apologies. Reattached... 
> 
> On Mon, Feb 18, 2019 at 2:14 PM Srishti Dasarathy <srdasara at ucsd.edu <mailto:srdasara at ucsd.edu>> wrote:
> Hi Rick, 
> 
> Thanks for the help. I commented out the frame(wks) in line 239, but now the image (attached) is being produced... Any advice? 
> 
> Thanks,
> Srishti
> 
> On Mon, Feb 18, 2019 at 1:29 PM Rick Brownrigg <brownrig at ucar.edu <mailto:brownrig at ucar.edu>> wrote:
> Hi,
> 
> It looks like around line 239 of your script, right after generating the first of the two plots that make up the panel plot, there is a call to "frame(wks)" which would cause the first plot to get generated. It subsequently gets drawn again with the second plot in the call to gsn_panel(). Take e pair, there is a call to "frame(wks)" which would cause the first plot to get generated. out the frame() call.
> 
> HTH...
> Rick
> 
> On Mon, Feb 18, 2019 at 2:07 PM Srishti Dasarathy <srdasara at ucsd.edu <mailto:srdasara at ucsd.edu>> wrote:
> Dear NCL-talk,
> 
> Hope that this email finds you all well. I've attached a script that plots the total backscatter coefficient from hdf files, and it works well! However, it produces two png plots for each hdf file -- one is solely backscatter, whereas the second is backscatter plus a map of the satellite track. I only want the second png file, and I'm not sure why two png files are being produced. Any help would be appreciated, I'm sure this is something in the script that I am simply overlooking! 
> 
> Thank you,
> Srishti
> 
> -- 
> Srishti Dasarathy
> Graduate Student
> Integrative Oceanography Division
> Scripps Institution of Oceanography
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu <mailto:ncl-talk at ucar.edu>
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk <http://mailman.ucar.edu/mailman/listinfo/ncl-talk>
> 
> 
> -- 
> Srishti Dasarathy
> Graduate Student
> Integrative Oceanography Division
> Scripps Institution of Oceanography
> 
> 
> -- 
> Srishti Dasarathy
> Graduate Student
> Integrative Oceanography Division
> Scripps Institution of Oceanography

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20190219/eeecef8a/attachment.html>


More information about the ncl-talk mailing list