[gradsusr] How to solve the problem for Julian date for grads.

Jennifer M Adams jadams21 at gmu.edu
Thu Oct 5 11:27:29 EDT 2017


oops. math. Your file is too small, but I believe the factor is 2, not 4.  —Jennifer


> On Oct 5, 2017, at 11:06 AM, Jennifer M Adams <jadams21 at gmu.edu> wrote:
> 
> This error means that the file size is wrong. Based on your descriptor file, the file should be 9000 x 3000 x 4 bytes. 
> 
> I did not download, but if 54000000 is the file size, it is too small by a factor of 4. 
>>> rgccs1h1618413.bin (54000000)
> 
> —Jennifer
> 
>> On Oct 5, 2017, at 9:51 AM, Gevorgyan Artur <agm86 at yandex.ru> wrote:
>> 
>> Dear Jennifer,
>> 
>> You are right, but when I delete the double quote: “ in my DSET entry, I have another error, please see below:
>> 
>> 
>> ga-> open Persian.ctl
>> Scanning description file:  Persian.ctl
>> Data file rgccs1h%y2%j3%h2.bin is open as file 1
>> LON set to 0 360
>> LAT set to -59.98 59.98
>> LEV set to 1 1
>> Time values set: 2016:7:2:14 2016:7:2:14
>> E set to 1 1
>> ga-> d r
>> Low Level I/O Error:  Read error on data file
>>  Data file name = rgccs1h%y2%j3%h2.bin
>>  Error reading 36000 bytes at location 107964000
>> Data Request Error:  Error for variable 'r'
>>  Error ocurred at column 1
>> DISPLAY error:  Invalid expression
>>  Expression = r
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 05.10.2017, 16:26, "Jennifer M Adams" <jadams21 at gmu.edu>:
>>> I think the problem is that you have an extra character (a double quote: “) at the end of your filename in your DSET entry. Here is a helpful debugging feature: After you open the descriptor file, invoke the command ‘set misswarn on 1’ (assuming this is file #1) and then try to display some data. If GrADS is unable to find the data file, it will tell you the name of the file it is looking for.
>>> 
>>> ga-> set misswarn on 1
>>> ga-> d r
>>> Warning: Open error, fn = rgccs1h1618414.bin"
>>> Cannot contour grid - all undefined values
>>> 
>>> —Jennifer
>>> 
>>> 
>>> On Oct 5, 2017, at 3:28 AM, Gevorgyan Artur <agm86 at yandex.ru> wrote:
>>> 
>>> Dear Jenifer,
>>> 
>>> Thanks for your reply! I tried to map the data using your suggestions, but I have this message when trying to display my data in GrADS: "Cannot contour grid - all undefined values"
>>> 
>>> This is the content of my ctl file:
>>> 
>>> DSET ^rgccs1h%y2%j3%h2.bin”
>>> OPTIONS template
>>> OPTIONS big_endian
>>> OPTIONS yrev
>>> UNDEF -9999
>>> TITLE Precipitation estimates
>>> XDEF 9000 LINEAR 0.02 0.04
>>> YDEF 3000 LINEAR -59.98 0.04
>>> ZDEF 01 LEVELS 1
>>> TDEF 1 LINEAR 14z02jul2016 1hr
>>> VARS 1
>>> r 1 99 hourly cmorph [ mm/hr*100.0 ]
>>> ENDVARS
>>> 
>>> Please find the rgccs1h1618414.bin data file attached to my yandex disk.
>>> Could you please tell me what is wrong now ?
>>> 
>>> Best regards,
>>> Artur
>>> 
>>> 
>>> 04.10.2017, 16:48, "Jennifer M Adams" <jadams21 at gmu.edu>:
>>> Use ‘OPTIONS template’ and change your DSET entry to "DSET ^rgccs1h16%j314.bin”
>>> This will work with the TDEF you have in your descriptor file. It is fine to use templates even if you only have one data file.
>>> 
>>> I noticed that your initial time value in your TDEF (00z) doesn’t match the hour in your filename (14z?). Try this instead:
>>> 
>>> DSET ^rgccs1h%y2%j3%h2.bin”
>>> OPTIONS template
>>> TDEF 1 linear 14z02jul2016 1hr
>>> 
>>> —Jennifer
>>> 
>>> 
>>> 
>>> On Oct 3, 2017, at 2:14 AM, Gevorgyan Artur <agm86 at yandex.ru> wrote:
>>> 
>>> Dear Sir/Madam,
>>> 
>>> I have a sattellite derived precipitation field but in a Juilan date. I am not able visualize the data throught GrADS. Could you help me with this problem ?
>>> The Julian date is 184 (2, July).
>>> 
>>> Please find attached the Descriptor file and data file (attached to my Yandex disk)
>>> 
>>> 
>>> Please note, that for monthly precipitation fileds the descriptor file works fine.
>>> 
>>> 
>>> 
>>> Best regards,
>>> Artur
>>> 
>>> 
>>> rgccs1h1618413.bin (54000000)
>>> <Persian.ctl>_______________________________________________
>>> gradsusr mailing list
>>> gradsusr at gradsusr.org
>>> http://gradsusr.org/mailman/listinfo/gradsusr
>>> 
>>> --
>>> Jennifer Miletta Adams
>>> Center for Ocean-Land-Atmosphere Studies (COLA)
>>> George Mason University
>>> 
>>> 
>>> ,
>>> _______________________________________________
>>> gradsusr mailing list
>>> gradsusr at gradsusr.org
>>> http://gradsusr.org/mailman/listinfo/gradsusr
>>> 
>>> 
>>> rgccs1h1618414.bin (54000000)
>>> _______________________________________________
>>> gradsusr mailing list
>>> gradsusr at gradsusr.org
>>> http://gradsusr.org/mailman/listinfo/gradsusr
>>> 
>>> --
>>> Jennifer Miletta Adams
>>> Center for Ocean-Land-Atmosphere Studies (COLA)
>>> George Mason University
>>> 
>>> 
>>> 
>>> 
>>> _______________________________________________
>>> gradsusr mailing list
>>> gradsusr at gradsusr.org
>>> http://gradsusr.org/mailman/listinfo/gradsusr
>>> 
>> _______________________________________________
>> gradsusr mailing list
>> gradsusr at gradsusr.org
>> http://gradsusr.org/mailman/listinfo/gradsusr
> 
> --
> Jennifer Miletta Adams
> Center for Ocean-Land-Atmosphere Studies (COLA)
> George Mason University
> 
> 
> 
> 
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr

--
Jennifer Miletta Adams
Center for Ocean-Land-Atmosphere Studies (COLA)
George Mason University






More information about the gradsusr mailing list