Pathdist返回沿着路径传播的累积距离的数组。
句法
pathdistance = pathdist(lat,lon)
pathDistance = pathdist(...,LengthUnit)
pathDistance = pathdist(...,track)
pathdistance = pathdist(...,'refpoint',[reflat reflon])
描述
pathdistance = pathdist(lat,lon)返回沿着(lat,| lon |)给出的路径传播的累积距离。默认情况下,距离为米,引用了WGS84椭球。路径阵列的大小与LAT和LON相同。
pathdistance = pathdist(...,lengthunit)指定任何有效的长度单位。以下是一些长度固定选项。有关valialatementhtunit,请参阅文档,以获取完整的选项列表。
仪表“ m','米(s)','米(s)'(默认)
公里“ km”,“公里”,“公里”(S)'
nautical mile 'nm', 'naut mi', 'nautical mile(s)'
脚“ ft”,“国际英尺”,“脚”,“国际脚”,“脚”,“国际脚”
inch 'in', 'inch', 'inches'
院子'yd','yds','Yard'
英里“ mi”,“英里”,“国际英里”
PATHDISTANCE = PATHDIST(...,轨道)使用输入字符串轨道来指定大圆/地理线或RHUMB线弧。如果轨道等于“ GC”(默认值),则在球体上计算出大圆距离,并在WGS84椭圆形上计算地测量距离。如果轨道等于“ RH”,则在WGS84椭球上计算RHUMB线距离。
pathdistance = pathdist(...,'refpoint',[reflat reflon])引用了沿最接近[reflat reflon]路径的路径距离。为了进行此计算,Pathdist在LAT和LON中找到了最接近[Reflat Reflon]的点,并沿LAT假设这一点,| lon |是零点。这只是一个近似值,在非常明显的弯曲,越过或其他类似意大利面条的路径的情况下可能会产生错误的结果;[Reflat Reflon]远离路径的任何点,或者沿着路径的点间隔很远。
引用为
查德·格林(Chad Greene)(2022)。pathdist(//www.tatmou.com/matlabcentral/fileexchange/47042-pathdist), MATLAB Central File Exchange. Retrieved。
MATLABRelease Compatibility
平台兼容性
Windows 苹果系统 Linux类别
标签
致谢
启发:pos2dist,,,,Vectorized geodetic distance and azimuth on the WGS84 earth ellipsoid,,,,波斯人,,,,Greatcircle and Loxodrome:“乌鸦飞翔”和Rhumb Lin,,,,全球定位系统_distance,,,,拉特隆距离,,,,InterPM2,,,,令人讨厌
启发:gdistm