ana3AIMEC.ana3AIMEC.computeSLParticles
- computeSLParticles(rasterTransfo, demHeader, particlesX, particlesY)[source]
find the closest s, l coordinates in the aimec/thalweg coordinate system to a particles x,y location
- Parameters
rasterTransfo (dict) – info on rasterTransformation, here gridx, gridy coordinates
demHeader (dict) – dict with info on dem xllcenter, yllcenter
particlesX (np array) – x coordinates of particles location for one time step but all particles (origin 0,0)
particlesY (np array) – Y coordinates of particles location for one time step but all particles (origin 0,0)
- Returns
sList, lList – list of s, l coordinates for respective particle
- Return type
list