# Ping 1D Profile Data Understanding

**URL:** <https://discuss.bluerobotics.com/t/ping-1d-profile-data-understanding/12775>\
**Category:** Ping Sonar Devices\
**Tags:** ping\
**Created:** [August 18, 2022, 9:33am UTC](https://discuss.bluerobotics.com/t/ping-1d-profile-data-understanding/12775 "2022-08-18T09:33:18Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![EliotBR](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/eliotbr/32/6937_2.png) [@EliotBR](https://discuss.bluerobotics.com/u/EliotBR)\
**Post date:** [August 19, 2022, 2:46am UTC](https://discuss.bluerobotics.com/t/ping-1d-profile-data-understanding/12775/2 "2022-08-19T02:46:00Z")

</div>

Hi @Bartosz, welcome to the forum 🙂

I have edited your post to include some code blocks so it’s more readable. You can learn how to do that in the [How to Use the Blue Robotics Forums](https://discuss.bluerobotics.com/t/how-to-use-the-blue-robotics-forums-please-read/10521) post.

> [@Bartosz](#):
>
> There is an option to handle this problem with brping library? If yes, please let me know by share code.

As per [the ping protocol docs](https://docs.bluerobotics.com/ping-protocol/pingmessage-ping1d/#1300-profile), the profile data is

> [@ping protocol - ping1d - profile.profile\_data](#):
>
> An array of return strength measurements taken at regular intervals across the scan region. The first element is the closest measurement to the sensor, and the last element is the farthest measurement in the scanned range.

There is no “confidence” for those values, because they are the samples from the transducer, measuring the sound intensities over time in response to a single ping. In Ping Viewer, one profile corresponds to one vertical line.

Each profile also has a distance estimate, which is calculated by the sensor firmware from the data in that profile and the measurements that came before it. It also includes a measure of confidence, which is how sure the sensor is that its “distance” estimate is correct. You can access those values with `myMessage['distance']` and `myMessage['confidence']`.

If you only want the distance estimate and confidence (and don’t need the profile data), you can use the `myPing.get_distance()` function instead of `myPing.get_profile()`, as in [our example](https://github.com/bluerobotics/ping-python/blob/master/examples/simplePingExample.py#L43). The profile data is only useful if you want to do your own processing of it, for example to try to calculate your own alternative distance estimates, or maybe to try to estimate material types or surface shapes or something.

---

_[View the full topic](https://discuss.bluerobotics.com/t/ping-1d-profile-data-understanding/12775)._
