Hi,

On 22/04/2021 14:01, Sanaa GHANDI wrote:
Hello, 

I hope you are all doing well.

I have a few questions concerning the measurements selection, and I am interested only on the anchoring mesh measurements.

In fact, for optimisation issues, I would like to be able to select only measurements of interest:

For example, I want to get the results coming from sources: X and Y, and targeting the anchor 6771.

Now I can get the measures targeting the anchor 6771 using this code from Altas Cousteau

##################################################################
from ripe.atlas.cousteau import MeasurementRequest

filters = {'tags': ['anchoring','mesh',6771] }

measurements = MeasurementRequest(**filters)
####################################################################


But I have no idea of how to make a filter on the sources as well, since all we can access through the measurements are the number of anchors requested and not their ids.

Do you know a way to get access to the sources of a measurement via Atlas Cousteau or another Ripe Tool ?

You cannot filter directly on the probes but you can include the list of probes participating in the measurement:

https://atlas.ripe.net/api/v2/measurements/29786041/?optional_fields=probes

You can then iterate over this key to find if the probes you're looking for are included and get only those results with something like this:

https://atlas.ripe.net/api/v2/measurements/29786041/results/?probe_ids=6945

Hope this helps,

Cheers,
Johan



Thank you

--
Sanaa