vanessa-king / UBC_LAIR

Collection of standard analysis functions used in the LAIR
2 stars 1 forks source link

load_topo_Nanonis.m bug #166

Open vanessa-king opened 2 months ago

vanessa-king commented 2 months ago

Found an issue with loading a unfinished topo.

" Index in position 2 exceeds array bounds. Index must not exceed 1. Error in load_topo_Nanonis (line 80) topo.y = topo.y_all(:, 1:max(y_coordinates)-1); "

vanessa-king commented 2 months ago

Fix:

topo.y = topo.y_all(1:max(y_coordinates)-1);

The topo.y_all shouldn't have an implied second dimension

vanessa-king commented 2 months ago

Orientation issue for 'down' topos - check all other permutations of topos.. likely issues

vanessa-king commented 2 months ago

I think there may also be an issue with the channel that is being loaded from the sxm file. It visually looks like its current instead of z. Also, loadData, the function that wraps load_topo_Nanonis, does not ask if you want forwards or backwards. But we should want it to keep both and name them accordingly, like it does with grid data

vanessa-king commented 2 months ago

The challenge in reading channels of a topo is that currently, the header field 'data_info' is not being parsed in a useful format. I want to change how that is parsed to is becomes a string array or dictionary