<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
<BR>Hello, I tried to use fwrite to get a data file and try to read it but i got a distorted view from the newly created data file. I wonder is it my control file or something else thats causing the problem. Anyone could help shed some light on my problem ? <BR>
<BR>
Thank you<BR>
<BR>
- Shunjie<BR> <BR>
I create the sample.dat using <BR>
<BR>
set fwrite sample.dat<BR>
set gxout fwrite<BR>
d t2<BR>
disable fwrite<BR>
<BR>
Here is my orig ctl file I used for output<BR><BR>-------------<BR>dset ^orig.dat<BR>options byteswapped<BR>undef 1.e37<BR>title sample<BR>pdef 102 81 lcc 49.538 -98.338 51.500 41.000 50.00000 50.00000 -105.00000 3333.000 3333.000<BR>xdef 351 linear -100.92260 0.01501352<BR>ydef 196 linear 48.03919 0.01501352<BR>zdef 12 levels <BR>1000.00000<BR> 975.00000<BR> 950.00000<BR> 925.00000<BR> 900.00000<BR> 875.00000<BR> 850.00000<BR> 825.00000<BR> 800.00000<BR> 750.00000<BR> 500.00000<BR> 250.00000<BR>tdef 49 linear 00Z01JAN2006 10MN <BR>VARS 31<BR>U 12 0 x-wind component (m s-1)<BR>V 12 0 y-wind component (m s-1)<BR>W 12 0 z-wind component (m s-1)<BR>.....<BR>-------------<BR> <BR>Here is the control file I newly created<BR>-------------<BR>dset ^sample.dat<BR>undef 1.e37<BR>title sample<BR>pdef 102 81 lcc 49.538 -98.338 51.500 41.000 50.00000 50.00000 -105.00000 3333.000 3333.000<BR>xdef 351 linear -100.92260 0.01501352<BR>ydef 196 linear 48.03919 0.01501352<BR>zdef 1 levels 1000.00000<BR>tdef 1 linear 00Z01JAN2006 10MN <BR>VARS 1<BR>T2 1 0 TEMP at 2 M (K)<BR>ENDVARS<BR>-------------<BR> <BR>And a picture of the distorted image is included<BR> <BR><BR> <BR> <BR><BR><br /><hr /> <a href='' target='_new'></a></body>
</html>