% C = readbin(fid,it,NX,NY) % % Read a record from a binary file of the MIXED flux datasets % % 'fid' is the pointer of the file from: fid = fopen('file.bin','r','ieee-be') % 'it' is the record number in the file % for jan/1st, it=1 ... % 'NX,NY' are the dimensions of the field, check into the Matlab grid file % % C will be: C(NY,NX); % % 2008/1/1 % function C = readbin(fid,it,NX,NY) fseek(fid,4*(it-1)*NX*NY,'bof'); C = fread(fid,[NY NX],'float32')';