Hi Steven,
We’ve recently upgraded to Carto3 V8 and the files no longer import. The /newfilestructure branch worked well for the last update of version 7.
It crashes when getting electrical data with the error:
Index exceeds the number of array elements. Index must not exceed 1.
Error in importcarto_mem (line 495)
egmUni2(iPoint,: ) = voltages(:,kMap_uni(2));
Happy to send a study if needed.
Kind Regards,
Darragh
Hi Darragh, sorry to hear this, but hopefully it should be an easy fix. If you can send me a study over to my email that would be great.
Best wishes
Steven
Hi!
I’m new here.
Does importcarto_mem work? It reports an error that it does not support zip files.
Thanks
Hi BorAntolic,
Yes, absolutely! This is in almost constant use. There is indeed a warning that it does not support zip files though (we had an idea to add this feature but have not done so).
The steps you need to take are
- Unzip your Carto export file
- Identify the study XML file, which is almost always the largest
.xml
file in your folder
- run
userdata = importcarto_mem(myxmlfile)
replacing myxmlfile
with the path above
(alternatively, you can also run importcarto_mem
without any arguments, in this case a dialog window will open asking you to identify the same XML file)
It would be great to hear how you get on with this.
Just to update everyone on this that the import was working as expected
Thanks for the quick reply.
I get this error when I try to import the largest xml file:
Error using xml_read
Your MATLAB version is too old. You need version 7.1 or newer.
Error in importcarto_mem (line 197)
[tree, ~, ~] = xml_read(userinput, Pref);
I have Matlab R2023b.
What do you think?
Thank you!
HI BorAntolic, we never came across that bug before, but my suspicion is that you have a conflicting version of xml_read
in your Matlab path - the code needs the version that is in the private directory (opened-core/private/xml_read
)
In addition based on the line numbers you gave I think you are not on the right branch - please make sure you are on the newfilestructure
branch which is yet to be merged into develop/master.
I switched the branch (after ChatGPTing a bit what “git branches” actually means) and now it works!
Thanks!
That’s great to hear!
Do let us know how you get on with your study if you can