How to convert LLC (.data and .) output file to regular lat-lon grid data

I was just wondering if anyone has codes to convert LLC (.data and .) output file to regular lat-lon grid data?

Can you provide more information about this data format? How is is structured? Is there a relevant web link with a technical description of the format?

Have you read this tutorial?

It seems to step through the process. There are also instructions for loading this data into xarray Datasets, which I would highly recommend. This provides a lot of incredibly useful and easy to use functionality, and is the main library used in this community to manipulate and analyse ocean data. So there would be people on this forum who could assist if you had any problems, and you could make use of existing xarray based analyses like the COSIMA Recipes.

Interestingly these are files produced by MITgcm, which I know some people in the Australian community use.

Forum usage tip: it isn’t great to post pictures of code. They are hard to read and others can’t copy and paste the code to try it out. You can include code into a forum post and either use the Preformatted Text button in the editor, or surround the snippet with three backticks at the beginning and end ```, or upload your notebook to and link to it.

Thank you so much!
I have solved this problem now.

1 Like