c - Manually implementing multibandread from MatLab in Octave -


this question part challenge/part question, have idea of need do, @ loss how it. have ton of data files two-band bsq's contain latitude , longitude data. .geo files. i'm trying read data in files. can read matlab using "multibandread"command this:

data = multibandread(filename, ... [size(info_cube, 1) size(info_cube, 2) 2], ... 'double', 0, 'bsq', 'ieee-le'); 

i want able open files octave though (the free, open-source version of matlab).

a tech person octave said multibandread looks wrapper simple c-style binary i/o. said here: https://www.gnu.org/software/octave/doc/interpreter/c_002dstyle-i_002fo-functions.html

and said opening binary file byte order done this: https://www.gnu.org/software/octave/doc/interpreter/opening-and-closing-files.html#opening-and-closing-files

and reading raw binary data w/ given precision done this: https://www.gnu.org/software/octave/doc/interpreter/binary-i_002fo.html#binary-i_002fo

so, thinks thing missing interleaving (the repetition of data structures) have controlled for-loops.

can me read lat-long data these files without matlab? in advance!


Comments