<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-AU link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Hi all,<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>I&#8217;m writing station data to a binary file using Fortran for an 8 day period.&nbsp; When I create the binary file and run the stnmap util it creates the map file fine with all 8 time series:<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Starting scan of station data binary file.<o:p></o:p></p><p class=MsoNormal>Binary data file open: ocf.bin<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Processing time step 1<o:p></o:p></p><p class=MsoNormal>&nbsp;&nbsp;&nbsp;&nbsp; Time = 1 has stn count = 762<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Processing time step 2<o:p></o:p></p><p class=MsoNormal>&nbsp;&nbsp;&nbsp;&nbsp; Time = 2 has stn count = 762<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Processing time step 3<o:p></o:p></p><p class=MsoNormal>&nbsp;&nbsp;&nbsp;&nbsp; Time = 3 has stn count = 762<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Processing time step 4<o:p></o:p></p><p class=MsoNormal>&nbsp;&nbsp;&nbsp;&nbsp; Time = 4 has stn count = 762<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Processing time step 5<o:p></o:p></p><p class=MsoNormal>&nbsp;&nbsp;&nbsp;&nbsp; Time = 5 has stn count = 762<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Processing time step 6<o:p></o:p></p><p class=MsoNormal>&nbsp;&nbsp;&nbsp;&nbsp; Time = 6 has stn count = 762<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Processing time step 7<o:p></o:p></p><p class=MsoNormal>&nbsp;&nbsp;&nbsp;&nbsp; Time = 7 has stn count = 762<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Processing time step 8<o:p></o:p></p><p class=MsoNormal>&nbsp;&nbsp;&nbsp;&nbsp; Time = 8 has stn count = 762<o:p></o:p></p><p class=MsoNormal>&nbsp; Max reports per time:&nbsp; 762 reports at t = 1<o:p></o:p></p><p class=MsoNormal>&nbsp; Max data elements in largest report: 3<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Version 2 Station map file created: /grads2/ocf/ocf.map<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>When I run a gradscript to display the data, it works perfect for the first timestep (t=1) however when I try and set it to t=2, I get the following error:<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Low Level I/O Error:&nbsp; Read error on data file<o:p></o:p></p><p class=MsoNormal>&nbsp; Data file name = ocf.bin<o:p></o:p></p><p class=MsoNormal>&nbsp; Error reading 28 bytes at location 139536556<o:p></o:p></p><p class=MsoNormal>Data Request Error:&nbsp; Variable is 'amax'<o:p></o:p></p><p class=MsoNormal>&nbsp; Error ocurred at column 1<o:p></o:p></p><p class=MsoNormal>DISPLAY error:&nbsp; Invalid expression<o:p></o:p></p><p class=MsoNormal>&nbsp; Expression = amax(t=2)<o:p></o:p></p><p class=MsoNormal>You must display a variable before using basemap<o:p></o:p></p><p class=MsoNormal>No hardcopy metafile open<o:p></o:p></p><p class=MsoNormal>GX package terminated<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>For my fortran script to write the binary data, I&#8217;m using this write clause:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; open(21, file=outputfile, form='unformatted', status='unknown',access='stream')<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Anyone got any ideas on why it&#8217;d be struggling reading anything more than the first time series?<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Cheers, Mike<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p></div></body></html>