<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>HI Carlos,</p>
    <p>First, you'll have to add "template" to the OPTIONS line in your
      control file:</p>
    <p>OPTIONS YREV TEMPLATE</p>
    <p>Next, your data set name looks strange to me; I believe your file
      names are of the form %y4%m2%d2 (you have an extra "m" between %y4
      and %m2):</p>
    <p>DSET ^uvief%y4%m2%d2.hdf<br>
    </p>
    <p>Finally the bigger issue...   There is no time dimension in the
      HDF files.  See how the XDEF and YDEF are referencing dimensions
      "fakeDim1" and "fakeDim2"; you'll need something similar for
      time.  You could use one of these same dimensions, and that should
      work, but I don't know what happens if you try and access data
      beyond the maximum.  For example,</p>
    <p> TDEF fakeDim0 360 linear 01jan2003 1dy</p>
    <p>should allow you to access 360 days of data.  I'm not sure what
      happens if you change the 360 to something larger than fakeDim0,
      e.g., 3650 to get 10 years, but you can try and then let us know.</p>
    <p>Jim<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 7/13/16 10:27 AM, Carlos Enciso
      Ojeda wrote:<br>
    </div>
    <blockquote
cite="mid:CAE39umhKV1eybWEsQc9wJxN5GCvRorfccH6y1vbtQV_AT+NXTQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi James<br>
        <br>
        I have another trouble here, I'm trying to analyze all the data
        of 2016 or more, but my ctl has something wwrong, could you help
        me with this one. I think the problem lies on the TDEF.<br>
        <br>
        <div>******Ultraviolet_Radiation_hdf4********</div>
        <div>DSET ^uvief%y4m%m2%d2.hdf</div>
        <div>DTYPE hdfsds</div>
        <div>OPTIONS YREV</div>
        <div>TITLE Ultraviolet Radiation Index (UVI)</div>
        <div>UNDEF -100 _FillValue</div>
        <div>XDEF fakeDim1 720 LINEAR -179.75 0.5</div>
        <div>YDEF fakeDim0 360 LINEAR -89.75 0.5</div>
        <div>TDEF 194 LINEAR 01jan2016 1dy</div>
        <div><br>
        </div>
        <div>VARS 1</div>
        <div>Iuvfield=&gt;uv <span style="font-size:12.8px">0 99
            Ultraviolet Radiation Index UVI</span></div>
        <div>ENDVARS</div>
        <div><br>
        </div>
        <div>Thanks for your help, I really appreciate it.<br>
          <br>
          Best regards!</div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">2016-07-12 19:44 GMT-05:00 Carlos
          Enciso Ojeda <span dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:20071058@lamolina.edu.pe" target="_blank">20071058@lamolina.edu.pe</a>&gt;</span>:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <p dir="ltr">Thanks a lot</p>
            <p dir="ltr">The descriptor works perfectly!</p>
            <div class="HOEnZb">
              <div class="h5">
                <div class="gmail_quote">El jul. 12, 2016 6:48 PM,
                  "James T. Potemra" &lt;<a moz-do-not-send="true"
                    href="mailto:jimp@hawaii.edu" target="_blank">jimp@hawaii.edu</a>&gt;
                  escribió:<br type="attribution">
                  <blockquote class="gmail_quote" style="margin:0 0 0
                    .8ex;border-left:1px #ccc solid;padding-left:1ex">
                    <div bgcolor="#FFFFFF" text="#000000">
                      <p>Hi Carlos,</p>
                      <p>I think you will have to specify the XDEF and
                        YDEF based on your file dimensions.  For
                        example, Iuvfield is a function of "fakeDim1"
                        and "fakeDim2", so will have to map these to
                        XDEF and YDEF.  Since you don't have alt or time
                        as dimensions you can remove these.  Finally,
                        you should remove the y,x part in the variable
                        definition (using xdfopen to open the file). 
                        Try this with "xdfopen":</p>
                      <p>DSET ^uvief20030101.hdf<br>
                        TITLE Ultraviolet Radiation Index (UVI)<br>
                        UNDEF -100 _FillValue<br>
                        XDEF fakeDim1 720 linear -180.0 0.5<br>
                        YDEF fakeDim0 360 linear -90.0  0.5<br>
                        VARS 1<br>
                        Iuvfield=&gt;uv 0 99 Ultraviolet Radiation Index
                        UVI<br>
                        ENDVARS<br>
                      </p>
                      <p><br>
                      </p>
                      <p>Jim<br>
                      </p>
                      <p> </p>
                      <br>
                      <div>On 7/12/16 10:40 AM, Carlos Enciso Ojeda
                        wrote:<br>
                      </div>
                      <blockquote type="cite">
                        <div dir="ltr">Hi everybody<br>
                          <br>
                          I have some problems here, I was trying to
                          create a descriptor file, for a data of
                          ultraviolet radiation which is stored in HDF4.
                          This is the descriptor I've used,<br>
                          <br>
                          <div>******Ultraviolet_Radiation_hdf4********</div>
                          <div>DSET uvief20030101.hdf</div>
                          <div>DTYPE hdfsds</div>
                          <div>TITLE Ultraviolet Radiation Index (UVI)</div>
                          <div>UNDEF -100 _FillValue</div>
                          <div>XDEF 720 linear -180.0 0.5</div>
                          <div>YDEF 360 linear -90.0  0.5</div>
                          <div>ZDEF 1 levels 1</div>
                          <div>TDEF 1 linear 01jan2003 1dy</div>
                          <div>VARS 1</div>
                          <div>luvfield=&gt;uv 0 y,x Ultraviolet
                            Radiation Index UVI</div>
                          <div>ENDVARS<br>
                            <br>
                            <br>
                            I'm sharing the file also, if anyone could
                            explaiin me what i'm doing wrong I really
                            appreciate it.<br>
                            <br>
                            Best regards!<br>
                            <br>
                            <br>
                          </div>
                        </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>
                    <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"
                      rel="noreferrer" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
                    <br>
                  </blockquote>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <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>