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

Add methods for computing shoaling and refraction coefficients #27

Open
hevgyrt opened this issue Oct 30, 2024 · 0 comments
Open

Add methods for computing shoaling and refraction coefficients #27

hevgyrt opened this issue Oct 30, 2024 · 0 comments

Comments

@hevgyrt
Copy link
Owner

hevgyrt commented Oct 30, 2024

Methods for computing shoaling and refraction coefficients should be added to the ray tracing object.

Suggestion for shoaling:

def get_shoaling_coeff(self):
    ds_rays = self.to_ds()
    shoaling_coeff = np.sqrt(ds_rays.ray_cg[:,0]/ds_rays.ray_cg)   

Suggestion for refraction:

def get_refraction_coeff(self):
    ds_rays = self.to_ds()
    distance = ... #compute distance between adjacent rays
    ref_coeff = np.sqrt(ds_rays.ray_cg[:,0]/ds_rays.ray_cg) * np.sqrt( distance )
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