Add distance field #1561
-
Hi, @erikvansebille. Can I add a distance field (the distance from each grid to the coastline) using "fieldset.add_field" and sample this field use "dis_to_coast = fieldset.dist[time, 0, particle.lat, particle.lon]"?
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Sure, why would this not work? Depending on how your coast_dist netcdf file is structured, perhaps not use The only thing to consider is what type of interpolation method to use. See the interpolation tutorial |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
Sure, why would this not work? Depending on how your coast_dist netcdf file is structured, perhaps not use
None
butdepth=0
?The only thing to consider is what type of interpolation method to use. See the interpolation tutorial