Modifying the fieldset data #1032
Answered
by
erikvansebille
philippemiron
asked this question in
Q&A
-
Hi everyone, I have velocity fields with some erroneous values that I would like to identify and modify before executing the kernel. For example, I would like to remove the values higher than 10m/s but this does not work with the lazy loading going on.
Someone could point me to an example on how to proceed? Thanks ! 🙏 |
Beta Was this translation helpful? Give feedback.
Answered by
erikvansebille
May 31, 2021
Replies: 1 comment
-
You can use |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
philippemiron
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use
vmax
(andvmin
) when you create a FieldSet to replace any values higher than a certain maximum by 0. See also https://github.com/OceanParcels/parcels/blob/master/parcels/field.py#L168-L169