dealing with particles on land #1521
mollyjames2
started this conversation in
General
Replies: 1 comment 8 replies
-
Dear @mollyjames2, two quick comments:
|
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to write a function to acknowledge if a particle is on land. My end goal is to create a csv of the date/time that a particle hits land and its lat/lon.
so far i have created a land mask that matches the dimensions of the U,V fields as follows:
This landmask looks fine (see image)
I have defined a function as follows:
this runs fine (i do get a lot of debug info errors that causes the model to freeze with a greater number of particles - is there any way to turn these off? i have tried supressing debug output with
pset.kernel_options = {'verbose': False}
:however, when i look at the outputs something funny is happening. the particles seem to still be moving over land (see image):
and looking at the variable 'on_land' in the output i see some strange numbers - i am expecting a binary, with 1 denoting particles on land but that is not what i'm seeing in the output.
I have tried changing my function to:
but apparently this isn't supported. Please could you provide some insight into what's going on here?
Beta Was this translation helpful? Give feedback.
All reactions