Giter Site home page Giter Site logo

wmb_lib's Issues

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

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

wmb_load_mat.pro does not load complex data array correctly

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.