read binary data for integer and float types

From: Li, Yongzuo <yongzuo.li_at_nyahnyahspammersnyahnyah>
Date: Tue Jan 19 2010 - 17:48:40 MST

Hi,

I have following script to read binary data in integer/float type.

two = new(2,"integer")
;two = fbindirread("data.bin",0,2,"integer")
jj = 67
ii = 43
rf = new((/jj,ii/),"float")
rf = fbindirread("data.bin",0,(/jj,ii/),"float")

Question (1),

Can fbindirread work without "(/jj,ii/)"? I tried and failed without it.

Question (2),

How can jj and ii be read from data.bin and then used to define jj and ii for rf = new(xxx) ?

Either
two = fbindirread("data.bin",0,2,"integer")
or
rf = fbindirread("data.bin",0,(/jj,ii/),"float")
works well separately.

But they do not work together (change 0 to 1 in rf line when both applied).

Thanks

Yongzuo

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Jan 19 17:48:46 2010

This archive was generated by hypermail 2.1.8 : Thu Jan 21 2010 - 13:54:45 MST