ocean-transport / floater

For working with lagrangian float data
http://floater.readthedocs.io
15 stars 17 forks source link

deploy floaters in 2D x-z plane #77

Open miniufo opened 4 years ago

miniufo commented 4 years ago

@rabernat Hi, I am trying to use this package in my work.

I've setup a MITgcm run to simulate internal wave in 2D x-z plane, in which there is only one grid in y direction. I need to deploy floaters in different depths with a specified interval dz.

I tried to use the FloatSet:

flts = FloatSet(xlim=[0, X], ylim=[0, Y], dx=1000, dy=100, zvect=zdef)
flts.to_mitgcm_format('./flt_init.dat', iup=-1, read_binary_prec=32)

However, the FloatSet seems to be a horizontal 2D deployment and repeats for every zvect. It does not have a keyword argument like zlim and dz.

So I wonder how to deploy 2D float set in x-z plane with a given dz? I may have a try to modify the code. But I not sure I know exactly how to push my version back to this repo (I'm new to git).