I got the answer offline - wrong read function for the write function I was
using.
Bob
On Mon, 26 Feb 2007, Bob Tomas wrote:
> Hello,
>
> I'm having trouble reading in binary data that I wrote out using ncl.
>
> I wrote the data out using:
>
> hrmean is an array of size (/18,64,128/)
>
> setfileoption("bin","WriteByteOrder","BigEndian")
> fbinwrite(file_out,flt2dble(hrmean_avg)) ; convert to double
>
> and am reading the data in using:
>
> setfileoption("bin","ReadByteOrder","BigEndian")
> hrmean_avg_read = fbindirread(file_in, 0, (/18,64,128/), "double")
>
>
> but the data looks like garbage.
>
> I must be missing something but I can't see it now.
>
> Any suggestions?
>
> Bob
>
>
>
-- ------------------------------------------------------------- Robert A. Tomas National Center for Atmospheric Research Climate and Global Dynamics Division - Paleoclimatology 1850 Table Mesa Drive Boulder, CO 80305-3000 e-mail: tomas_at_ucar.edu tel: 303-497-1342 fax: 303-497-1348 _______________________________________________ ncl-talk mailing list ncl-talk_at_ucar.edu http://mailman.ucar.edu/mailman/listinfo/ncl-talkReceived on Mon Feb 26 2007 - 15:21:29 MST
This archive was generated by hypermail 2.2.0 : Tue Feb 27 2007 - 13:43:39 MST