in3Utils.geoTrans.prepareLine

prepareLine(dem, avapath, distance=10, Point=None)[source]

1- Resample the avapath line with a max intervall of distance=10m between points (projected distance on the horizontal plane). 2- Make avalanche profile out of the path (affect a z value using the dem) 3- Get projection of points on the profil (closest point)

Parameters
  • - a dem dictionary

  • - a avapath line dictionary

  • - a resampling Distance

  • - a point dictionary (optional, can contain several point)

Returns

  • - the resampled avaprofile

  • - the projection of the point on the profile (if several points – were give in input, only the closest point to the profile is projected)