display error from fwrite data
Muhammad Rahiz
muhammad.rahiz at OUCE.OX.AC.UK
Mon Jul 6 10:53:46 EDT 2009
> I did a test run with fwrite, got an ouput but the display gives me
> junk. Does anyone know why?
>
> This was what I did;
>
> 'open sample.file.ctl'
> 'set fwrite output.bin'
> 'set gxout fwrite'
> 'define var.new = ave(var,t=1,t=124)
> 'd var.new'
> 'disable fwrite'
>
> I created the descriptor file (sample.file.ctl) which contains the
> following,
>
> DSET ^sample.file.bin
> UNDEF -1.e34
> XDEF 303 LINEAR 46.25 0.225198675496689
> YDEF 226 LINEAR -5.07 0.2252
> ZDEF 1 LEVELS 1008.23
> TDEF 1 LINEAR 00Z01JAN1961 1mo
> VARS 1
> var.new 0 99 var.new
> ENDVARS
>
> Opened the file for display;
>
> 'open sample.file.ctl'
> 'd var.new'
>
> Data file sample.file.bin is open as file 1
> LON set to 46.25 114.26
> LAT set to -5.07 45.6
> LEV set to 1008.23 1008.23
> Time values set: 1960:10:1:0 1960:10:1:0
> E set to 1 1
> Notice: Implied interpolation for file rf.tmp.monthly.ctl
> Interpolation will be performed on any data displayed from this file
>
> Muhammad
>
>
> ------------------------------------------------------------------------
>
More information about the gradsusr
mailing list