I am attempting to understand the difference between loading a data file into Python and into Matlab in order to translate some code. I have a line of code that goes:
load('USGS_1995_Library')
When I run the code in Matlab I know that the data is in workspace. There is a 224x501 double called datalib and a 501x29 double called names. The very next line of code is:
wavlen=datalib(:,1); # Wavelengths in microns
Thus I know that Matlab keeps the already established variables in the code without me needing to go back and parse through the data to define it.
Is there anything in Python that can emulate that same functionality? I did some research and found that I can use scipy.io to load a Matlab file (the file is a Matlab file). I know this will enable me to open the Matlab file using Python but does anybody have any experience and know if it will also load the variables and their definitions/values so that it can be used in the rest of the code?