Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error about eddy_identification function #222

Closed
zhanglan009 opened this issue Nov 14, 2023 · 2 comments
Closed

error about eddy_identification function #222

zhanglan009 opened this issue Nov 14, 2023 · 2 comments

Comments

@zhanglan009
Copy link

Dear Author,
When I running the eddy_identification function, I always get only 1 anticyclone and 1 cyclone, or 0 anticyclones and cyclones entirely, regardless of running the example pet_eddy_sla_and_adt you provided or the example on https://py-eddy-tracker.readthedocs.io/en/latest/grid_identification.html. I'm wondering if the eddy_identification function has been modified and is now unable to calculate all a and c.
图片
图片
code:
from matplotlib import pyplot as plt
from py_eddy_tracker import start_logger
from py_eddy_tracker.dataset.grid import RegularGridDataset

start_logger().setLevel("DEBUG") # Available options: ERROR, WARNING, INFO, DEBUG

grid_name= ('dataset-duacs-nrt-global-merged-allsat-phy-l4_1699415795667.nc')
from datetime import datetime

h = RegularGridDataset(grid_name, "longitude", "latitude", nan_masking=True)
h.bessel_high_filter("adt", 500)
date = datetime(2019, 2, 23)
h.add_uv("adt")
u, v = h.grid("u").T, h.grid("v").T
a, c = h.eddy_identification("adt","u","v", # Variables used for identification
date, # Date of identification
0.002, # step between two isolines of detection (m)
pixel_limit=(5, 2000), # Min and max pixel count for valid contour
shape_error=55, # Error max (%) between ratio of circle fit and contour
force_speed_unit="m/s"
)

from datetime import datetime

h = RegularGridDataset(grid_name, "longitude", "latitude", nan_masking=True)
h.bessel_high_filter("adt", 500)
date = datetime(2019, 2, 23)
h.add_uv("adt")
u, v = h.grid("u").T, h.grid("v").T
a, c = h.eddy_identification("adt","u","v", # Variables used for identification
date, # Date of identification
0.002, # step between two isolines of detection (m)
pixel_limit=(5, 2000), # Min and max pixel count for valid contour
shape_error=55, # Error max (%) between ratio of circle fit and contour
force_speed_unit="m/s"
)

@AntSimi
Copy link
Owner

AntSimi commented Nov 14, 2023

take a look at #219

@zhanglan009
Copy link
Author

Thank you very much! I sincerely appreciate your invaluable assistance.

@AntSimi AntSimi closed this as completed Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants