<div dir="ltr">Okay, thanks for explaining how the raster fill works Kyle. That does help me understand this limitation. With respect to processing time between rasterFill and areaFill. It took about 1-2 minutes for rasterFill, compared to a ball park of 4 hours for areaFill. Quite a difference!</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 30, 2014 at 1:26 PM, Kyle Griffin <span dir="ltr">&lt;<a href="mailto:ksgriffin2@wisc.edu" target="_blank">ksgriffin2@wisc.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">That&#39;s part of the definition of Raster fill - it will always create the same number of boxes regardless of resolution of the data underneath, typically based on an average of the data points within that set of grid points. Although I&#39;m not knowledgeable about the behind-the-scenes computations, I know it&#39;s common for NCL to mark the whole average as missing if any subset of that average is missing. I&#39;m not sure if there&#39;s a way to override this - a developer might need to chime in here - but that would be your only hope if you want to keep your image production time down, as the other fill modes will almost certainly be more intensive. You can scan examples of Raster Fill code here (see link) and in the contour resources page as well.<div><br></div><div><a href="https://www.ncl.ucar.edu/Applications/raster.shtml" target="_blank">https://www.ncl.ucar.edu/Applications/raster.shtml</a></div><div><br><div>If you did AreaFill or CellFill, I don&#39;t think you see much difference in the time to produce a vector file output versus a raster image output. But yes, what you are seeing is a limitation of using the RasterFill setting.</div></div><span class="HOEnZb"><font color="#888888"><div><br></div><div><br></div><div>Kyle</div></font></span></div><div class="gmail_extra"><span class=""><br clear="all"><div><div dir="ltr">----------------------------------------<div>Kyle S. Griffin</div><div>Department of Atmospheric and Oceanic Sciences</div><div>University of Wisconsin - Madison</div><div>Room 1421</div><div>1225 W Dayton St, Madison, WI 53706</div><div>Email: <a href="mailto:ksgriffin2@wisc.edu" target="_blank">ksgriffin2@wisc.edu</a></div></div></div>
<br></span><div><div class="h5"><div class="gmail_quote">On Thu, Oct 30, 2014 at 11:55 AM, Micah Sklut <span dir="ltr">&lt;<a href="mailto:micahs2005@gmail.com" target="_blank">micahs2005@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">No, I&quot;m not masking data. Yes, I am using RasterFill, and the resulting image for the Mid Atlantic is great. But, when I expand to global, I lose the high detail, no matter how much I increase the png resolution. So, just wondering why I am losing detail with the global image, and if there is a way around it. </div><div class="gmail_extra"><div><div><br><div class="gmail_quote">On Thu, Oct 30, 2014 at 12:52 PM, Kyle Griffin <span dir="ltr">&lt;<a href="mailto:ksgriffin2@wisc.edu" target="_blank">ksgriffin2@wisc.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Micah,<div><br></div><div>This seems to me the type of result you would expect when using RasterFill as a cnFillMode - the default should be cnAreaFill, which increases plot time significantly, but might that be an issue? </div><div>Otherwise, I assume you&#39;re doing nothing else to mask the data, correct? Sometimes masking data with a land mask can create similar blockiness, although I am unaware (via inexperience) as to whether there is a resolution dependence based on the plot size or native data resolution.</div><span><font color="#888888"><div><br></div><div><br></div><div>Kyle</div></font></span></div><div class="gmail_extra"><span><br clear="all"><div><div dir="ltr">----------------------------------------<div>Kyle S. Griffin</div><div>Department of Atmospheric and Oceanic Sciences</div><div>University of Wisconsin - Madison</div><div>Room 1421</div><div>1225 W Dayton St, Madison, WI 53706</div><div>Email: <a href="mailto:ksgriffin2@wisc.edu" target="_blank">ksgriffin2@wisc.edu</a></div></div></div>
<br></span><div><div><div class="gmail_quote">On Thu, Oct 30, 2014 at 11:37 AM, Micah Sklut <span dir="ltr">&lt;<a href="mailto:micahs2005@gmail.com" target="_blank">micahs2005@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Kyle, <div><br></div><div>Thanks for the reply. </div><div><br></div><div>The dataset is of 0.05 degree resolution, so that certainly isn&#39;t the problem. I have attached an image of the same data, but limiting the min/max lat/lon to the US Mid Atlantic. In this image you will see much more detail. This is the type of detail I was hoping to achieve for the entire globe. I figured if I increased the resolution of the global png, it would create the desired effect, but as you can see from the global image I attached, this wasn&#39;t the case. </div><div><br></div><div>Looking forward to hearing your thoughts. </div><div>Thank you,</div><div><br></div><div>Micah</div><div><br></div><div><br></div></div><div class="gmail_extra"><div><div><br><div class="gmail_quote">On Thu, Oct 30, 2014 at 12:26 PM, Kyle Griffin <span dir="ltr">&lt;<a href="mailto:ksgriffin2@wisc.edu" target="_blank">ksgriffin2@wisc.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Micah,<div><br></div><div>This looks more like a limitation of your dataset - SST data is not of infinite resolution, and you&#39;re plotting far more pixels than would be data points in even a 0.1˚ dataset! It looks like the internal pixels are the same size as your coastlines, so I don&#39;t see an issue with NCL there. More specifically, you are not actually plotting coastlines - they only plot if you tell them to plot with a call to gsn_csm_map or another similar plotting tool. If you&#39;re looking for high resolution coastlines, look at the RANGS mapping capabilities in NCL. Beyond that, you can always plot shapefiles as well.</div><div><br></div><div>Yes, vector images are going to be extremely large and painful for even a moderate resolution file over the full globe. When you say raster, are you talking about it in the image sense (non-vector file) or in the cnFillMode sense (RasterFill, AreaFill, etc.; <a href="https://www.ncl.ucar.edu/Document/Graphics/Resources/cn.shtml#cnFillMode" target="_blank">https://www.ncl.ucar.edu/Document/Graphics/Resources/cn.shtml#cnFillMode</a>)? Raster fill mode will make the data more blocky and reduce interpolation between points, but the trade-off is a much faster plotting of the image and works well for high-resolution datasets being plotted at relatively low resolution/wide zoom.</div><div><br></div><div><br></div><div>Kyle</div></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr">----------------------------------------<div>Kyle S. Griffin</div><div>Department of Atmospheric and Oceanic Sciences</div><div>University of Wisconsin - Madison</div><div>Room 1421</div><div>1225 W Dayton St, Madison, WI 53706</div><div>Email: <a href="mailto:ksgriffin2@wisc.edu" target="_blank">ksgriffin2@wisc.edu</a></div></div></div>
<br><div class="gmail_quote"><div><div>On Thu, Oct 30, 2014 at 9:58 AM, Micah Sklut <span dir="ltr">&lt;<a href="mailto:micahs2005@gmail.com" target="_blank">micahs2005@gmail.com</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr"><span>Hi, <div><br></div><div>This is a follow up to my previous posts, in reference to searching for high resolution images that could be used as zooming/navigating (specific interest is with image tile layers). </div><div><br></div><div>I figured if I created a png file with a high resolution, it would be able to capture the high detail, like with coastlines and so forth. </div></span><div>I&#39;ve attached an image with very high resolution (16384x16384), but as you can see, if you zoom the global image into the coastlines they are extremely blocky. </div><span><div><br></div><div>Is is possible to capture high resolution features, such as coastlines in a global raster image with NCL? </div><div><br></div><div>FYI, I tried the vector image route, but the file size was gigantic, so that didn&#39;t seem like a proper route. </div><div><br></div><div>Thank you, </div><div><div><br></div>-- <br>Micah Sklut<br>
</div></span></div>
<br></div></div>_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br><br clear="all"><div><br></div></div></div><span><font color="#888888">-- <br>Micah Sklut<br><br>
</font></span></div>
</blockquote></div><br></div></div></div>
</blockquote></div><br><br clear="all"><div><br></div></div></div><span><font color="#888888">-- <br>Micah Sklut<br><br>
</font></span></div>
</blockquote></div><br></div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Micah Sklut<br><br>
</div>