READING BINARY FILES
Mary Jo Nath
Mary-Jo.Nath at NOAA.GOV
Thu Feb 15 16:33:48 EST 2007
Eduardo,
It appears that Grads isn't finding your data file. Make sure the file
named "ozojun" is in the same directory/folder as the *.ctl file.
Otherwise put the file's path name on the "DSET" line to indicate where
"ozojun" resides.
MJ
Eduardo Agosta Scarel wrote:
> Hi you all!
>
> I am having problems reading binary files using a *.ctl file. I have
> created the binary file using Matlab after preparing the data on a mx1
> matrix (in fact a one-column vector containing the equally spaced
> lon-lat data). Is there any specific flag that I may use in the
> OPTIONS comand within the ctl file?
> Below I copy the ctl file I am using:
>
> DSET ^ozojun
> TITLE TOC anomaly
> UNDEF -99999
> OPTIONS SEQUENTIAL
> XDEF 288 linear 0 1.25
> YDEF 31 linear -60 1.0
> ZDEF 1 levels 50
> TDEF 1 linear 1jan1950 1yr
> VARS 1
> o3 0 99 TOC anomaly
> ENDVARS
>
> The answer is "Open error: Can`t open binary data file".
>
> Any help?
> Thanks in advance.
>
> Eduardo.
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20070215/6ca1661a/attachment.html
More information about the gradsusr
mailing list