<div dir="ltr">Dear Jim<div><br></div><div><span style="font-weight:bold;color:rgb(106,106,106);line-height:18.2px">Your help is invaluable</span><span style="color:rgb(84,84,84);line-height:18.2px"> in improving my skills in processing information, I really think you all your replies. This is a trend of UVI in my country and now I must analyze it. Again, thank you so much.<br></span><br><img src="cid:ii_155ead8e9bbb22ed" alt="Imágenes integradas 2" width="472" height="407"><br><br></div><div>Best regards!</div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-07-13 16:03 GMT-05:00 James T. Potemra <span dir="ltr"><<a href="mailto:jimp@hawaii.edu" target="_blank">jimp@hawaii.edu</a>></span>:<br><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>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><div><div class="h5">
<br>
<div>On 7/13/16 10:27 AM, Carlos Enciso
Ojeda wrote:<br>
</div>
<blockquote 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=>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"><<a href="mailto:20071058@lamolina.edu.pe" target="_blank">20071058@lamolina.edu.pe</a>></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>
<div>
<div class="gmail_quote">El jul. 12, 2016 6:48 PM,
"James T. Potemra" <<a href="mailto:jimp@hawaii.edu" target="_blank">jimp@hawaii.edu</a>>
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=>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=>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 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" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
<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" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br></div>