<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Jeff,<br>
      Thanks for the assistance on this, I decided to stay the way I was
      going<br>
      and modified the mySQL query I was using and came up with 9,500
      data points<br>
      across the CONUS instead of 75,000.<br>
      The resulting calculations only takes 1.5 minutes for the entire
      model run.<br>
      If I wasn't under a project deadline, I would keep hammering at
      the GrADS ASCII method.<br>
      Maybe after I get this project launched, I'll come back and try to
      figure out what it was I had wrong.<br>
      <br>
      I was still getting no output either to the terminal or to the
      text file<br>
      <pre class="moz-signature" cols="72">-Jeff Lake
MichiganWxSystem.com
AllisonHouse.com
TheWeatherCenter.net
GRLevelXStuff.com</pre>
      On 12/4/2012 22:07, Jeff Duda wrote:<br>
    </div>
    <blockquote
cite="mid:CAAig09DHfNotk=tQgPzzaa0Fi0K5pPbc6pBX0JihaCuKhkxzWg@mail.gmail.com"
      type="cite">Alright, I think I see one problem with your Grads
      code. &nbsp;set prnopts is only effective when gxout print is used.
      &nbsp;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. &nbsp;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 moz-do-not-send="true"
              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>
                'open rap_mesoan.bin.ctl'<br>
                <br>
                <br>
                'define u900=ugrdprs(lev=900)'<br>
                'define u500=ugrdprs(lev=500)'<br>
                <br>
                'define v900=vgrdprs(lev=900)'<br>
                'define v500=vgrdprs(lev=500)'<br>
                <br>
                'define dls = mag(abs(u500-ugrd10m),abs(v500-vgrd10m))'<br>
                'define lls = mag(abs(u900-ugrd10m),abs(v900-vgrd10m))'<br>
                <br>
                <br>
                <br>
                'clear'<br>
                'set gxout fwrite'<br>
                'set prnopts %g 1 8'<br>
                'set fwrite dls.txt'<br>
                'd dls'
                <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? &nbsp;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
                            moz-do-not-send="true"
                            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'll explain what I'm doing now, and my
                              hopes further on..<br>
                              as of now..<br>
                              I am using wgrib2 to extract 4 perimeter's
                              from the 13km RAP and dump to csv<br>
                              I then import to MySQL, and utilize php to
                              run severe formula'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 moz-do-not-send="true"
                                    href="http://fprintf.gs"
                                    target="_blank">fprintf.gs</a> can
                                  be found here: <a
                                    moz-do-not-send="true"
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?&nbsp; 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
                                        moz-do-not-send="true"
                                        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 'q config' 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>
                                          &nbsp;Interpolation will be
                                          performed on any data
                                          displayed from this file<br>
                                          Warning from LOG:&nbsp; Data has
                                          62765 values &lt;= zero<br>
                                          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; These were
                                          set to the undefined value<br>
                                          No hardcopy metafile open<br>
                                          GX package terminated<br>
                                          <br>
                                          <br>
                                          <a moz-do-not-send="true"
                                            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's
                                          going wrong with it?<br>
                                          <br>
                                          I usually use <a
                                            moz-do-not-send="true"
                                            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
                                                moz-do-not-send="true"
                                                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>
                                                'clear'<br>
                                                'set mpproj latlon'<br>
                                                'set gxout print'<br>
                                                'set prnopts %g 8 1'<br>
                                                'set sdfwrite
                                                dls_XXX.txt'<br>
                                                'd dls'<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 moz-do-not-send="true"
href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
                                              <a moz-do-not-send="true"
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 moz-do-not-send="true" href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a>
<a moz-do-not-send="true" 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 moz-do-not-send="true"
                                        href="mailto:gradsusr@gradsusr.org"
                                        target="_blank">gradsusr@gradsusr.org</a><br>
                                      <a moz-do-not-send="true"
                                        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 moz-do-not-send="true" href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a>
<a moz-do-not-send="true" 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 moz-do-not-send="true"
                            href="mailto:gradsusr@gradsusr.org"
                            target="_blank">gradsusr@gradsusr.org</a><br>
                          <a moz-do-not-send="true"
                            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 moz-do-not-send="true" href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a>
<a moz-do-not-send="true" 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 moz-do-not-send="true"
              href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
            <a moz-do-not-send="true"
              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 class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
gradsusr mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>
<a class="moz-txt-link-freetext" href="http://gradsusr.org/mailman/listinfo/gradsusr">http://gradsusr.org/mailman/listinfo/gradsusr</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>