in3Utils.geoTrans.checkProfile

checkProfile(avaProfile, projSplitPoint=None)[source]

check that the avalanche profiles goes from top to bottom flip it if not and adjust the splitpoint in consequence

Parameters
  • avaProfile (dict) – line dictionary with x and y coordinates

  • projSplitPoint (dict) – a point dictionary already projected on the avaProfile

Returns

  • avaProfile (dict) – avaProfile, fliped if needed

  • projSplitPoint (dict) – point dictionary