[gradsusr] (no subject)

James T. Potemra jimp at hawaii.edu
Wed Jul 13 17:03:24 EDT 2016


HI Carlos,

First, you'll have to add "template" to the OPTIONS line in your control 
file:

OPTIONS YREV TEMPLATE

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):

DSET ^uvief%y4%m2%d2.hdf

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,

TDEF fakeDim0 360 linear 01jan2003 1dy

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.

Jim


On 7/13/16 10:27 AM, Carlos Enciso Ojeda wrote:
> Hi James
>
> 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.
>
> ******Ultraviolet_Radiation_hdf4********
> DSET ^uvief%y4m%m2%d2.hdf
> DTYPE hdfsds
> OPTIONS YREV
> TITLE Ultraviolet Radiation Index (UVI)
> UNDEF -100 _FillValue
> XDEF fakeDim1 720 LINEAR -179.75 0.5
> YDEF fakeDim0 360 LINEAR -89.75 0.5
> TDEF 194 LINEAR 01jan2016 1dy
>
> VARS 1
> Iuvfield=>uv 0 99 Ultraviolet Radiation Index UVI
> ENDVARS
>
> Thanks for your help, I really appreciate it.
>
> Best regards!
>
> 2016-07-12 19:44 GMT-05:00 Carlos Enciso Ojeda 
> <20071058 at lamolina.edu.pe <mailto:20071058 at lamolina.edu.pe>>:
>
>     Thanks a lot
>
>     The descriptor works perfectly!
>
>     El jul. 12, 2016 6:48 PM, "James T. Potemra" <jimp at hawaii.edu
>     <mailto:jimp at hawaii.edu>> escribió:
>
>         Hi Carlos,
>
>         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":
>
>         DSET ^uvief20030101.hdf
>         TITLE Ultraviolet Radiation Index (UVI)
>         UNDEF -100 _FillValue
>         XDEF fakeDim1 720 linear -180.0 0.5
>         YDEF fakeDim0 360 linear -90.0  0.5
>         VARS 1
>         Iuvfield=>uv 0 99 Ultraviolet Radiation Index UVI
>         ENDVARS
>
>
>         Jim
>
>
>         On 7/12/16 10:40 AM, Carlos Enciso Ojeda wrote:
>>         Hi everybody
>>
>>         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,
>>
>>         ******Ultraviolet_Radiation_hdf4********
>>         DSET uvief20030101.hdf
>>         DTYPE hdfsds
>>         TITLE Ultraviolet Radiation Index (UVI)
>>         UNDEF -100 _FillValue
>>         XDEF 720 linear -180.0 0.5
>>         YDEF 360 linear -90.0  0.5
>>         ZDEF 1 levels 1
>>         TDEF 1 linear 01jan2003 1dy
>>         VARS 1
>>         luvfield=>uv 0 y,x Ultraviolet Radiation Index UVI
>>         ENDVARS
>>
>>
>>         I'm sharing the file also, if anyone could explaiin me what
>>         i'm doing wrong I really appreciate it.
>>
>>         Best regards!
>>
>>
>>
>>
>>         _______________________________________________
>>         gradsusr mailing list
>>         gradsusr at gradsusr.org <mailto:gradsusr at gradsusr.org>
>>         http://gradsusr.org/mailman/listinfo/gradsusr
>
>
>         _______________________________________________
>         gradsusr mailing list
>         gradsusr at gradsusr.org <mailto:gradsusr at gradsusr.org>
>         http://gradsusr.org/mailman/listinfo/gradsusr
>
>
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20160713/e20f80d7/attachment.html 


More information about the gradsusr mailing list