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

Can anyone help to explain the function estimate_longlatdiamkm #45

Open
caiya55 opened this issue Nov 30, 2021 · 0 comments
Open

Can anyone help to explain the function estimate_longlatdiamkm #45

caiya55 opened this issue Nov 30, 2021 · 0 comments

Comments

@caiya55
Copy link

caiya55 commented Nov 30, 2021

Hi, I just found there are some difference between the equation and the code in the function estimate_longlatdiamkm from get_unique_craters.py. That is , how to convert the pixel coordinate into latitude/longitude coordinate. Specifically, why there is sin and cos here.

    lat_deg = lat_central - (deg_per_pix * (lat_pix - dim[1] / 2.) *
                             (np.pi * latdiff / 180.) /
                             np.sin(np.pi * latdiff / 180.))
    # Determine longitude using determined latitude.
    long_deg = long_central + (deg_per_pix * (long_pix - dim[0] / 2.) /
                               np.cos(np.pi * lat_deg / 180.))
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

1 participant