[gradsusr] xdfopen error

James T. Potemra jimp at hawaii.edu
Wed Jun 8 14:50:16 EDT 2016


Rupak,

Looks like you are specifying the path incorrectly.  In the hiaware.ctl 
file you have
c:\climatedata\hiaware\... (PC format)
but in your script you use (or imply)  a UNIX format 
(c:/climatedata/hiaware/...)

Jim

On 6/8/16 5:07 AM, Rupak Rajbhandari wrote:
> Hi,
>
> I have a 'nc' file which demanded description file due to 
> 365_day_calender. I wrote a .ctl file and I could open the file 
> (xdfopen). I could dispaly, write, etc. Fine!
>
> But when I tried to open the same file from a script, it refuses to open.
> It is reporting error before scanning the file.
>
> Am I missing something?
>
> I am using OpenGrADS 2.1
> -rupak
>
> GrADS error
>
> /gadxdf: Can't open description/
> /Scanning Descriptor File: c:/climatedata/hiaware/nc/hiaware.ctl/
> /gadxdf: Can't open description file/
>
> Descriptor File
>
> /DSET C:\climatedata\hiware\nc\HIAWARE_IGBtotal_eref_1981.nc/
> /TITLE This is only a test/
> /OPTIONS 365_day_calendar yrev/
> /UNDEF -9999./
> /XDEF longitude 190 LINEAR   19.5857  0.0972/
> /YDEF latitude  320 LINEAR   63.9894  0.1112/
> /*ZDEF             1 LINEAR 1 1/
> /TDEF time 365 LINEAR 0Z01JAN1981 1DY/
> /VARS 1/
> /ETref=>rf   0 99/
> /ENDVARS/
>
> script file
>
> /'reinit'/
> /'xdfopen   c:/climatedata/hiaware/nc/hiaware.ctl'/
> / say result/
> /
> /
> /
> /
> /
> /
>
>
>
> _______________________________________________
> 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/20160608/1b5dcdbc/attachment.html 


More information about the gradsusr mailing list