Stream: ESDS

Topic: matlab output to python


view this post on Zulip Anna-Lena Deppenmeier (Nov 15 2023 at 23:07):

Hi all,
I need (hopefully just a little) help from someone who knows matlab! I have a bunch of output from matlab code that I need to be able to read in python for my own analysis. I'm wondering if someone would be able to help me with this? Happy to sign up for an office hour too, just because this is not your typical python / dask / xarray question I thought I'd ask ahead of time who would be able to help me. Thanks!

view this post on Zulip Katelyn FitzGerald (Nov 16 2023 at 02:48):

Anna-Lena Deppenmeier said:

Hi all,
I need (hopefully just a little) help from someone who knows matlab! I have a bunch of output from matlab code that I need to be able to read in python for my own analysis. I'm wondering if someone would be able to help me with this? Happy to sign up for an office hour too, just because this is not your typical python / dask / xarray question I thought I'd ask ahead of time who would be able to help me. Thanks!

It's been a while since I spent a lot of time in MATLAB, but happy to help how I can (on here or office hours).

What format is the output in?

It looks like SciPy does have some functionality for reading *.mat files https://docs.scipy.org/doc/scipy/reference/generated/scipy.io.loadmat.html

view this post on Zulip Anna-Lena Deppenmeier (Nov 16 2023 at 17:43):

Thanks @Katelyn FitzGerald ! I think it would be best to meet during office hours and have a look together, I'm not sure I can explain it well enough on here. I'll get something on the calendar.

view this post on Zulip Deepak Cherian (Nov 29 2023 at 17:08):

Might be useful: https://github.com/dcherian/dcpy/blob/7fb24b50410422ab9fc3257721c2727a075a34cb/dcpy/oceans.py#L941

view this post on Zulip Anna-Lena Deppenmeier (Nov 29 2023 at 19:03):

Thanks @Deepak Cherian I'll have a look. this is output created from a BHM though that is not standard ocean data


Last updated: May 16 2025 at 17:14 UTC