I'am creating a python script tool for ArcGIS Desktop 10.1 to extract profiles. I’m using stack profile to extract values to a table but stack profile only outputs values where the line and raster overlaps.
My solution to create profiles that will start at the beginning of my line is to find the distance between the start of the line and the start of the raster and then offset the x-axis. But how do I find this distance (marked with blue in picture below) with arcpy/python?
Update: the solution needs to work with floating point raster dataset