display error from fwrite data
Ousmane Ndiaye
ousmane at IRI.COLUMBIA.EDU
Mon Jul 6 11:49:56 EDT 2009
Maybe your input data file and the file you want to create -output- are the same ie "output.bin"
change the line 'set fwrite output.bin' into 'set fwrite output1.bin'
Ousmane
----- Original Message -----
From: "Muhammad Rahiz" <muhammad.rahiz at OUCE.OX.AC.UK>
To: GRADSUSR at LIST.CINECA.IT
Sent: Monday, July 6, 2009 11:42:56 AM GMT -05:00 US/Canada Eastern
Subject: Re: Re : display error from fwrite data
Dear Raj,
Tried your suggestion. Same results
Muhammad Rahiz | Doctoral Student in Regional Climate Modeling
Climate Research Laboratory, School of Geography & the Environment
Oxford University Centre for the Environment, University of Oxford
South Parks Road, Oxford, OX1 3QY, United Kingdom
Tel: +44 (0)1865-285194 Mobile: +44 (0)7854-625974
Email: muhammad.rahiz at ouce.ox.ac.uk
Raj Kumar Sharma wrote:
> Hi,
> As I understand, first you have to write set gxout fwrite
> and then set fwrite output.bin (FILENAME)
>
> Raj
> On Mon, 6 Jul 2009 15:57:35 +0100 GRADSUSR at LIST.CINECA.IT wrote
> 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 (output.ctl) which contains the following,
>
> DSET ^output.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 output.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 output.ctl
> Interpolation will be performed on any data displayed from this file
>
>
> --
> Muhammad Rahiz | Doctoral Student in Regional Climate Modeling
> Climate Research Laboratory, School of Geography & the Environment
> Oxford University Centre for the Environment
> South Parks Road, Oxford, OX1 3QY, United Kingdom
> Tel: +44 (0)1865-285194 Mobile: +44 (0)7854-625974
> Email: muhammad.rahiz at ouce.ox.ac.uk
>
>
>
>
>
> <http://sigads.rediff.com/RealMedia/ads/click_nx.ads/www.rediffmail.com/signatureline.htm@Middle?>
>
>
More information about the gradsusr
mailing list