superchromix / wmb_lib Goto Github PK
View Code? Open in Web Editor NEWIDL library of Mark Bates
License: GNU General Public License v3.0
IDL library of Mark Bates
License: GNU General Public License v3.0
Current version only loads real part of complex data array. Two errors were found.
Error 1 : Easily Fixed
Line 1143 should read : tmp_idat = cast_to_matrix_type(imag_data,matrix_class)
Error 2 : Not sure how to fix
LIne 464 : array_flags = ulong(input_data,mem_read_ptr,2)
my data results in array_flags[0] = 2055 so
LIne 475 : subelement_struct.complex = (flags1 AND '00000800'XL)
is always 0 and
Line 797 : chk_complex = array_flags_data.complex eq 1
is also always 0 and the imaginary data is never read in at line 1114
test
Hello, I encountered your IDL routine "wmb_load_mat". Thank you for providing such a helpful upgrade from load_mat.pro. It handles compressed files easily. However, while bulk reading a serious of files, I encountered a problem in only one file, but this file can be loaded to MATLAB without any issues.
The error I got is:
% Unable to uncompress: Data or header is corrupted.
% Execution halted at: WMB_LOAD_MAT 1306 /home/taowang/IDLWorkspace/code/jpl/prf_for_qing/wmb_load_mat.pro
% WMB_LOAD_MAT 1212 /home/taowang/IDLWorkspace/code/jpl/prf_for_qing/wmb_load_mat.pro
% WMB_LOAD_MAT 1212 /home/taowang/IDLWorkspace/code/jpl/prf_for_qing/wmb_load_mat.pro
I think it is also related to compression. Ironically, all my MAT files are written by the same MATLAB program, but it looks like some are compressed, some are not. Can I send you the MAT file for you to diagnose, please?
You can find the file from this Dropbox link
I just tried to load the file from Octave, and it also loads the variables correctly, but giving me a warning.
Many thanks!
~ Tao
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.