Alright, I think I see one problem with your Grads code.  set prnopts is only effective when gxout print is used.  When you use gxout fwrite, your data are being written to a binary file called dls.txt rather than an ascii file called dls.txt.  Try changing the graphics output to print and see if you get the results you are looking for.<div>
<br>Jeff<br><br><div class="gmail_quote">On Tue, Dec 4, 2012 at 8:41 PM, Jeff Lake <span dir="ltr">&lt;<a href="mailto:admin@michiganwxsystem.com" target="_blank">admin@michiganwxsystem.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 bgcolor="#FFFFFF" text="#000000">
    <div>here is what is in my template <br>
      <br>
      &#39;open rap_mesoan.bin.ctl&#39;<br>
      <br>
      <br>
      &#39;define u900=ugrdprs(lev=900)&#39;<br>
      &#39;define u500=ugrdprs(lev=500)&#39;<br>
      <br>
      &#39;define v900=vgrdprs(lev=900)&#39;<br>
      &#39;define v500=vgrdprs(lev=500)&#39;<br>
      <br>
      &#39;define dls = mag(abs(u500-ugrd10m),abs(v500-vgrd10m))&#39;<br>
      &#39;define lls = mag(abs(u900-ugrd10m),abs(v900-vgrd10m))&#39;<br>
      <br>
      <br>
      <br>
      &#39;clear&#39;<br>
      &#39;set gxout fwrite&#39;<br>
      &#39;set prnopts %g 1 8&#39;<br>
      &#39;set fwrite dls.txt&#39;<br>
      &#39;d dls&#39;<div class="im"><br>
      <br>
      <br>
      <pre cols="72">-Jeff Lake
MichiganWxSystem.com
AllisonHouse.com
TheWeatherCenter.net
GRLevelXStuff.com</pre></div><div><div class="h5">
      On 12/4/2012 21:15, Jeff Duda wrote:<br>
    </div></div></div><div><div class="h5">
    <blockquote type="cite">So where in this series of steps does the Grads part
      fit in?  What fields are you trying to print to a file?
      <div><br>
      </div>
      <div>Jeff<br>
        <br>
        <div class="gmail_quote">On Tue, Dec 4, 2012 at 6:57 PM, Jeff
          Lake <span dir="ltr">&lt;<a href="mailto:admin@michiganwxsystem.com" target="_blank">admin@michiganwxsystem.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 bgcolor="#FFFFFF" text="#000000">
              <div>Jeff,<br>
                I&#39;ll explain what I&#39;m doing now, and my hopes further
                on..<br>
                as of now..<br>
                I am using wgrib2 to extract 4 perimeter&#39;s from the 13km
                RAP and dump to csv<br>
                I then import to MySQL, and utilize php to run severe
                formula&#39;s to give me the bulk shear at 0-1 km and 0-6km<br>
                problem is .. using php its painfully slow (75,000 data
                points ~12minutes)<br>
                Was hoping I could get GrADS to do the calculations for
                me and output the final to csv or text
                <div><br>
                  <pre cols="72">-Jeff Lake
MichiganWxSystem.com
AllisonHouse.com
TheWeatherCenter.net
GRLevelXStuff.com</pre>
                </div>
                <div>
                  <div> On 12/4/2012 19:04, Jeff Duda wrote:<br>
                  </div>
                </div>
              </div>
              <div>
                <div>
                  <blockquote type="cite">Jeff,<br>
                    <a href="http://fprintf.gs" target="_blank">fprintf.gs</a> can be found here:
                    <a href="http://cookbooks.opengrads.org/index.php?title=Recipe-002:_Saving_GrADS_variable_data_to_a_text_file" target="_blank">http://cookbooks.opengrads.org/index.php?title=Recipe-002:_Saving_GrADS_variable_data_to_a_text_file</a><br>

                    <br>
                    What data are you using?  Are you sure the data
                    array itself is not undefined values or all zeros?<br>
                    <br>
                    Jeff<br>
                    <br>
                    <div class="gmail_quote">On Tue, Dec 4, 2012 at 5:45
                      PM, Jeff Lake <span dir="ltr">&lt;<a href="mailto:admin@michiganwxsystem.com" target="_blank">admin@michiganwxsystem.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 bgcolor="#FFFFFF" text="#000000">
                          <div>I am getting zero output .. except .<br>
                            <br>
                            Config: v2.0.2 little-endian readline
                            printim grib2 netcdf hdf4-sds hdf5
                            opendap-grids,stn geotiff shapefile<br>
                            Issue &#39;q config&#39; command for more detailed
                            configuration information<br>
                            GX Package Initialization: Size = 11 8.5<br>
                            Running in Batch mode<br>
                            Command line history in
                            /usr/local/ldm/.grads.log<br>
                            Notice: Implied interpolation for file
                            rap_mesoan.bin.ctl<br>
                             Interpolation will be performed on any data
                            displayed from this file<br>
                            Warning from LOG:  Data has 62765 values
                            &lt;= zero<br>
                                               These were set to the
                            undefined value<br>
                            No hardcopy metafile open<br>
                            GX package terminated<br>
                            <br>
                            <br>
                            <a href="http://fprintf.gs" target="_blank">fprintf.gs</a>
                            ??<br>
                            <br>
                            <pre cols="72">-Jeff Lake
MichiganWxSystem.com
AllisonHouse.com
TheWeatherCenter.net
GRLevelXStuff.com</pre>
                            On 12/4/2012 10:04, Jeff Duda wrote:<br>
                          </div>
                          <blockquote type="cite">What&#39;s going wrong
                            with it?<br>
                            <br>
                            I usually use <a href="http://fprintf.gs" target="_blank">fprintf.gs</a>
                            when I want to write to a text file.<br>
                            <br>
                            Jeff Duda<br>
                            <br>
                            <div class="gmail_quote">On Tue, Dec 4, 2012
                              at 8:29 AM, Jeff Lake <span dir="ltr">&lt;<a href="mailto:admin@michiganwxsystem.com" target="_blank">admin@michiganwxsystem.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 bgcolor="#FFFFFF" text="#000000">
                                  Greetings,<br>
                                  I have been trying, unsuccessfully, to
                                  write an ascii file ..<br>
                                  here is what I have in the template<br>
                                  <br>
                                  &#39;clear&#39;<br>
                                  &#39;set mpproj latlon&#39;<br>
                                  &#39;set gxout print&#39;<br>
                                  &#39;set prnopts %g 8 1&#39;<br>
                                  &#39;set sdfwrite dls_XXX.txt&#39;<br>
                                  &#39;d dls&#39;<br>
                                  <br>
                                  This is my first attempt at writing to
                                  an ascii file ..<br>
                                  so any pointers would be appreciated<br>
                                  using 2.0.2<span><font color="#888888"><br>
                                      <div><br>
                                      </div>
                                      <pre cols="72">-- 
-Jeff Lake
MichiganWxSystem.com
AllisonHouse.com
TheWeatherCenter.net
GRLevelXStuff.com</pre>
                                    </font></span></div>
                                <br>
_______________________________________________<br>
                                gradsusr mailing list<br>
                                <a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
                                <a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
                                <br>
                              </blockquote>
                            </div>
                            <br>
                            <br clear="all">
                            <span><font color="#888888"> <br>
                                -- <br>
                                Jeff Duda<br>
                                Graduate research assistant<br>
                                University of Oklahoma School of
                                Meteorology<br>
                                Center for Analysis and Prediction of
                                Storms<br>
                                <br>
                                <br>
                                <fieldset></fieldset>
                                <br>
                                <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>
                              </font></span></blockquote>
                          <br>
                        </div>
                        <br>
                        _______________________________________________<br>
                        gradsusr mailing list<br>
                        <a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
                        <a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
                        <br>
                      </blockquote>
                    </div>
                    <br>
                    <br clear="all">
                    <br>
                    -- <br>
                    Jeff Duda<br>
                    Graduate research assistant<br>
                    University of Oklahoma School of Meteorology<br>
                    Center for Analysis and Prediction of Storms<br>
                    <br>
                    <br>
                    <fieldset></fieldset>
                    <br>
                    <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>
              </div>
            </div>
            <br>
            _______________________________________________<br>
            gradsusr mailing list<br>
            <a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
            <a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
            <br>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <div><br>
        </div>
        -- <br>
        Jeff Duda<br>
        Graduate research assistant<br>
        University of Oklahoma School of Meteorology<br>
        Center for Analysis and Prediction of Storms<br>
        <br>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      <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></div></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" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Jeff Duda<br>Graduate research assistant<br>University of Oklahoma School of Meteorology<br>Center for Analysis and Prediction of Storms<br><br>
</div>