Hi,<br />As I understand, first you have to write set gxout fwrite<br />and then set fwrite output.bin (FILENAME)<br /><br />Raj<br />On         Mon, 6 Jul 2009 15:57:35 +0100 GRADSUSR@LIST.CINECA.IT wrote<br />  I did a test run with fwrite, got an ouput but the display gives me<br />  junk. Does anyone know why?<br />  <br />  This was what I did;<br />  <br />  'open sample.file.ctl'<br />  'set fwrite output.bin'<br />  'set gxout fwrite'<br />  'define var.new = ave(var,t=1,t=124)<br />  'd var.new'<br />  'disable fwrite'<br />  <br />  I created the descriptor file (output.ctl) which contains the following,<br />  <br />  DSET ^output.bin<br />  UNDEF -1.e34<br />  XDEF 303 LINEAR 46.25 0.225198675496689<br />  YDEF 226 LINEAR -5.07 0.2252<br />  ZDEF 1 LEVELS 1008.23<br />  TDEF 1 LINEAR 00Z01JAN1961 1mo<br />  VARS 1<br />  var.new 0 99 var.new<br />  ENDVARS<br />  <br />  Opened the file for display;<br />  <br />  'open output.ctl'<br />  'd var.new'<br />  <br />  Data file sample.file.bin is open as file 1<br />  LON set to 46.25 114.26<br />  LAT set to -5.07 45.6<br />  LEV set to 1008.23 1008.23<br />  Time values set: 1960:10:1:0 1960:10:1:0<br />  E set to 1 1<br />  Notice: Implied interpolation for file output.ctl<br />   Interpolation will be performed on any data displayed from this file<br />  <br />  <br />  --<br />  Muhammad Rahiz  |  Doctoral Student in Regional Climate Modeling<br />  Climate Research Laboratory, School of Geography &amp; the Environment<br />  Oxford University Centre for the Environment<br />  South Parks Road, Oxford, OX1 3QY, United Kingdom<br />  Tel: +44 (0)1865-285194  Mobile: +44 (0)7854-625974<br />  Email: muhammad.rahiz@ouce.ox.ac.uk<br />  <br />  <br />  <br />  <br />  
<br><Table border=0 Width=644 Height=57 cellspacing=0 cellpadding=0 style="font-family:Verdana;font-size:11px;line-height:15px;"><TR><td><A HREF="http://sigads.rediff.com/RealMedia/ads/click_nx.ads/www.rediffmail.com/signatureline.htm@Middle?" target="_blank"><IMG SRC="http://sigads.rediff.com/RealMedia/ads/adstream_nx.ads/www.rediffmail.com/signatureline.htm@Middle"></A></td></TR></Table>