virtualargofleet.velocity_helpers.VelocityField#
- class VelocityField[source]#
Class prototype to manage a Virtual Fleet velocity field
This prototype provides useful methods to prepare a
parcels.fieldset.FieldSetfor a VirtualFleet simulation. AVelocityFieldinstance can be passed directly to aVirtualFleetinstance.You can use the
Velocity()function to instantiate such a class for known products.- __init__(*args, **kwargs)#
Methods
__init__(*args, **kwargs)add_mask()Create mask for grounding management
plot()Quick plot of the ParticleSet
Ensure a global fieldset
Attributes
dimDimensions dictionary mapping of
time,depth,latandlonon netcdf velocity variable namesfieldInternal definition of the velocity fields; it can be a
xarray.Datasetor a dictionary withUandVas keys and list of corresponding files as valuesInstance of
parcels.fieldset.FieldSetcreated using thefieldattributeisglobalBoolean indicating weather the velocity field is global or not, used to add
halo_*constants on thefieldsetattributenameshortname ID for this velocity field
varVariable dictionary mapping of
UandVon netcdf velocity variable names