[MITgcm-support] Matlab script for initializing float position? -- flt package

Dustin Carroll dcarroll at mlml.calstate.edu
Tue Feb 9 16:01:43 EST 2021


Hi Yangxin,

I don't have a MATLAB script to generate the floats, but I have used flt
pkg
successfully in the past.

Your workflow is correct: 1) modify and compile/run write_float.F to
generate the floats,
2) convert to big-endian with convert_ini.m, and 3) read in trajectories
with read_flt_traj.m.

I do remember having to fix a few issues with the provided scripts along
the way.
You can email me directly if you need my old example scripts, etc.

Best,
Dustin

On Tue, Feb 9, 2021 at 12:08 PM Yangxin He <y67he at uwaterloo.ca> wrote:

> Hi there,
>
>
>
> I am fairly new to this Lagrangian particle numerical simulation set up. I
> notice there is an example “flt_example”.
>
> This is my understanding so far:
>
> 1) The initialization is a two-step process? We first use “write_float.F”
> (in extra folder) to initialize the particle and then use “convert_ini.m”
> to convert it so MITgcm can read it in? by the way, there seems to be a
> small typo/mistake in line 8 of “convert_ini.m”? very strange.
>
> 2) I assume once we get it running and have the outputs, we can use
> “read_flt_traj.m” to read in the data.
>
>
>
> I am not very familiar with the Fortran code. I am wondering, does anyone
> have a simple Matlab code to initialize the particle and is willing to
> share it?
>
>
>
> Thanks!
>
>
>
> Yangxin
> _______________________________________________
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org
> http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.mitgcm.org/pipermail/mitgcm-support/attachments/20210209/627d4134/attachment.html>


More information about the MITgcm-support mailing list