ana5Utils.DFAPathGeneration.getDFAPathFromField

getDFAPathFromField(fieldsList, fieldHeader, dem)[source]

compute mass averaged path from fields

Also returns the averaged velocity and kinetic energy associated The dem and fieldsList (FT, FV and FM) need to have identical dimentions and cell size. If FV is not provided, information about velocity and kinetic energy is not computed

Parameters
  • fieldsList (list) – time sorted list of fields dict

  • fieldHeader (dict) – field header dict

  • dem (dict) – dem dict

Returns

avaProfileMass – mass averaged profile (x, y, z, ‘s’) if ‘FV’ in fieldsList, kinetic energy and velocity information are added to the avaProfileMass dict (u2, ekin, totEKin)

Return type

dict