<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;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 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;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@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><span style='color:#1F497D'>For anyone else chasing problems like this it was a problem in Fortran when writing out the data – this has been rectified now.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Cheers, Mike<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";mso-fareast-language:EN-AU'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";mso-fareast-language:EN-AU'> gradsusr-bounces@gradsusr.org [mailto:gradsusr-bounces@gradsusr.org] <b>On Behalf Of </b>Mike Manning<br><b>Sent:</b> Friday, 27 September 2013 4:31 PM<br><b>To:</b> gradsusr@gradsusr.org<br><b>Subject:</b> [gradsusr] Station Data issues<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Hi all,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I’m writing station data to a binary file using Fortran for an 8 day period. 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> </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> </o:p></p><p class=MsoNormal>Processing time step 1<o:p></o:p></p><p class=MsoNormal> Time = 1 has stn count = 762<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Processing time step 2<o:p></o:p></p><p class=MsoNormal> Time = 2 has stn count = 762<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Processing time step 3<o:p></o:p></p><p class=MsoNormal> Time = 3 has stn count = 762<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Processing time step 4<o:p></o:p></p><p class=MsoNormal> Time = 4 has stn count = 762<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Processing time step 5<o:p></o:p></p><p class=MsoNormal> Time = 5 has stn count = 762<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Processing time step 6<o:p></o:p></p><p class=MsoNormal> Time = 6 has stn count = 762<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Processing time step 7<o:p></o:p></p><p class=MsoNormal> Time = 7 has stn count = 762<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Processing time step 8<o:p></o:p></p><p class=MsoNormal> Time = 8 has stn count = 762<o:p></o:p></p><p class=MsoNormal> Max reports per time: 762 reports at t = 1<o:p></o:p></p><p class=MsoNormal> Max data elements in largest report: 3<o:p></o:p></p><p class=MsoNormal><o:p> </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> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </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> </o:p></p><p class=MsoNormal>Low Level I/O Error: Read error on data file<o:p></o:p></p><p class=MsoNormal> Data file name = ocf.bin<o:p></o:p></p><p class=MsoNormal> Error reading 28 bytes at location 139536556<o:p></o:p></p><p class=MsoNormal>Data Request Error: Variable is 'amax'<o:p></o:p></p><p class=MsoNormal> Error ocurred at column 1<o:p></o:p></p><p class=MsoNormal>DISPLAY error: Invalid expression<o:p></o:p></p><p class=MsoNormal> 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> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>For my fortran script to write the binary data, I’m using this write clause: open(21, file=outputfile, form='unformatted', status='unknown',access='stream')<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Anyone got any ideas on why it’d be struggling reading anything more than the first time series?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Cheers, Mike<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>