<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<br>
<div>
<div>On Jan 14, 2016, at 8:25 PM, Travis Wilson - NOAA Federal &lt;<a href="mailto:travis.wilson@noaa.gov">travis.wilson@noaa.gov</a>&gt; wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div dir="ltr">Hi James,
<div><br>
</div>
<div>I converted the file to a netcdf via sdfwrite and you are right.&nbsp; The file opens almost instantly.&nbsp; I wonder why grib files are so slow to open and if this could be avoided? &nbsp;
</div>
</div>
</blockquote>
Please see my earlier email for an explanation.&nbsp;</div>
<div><br>
<blockquote type="cite">
<div dir="ltr">
<div>It is worth noting that the netcdf file is about 3x larger even with using the -zip option.&nbsp; Unfortunately since this is an archive, we can't just increase the data stored by a factor of 3. &nbsp;</div>
</div>
</blockquote>
Did you use the -flt option?&nbsp;</div>
<div>If file size is really a problem, you can archive the grib2 files but use the netcdf file for the real-time web server — overwrite the netcdf file every time a new radar file comes in.&nbsp;</div>
<div><br>
<blockquote type="cite">
<div dir="ltr">
<div><br>
</div>
<div>I like your idea of the OPenDAP server, we may have to check into this if there is no other option. &nbsp;</div>
</div>
</blockquote>
I don’t think this is going to save you any time because under the hood of the opendap server, the I/O problems remain. You’re just adding overhead by putting it behind GDS, which takes extra time to write out the subsets in flat binary and then send them to
 the opendap client.&nbsp;</div>
<div>—Jennifer</div>
<div><br>
<blockquote type="cite">
<div dir="ltr">
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Thu, Jan 14, 2016 at 4:05 PM, James T. Potemra <span dir="ltr">
&lt;<a href="mailto:jimp@hawaii.edu" target="_blank">jimp@hawaii.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 bgcolor="#FFFFFF" text="#000000">Hi Travis,<br>
<br>
This seems a little strange to me.&nbsp; I did a quick test with one of our higher res data sets (global bathy) that is 21600 by 64800 (x,y) and it loads almost instantly in GrADS.&nbsp; Of course generating a display takes a long time, and my test was done on a netCDF
 file.<br>
<br>
This aside, could you run the data through an OPeNDAP server?&nbsp; Even though it would be on the same machine, you could use the server to subset via the DAP call, rather than relying on GrADS to load the entire file.<br>
<br>
Jim
<div>
<div class="h5"><br>
<br>
<div>On 1/14/16 12:54 PM, Travis Wilson - NOAA Federal wrote:<br>
</div>
</div>
</div>
<blockquote type="cite">
<div>
<div class="h5">
<div dir="ltr">
<p class="MsoNormal">Hi,</p>
<p class="MsoNormal"><br>
</p>
<p class="MsoNormal">At the NWS we have been using grads to create images from grib files on the fly.&nbsp; Users use a front end interface to select a model (which is just a grib file on a server), field, and view, and submits a job.&nbsp; Within 3-4 seconds the server
 is able to launch grads, open the grib file, and produce 50-100 images for the user to view.&nbsp; This works extremely well for CONUS datasets with medium to coarse resolutions (up to 6km).&nbsp;
</p>
<p class="MsoNormal">We have started using higher resolution grib files (1 km radar files are attached) and they are substantially slower.&nbsp; The main problem comes from opening the file.&nbsp; If a user selects radar for Northern California, it takes grads approximately
 18 seconds just to open the 1km CONUS radar file (scanning descriptor file)..and then grads plots rather quickly.&nbsp;
</p>
<p class="MsoNormal"><br>
</p>
<p class="MsoNormal">A workaround we have been using is to subset the data on the fly (since we don’t know the area the user will select).&nbsp; This example regrids the CONUS radar for northern California. &nbsp;&nbsp;</p>
<p class="MsoNormal"><br>
</p>
<p class="MsoNormal">wgrib2 1kmradar_201512241600.grib2 -small_grib 233:243 36.8:42.8 1kmradar_201512241600.grib2.small</p>
<p class="MsoNormal"><br>
</p>
<p class="MsoNormal">The small grib file will open in GrADS in about 1 second.&nbsp; Regridding, and remaking the ctl and idx is substantially faster, but still requires a lot of time.&nbsp; My question is, is there any way to speed up the scanning of the CONUS descriptor
 file without subset the grib file.&nbsp; For example, grads would not scan the entire conus descriptor file when we just need to look at Northern California (or whatever portion of the US the users selects).&nbsp;
</p>
<p class="MsoNormal"><br>
</p>
<p class="MsoNormal">We appreciate all the help,</p>
<p class="MsoNormal">Travis</p>
</div>
<br>
<fieldset></fieldset> <br>
</div>
</div>
<pre>_______________________________________________
gradsusr mailing list
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a>
</pre>
</blockquote>
<br>
</div>
<br>
_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br>
</blockquote>
</div>
<br>
</div>
_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
http://gradsusr.org/mailman/listinfo/gradsusr<br>
</blockquote>
</div>
<br>
</body>
</html>