Skip to content

longitudes < than 0 and > than 360 in TrackEddiesObservations #11

@koldunovn

Description

@koldunovn

Hi @AntSimi

I now succesfully run one year of eddy tracking and was able to get Anticyclonic.nc and Cyclonic.nc files. I load them with:

a = TrackEddiesObservations.load_file("./Anticyclonic.nc")
c = TrackEddiesObservations.load_file("./Cyclonic.nc")

And the result of

print(a.longitude.min())
print(a.longitude.max())

is:

 -14.2
373.8

do I understand it right that it's just a peculiarity of the algorithm, that when the track crosses 0 or 360 it just continues?

Maybe somehow related to this, the plot for global data generates something like this:

fig = plt.figure(figsize=(12, 5))
ax = fig.add_axes((0.05, 0.1, 0.9, 0.9))
ax.set_aspect("equal")
ax.set_xlim(-30, 390), ax.set_ylim(-80, 80)
# a.plot(ax, ref=-10, label="Anticyclonic", color="r", lw=0.1)
c.plot(ax, ref=0, label="Cyclonic", color="b", lw=1.1)
ax.legend()
ax.grid()

image

If I use ref=None everything is fine:

fig = plt.figure(figsize=(12, 5))
ax = fig.add_axes((0.05, 0.1, 0.9, 0.9))
ax.set_aspect("equal")
ax.set_xlim(-30, 390), ax.set_ylim(-80, 80)
# a.plot(ax, ref=-10, label="Anticyclonic", color="r", lw=0.1)
c.plot(ax, ref=None, label="Cyclonic", color="b", lw=1.1)
ax.legend()
ax.grid()

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions