[gradsusr] Facing problem in template option

lpasmanoranjan lpasmanoranjan at gmail.com
Sun Jul 24 23:22:26 EDT 2016


Dear Jeff,
Great. It solved my problem.

Thank you very much.

On 23 July 2016 at 00:51, Jeff Duda <jeffduda319 at gmail.com
<javascript:_e(%7B%7D,'cvml','jeffduda319 at gmail.com');>> wrote:

> You don't need to create a templated index file. Template strings only
> apply to the data file entry (DSET). Just set any name for the index file,
> then run gribmap -i on your control file. It will create the index file.
>
> Jeff Duda
>
> On Fri, Jul 22, 2016 at 3:56 AM, Davide Sacchetti <
> davide.sacchetti at arpal.gov.it
> <javascript:_e(%7B%7D,'cvml','davide.sacchetti at arpal.gov.it');>> wrote:
>
>> index file could not be templete ...
>> use: *index /data/q.idx*
>> it should work
>> Davide
>>
>> Il giorno ven, 22/07/2016 alle 16.34 +0900, lpasmanoranjan ha scritto:
>>
>> Dear GrADs Users,
>> I am having a problem in viewing the following dataset with template
>> option. I have 6-hourly dataset for specific humidity in following format
>> for 10 years:
>>
>> 199501/q.1995010100
>> 199501/q.1995010106
>> 199501/q.1995010112
>> 199501/q.1995010118
>> 199501/q.1995010200
>> 199501/q.1995010212 and so on for January of 1995
>> 199502/q.1995020100
>> 199502/q.1995020112
>> 199502/q.1995020118
>> 199502/q.1995020200 and so on for February of 1995
>> 199503/......  for March of 1995
>> .....
>> 199601/q.1996010100 and so on for January of 1996
>> ......
>> so on for 10 years
>>
>> I am wondering how to make a descriptor file for the above files? I have
>> written as q.ctl:
>>
>> dset /data/%y4%2/q.%y4%m2%d2%h2
>> *index /data/%y4%2/q.idx*
>> dtype grib 255
>> options yrev template
>> undef -999.9
>> xdef     520 linear 65  0.2
>> ydef     540 linear 5  0.2
>> zdef     1 levels 1
>> tdef 15000  linear 00z01jan1995    6hr
>> vars    1
>> q 0 99
>> endvars
>>
>> My problem is
>> GrADs can't open the above script. It is giving the following
>> error message:
>> *Scanning description file:  q.ctl*
>> *Open Error:  Can't open Station/Index map file /data/%y4%m2/q.idx *
>> *  The data file was not opened.*
>>
>> When I am replacing index /data/%y4%2/q.idx in q.ctl as *index
>> /data/199501/q.idx*
>> it is working fine for 1 month only, but not working for next month i.e.
>> set t 124
>> Contouring: 0.002 to 0.02 interval 0.002
>> set t 125
>> d q
>> GRIB I/O Error: Bit Map I/O
>> Data Request Error:  Error for variable 'q'
>>   Error ocurred at column 1
>> DISPLAY error:  Invalid expression
>>   Expression = q
>>
>>  Thank you, in advance, for any kind of help or suggestion in this
>> regard.
>>
>>
>> _______________________________________________
>> gradsusr mailing listgradsusr at gradsusr.org <javascript:_e(%7B%7D,'cvml','gradsusr at gradsusr.org');>http://gradsusr.org/mailman/listinfo/gradsusr
>>
>>
>> _______________________________________________
>> gradsusr mailing list
>> gradsusr at gradsusr.org
>> <javascript:_e(%7B%7D,'cvml','gradsusr at gradsusr.org');>
>> http://gradsusr.org/mailman/listinfo/gradsusr
>>
>>
>
>
> --
> Jeff Duda
> Post-doctoral research associate
> University of Oklahoma School of Meteorology
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> <javascript:_e(%7B%7D,'cvml','gradsusr at gradsusr.org');>
> http://gradsusr.org/mailman/listinfo/
> <http://gradsusr.org/mailman/listinfo/gradsusr>



-- 
Kind Regards,
Mano
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20160725/f0989bb0/attachment.html 


More information about the gradsusr mailing list