<div dir="ltr">I just saw this email and it was helpful.  I had to also put values in for time.  So I have <div>&quot;minutes since 2014-12-14 00:00:00&quot; as my time units and the values of time are </div><div>0, 60, 120, 180, etc for my hourly data.  </div><div><br></div><div>Thanks for the help, Jim!</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 15, 2015 at 1:04 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">
    Might be the same deal, i.e., need dimensions on time.  Try
    something<br>
    like &quot;days since 1999-1-1 00:00:00&quot; or whatever is appropriate.<br>
    <br>
    Jim<div><div class="h5"><br>
    <br>
    <div>On 1/15/15 12:12 PM, Thomas Robinson
      wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">
        <div>Thank you for the reply.  </div>
        I added:
        <div>
          <div>istatus = nf90_def_var(ncid,&quot;lat&quot;, nf90_float, ila, ilat
            )</div>
          <div>          write (6,*) trim(nf90_strerror(istatus))</div>
          <div>i<b>status = nf90_put_att(ncid, ilat, &#39;units&#39;,
              &#39;degrees_north&#39;)</b></div>
          <div>istatus = nf90_def_var(ncid,&quot;lon&quot;, nf90_float, ilo, ilon
            )</div>
          <div>          write (6,*) trim(nf90_strerror(istatus))</div>
          <div><b>istatus = nf90_put_att(ncid, ilon, &#39;units&#39;,
              &#39;degrees_east&#39;)</b></div>
        </div>
        <div><br>
        </div>
        <div>To give units to the latitude and longitude.  Now I have a
          new error:</div>
        <div>
          <div><br>
          </div>
          <div>ga-&gt; sdfopen <a href="http://foo.nc" target="_blank">foo.nc</a> </div>
          <div>Scanning self-describing file:  <a href="http://foo.nc" target="_blank">foo.nc</a></div>
          <div>SDF file has no discernable time coordinate -- using
            default values.</div>
          <div>gadsdf: SDF file does not have any non-coordinate
            variables.</div>
        </div>
        <div><br>
        </div>
        <div>What does that mean?  </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Thu, Jan 15, 2015 at 11:53 AM, 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 Tom,<br>
              <br>
              I think you&#39;ll need to add attributes to your variables,
              specifically the units.  For lat and lon these<br>
              should be &quot;degrees_north&quot; and &quot;degrees_east&quot;.  <br>
              <br>
              Jim
              <div>
                <div><br>
                  <br>
                  <div>On 1/15/15 11:38 AM, Thomas Robinson wrote:<br>
                  </div>
                </div>
              </div>
              <blockquote type="cite">
                <div>
                  <div>
                    <div dir="ltr">Aloha Grads Users, 
                      <div><br>
                      </div>
                      <div>I am bringing in some data and running
                        calculations using fortran 90.  I want to output
                        the data as a netCDF file, and I would like it
                        to be readable by grads.  I have no problem
                        creating a file called <a href="http://foo.nc" target="_blank">foo.nc</a> and putting my lat,
                        lon, and ref variables in the file.  The problem
                        is if I go to grads and type &#39;sdfopen <a href="http://foo.nc" target="_blank">foo.nc</a>&#39;, it says </div>
                      <div>
                        <div>ga-&gt; sdfopen <a href="http://foo.nc" target="_blank">foo.nc</a> </div>
                        <div>Scanning self-describing file:  <a href="http://foo.nc" target="_blank">foo.nc</a></div>
                        <div>gadsdf: SDF file has no discernable X
                          coordinate.</div>
                        <div>  To open this file with GrADS, use a
                          descriptor file with an XDEF entry.</div>
                        <div>  Documentation is at <a href="http://iges.org/grads/gadoc/SDFdescriptorfile.html" target="_blank">http://iges.org/grads/gadoc/SDFdescriptorfile.html</a></div>
                      </div>
                      <div>What do I need to add to make the file self
                        describing?</div>
                      <div>  I&#39;m not sure what I need to add to get this
                        to work.  Here is what I have so far:</div>
                      <div><br>
                      </div>
                      <div>
                        <div>istatus = nf90_create(path = &quot;<a href="http://foo.nc" target="_blank">foo.nc</a>&quot;, cmode =
                          nf90_noclobber, ncid = ncid)</div>
                        <div>          write (6,*)
                          trim(nf90_strerror(istatus))</div>
                        <div><br>
                        </div>
                        <div>istatus
                          =nf90_def_dim(ncid,&#39;latitude&#39;,ny,ila)</div>
                        <div>          write (6,*)
                          trim(nf90_strerror(istatus))</div>
                        <div>istatus
                          =nf90_def_dim(ncid,&#39;longitude&#39;,nx,ilo)</div>
                        <div>          write (6,*)
                          trim(nf90_strerror(istatus))</div>
                        <div>istatus =nf90_def_dim(ncid,&#39;time&#39;,1,itt)</div>
                        <div>          write (6,*)
                          trim(nf90_strerror(istatus))</div>
                        <div><br>
                        </div>
                        <div>iids = (/ilo,ila,itt/)</div>
                        <div><br>
                        </div>
                        <div>istatus = nf90_def_var(ncid,&quot;ref&quot;,
                          nf90_float, iids, iref )</div>
                        <div>          write (6,*)
                          trim(nf90_strerror(istatus))</div>
                        <div>istatus = nf90_def_var(ncid,&quot;lat&quot;,
                          nf90_float, ila, ilat )</div>
                        <div>          write (6,*)
                          trim(nf90_strerror(istatus))</div>
                        <div>istatus = nf90_def_var(ncid,&quot;lon&quot;,
                          nf90_float, ilo, ilon )</div>
                        <div>          write (6,*)
                          trim(nf90_strerror(istatus))</div>
                        <div>istatus = nf90_enddef(ncid)</div>
                        <div>          write (6,*)
                          trim(nf90_strerror(istatus))</div>
                        <div><br>
                        </div>
                        <div>istatus = nf90_put_var(ncid,iref,ref)</div>
                        <div>          write (6,*)
                          trim(nf90_strerror(istatus))</div>
                        <div>istatus = nf90_put_var(ncid,ilat,latrad)</div>
                        <div>          write (6,*)
                          trim(nf90_strerror(istatus))</div>
                        <div>istatus = nf90_put_var(ncid,ilon,lonref)</div>
                        <div>
                          <div>          write (6,*)
                            trim(nf90_strerror(istatus))</div>
                        </div>
                        <div>
                          <div><br>
                          </div>
                          <div>istatus = nf90_close(ncid)</div>
                          <div>          write (6,*)
                            trim(nf90_strerror(istatus))</div>
                        </div>
                        <div><br>
                        </div>
                        -- <br>
                        <div>
                          <div dir="ltr">
                            <div>
                              <div dir="ltr">Tom Robinson<br>
                                Treasurer - Graduate Student
                                Organization <br>
                                Secretary - Student Athletic Fee
                                Committee <br>
                                Graduate Student - Department of
                                Atmospheric Science <br>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </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" 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>
        <div>
          <div dir="ltr">
            <div>
              <div dir="ltr">Tom Robinson<br>
                Treasurer - Graduate Student Organization <br>
                Secretary - Student Athletic Fee Committee <br>
                Graduate Student - Department of Atmospheric Science <br>
              </div>
            </div>
          </div>
        </div>
      </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><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr">Tom Robinson<br>Treasurer - Graduate Student Organization <br>Secretary - Student Athletic Fee Committee <br>Graduate Student - Department of Atmospheric Science <br></div></div></div></div>
</div></div>