How does one calculate the median value of Z from a 3D line?
The Add Surface Information tool in 3D Analyst only does Min,Max and Mean (average), and requires a surface model. (In this case I have one, but all necessary info is in the line, so let's just use that.) Line Statistics can do Median as well as Minority, Majority and a few others, but it doesn't know about 3D lines and only operates on field attributes.
Primary environment is ArcGIS Desktop but I'm open to Gdal/Qgis methods that write results to the source feature class in place (file-gdb).
Desired outcome are lines with a populated Z_Median attribute.