Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wmb_load_mat does not work on one specific file, but it loads correctly in MATLAB. #3

Open
wtcipher opened this issue Aug 23, 2023 · 0 comments

Comments

@wtcipher
Copy link

wtcipher commented Aug 23, 2023

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

https://www.dropbox.com/scl/fi/qbwneg6nb00mw57r2kdvd/AIRS_MLS_MATCHUP_2007_11_12_joined.mat?rlkey=4ayos7geazp6gy1k19xh32l8x&dl=0

I just tried to load the file from Octave, and it also loads the variables correctly, but giving me a warning.

Many thanks!

~ Tao

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant