Sep-11-2020, 11:48 PM
Hello all
I was hoping I could get some suggestions on how to implement the following Python program.
I work on the highway, one of the issues I have to deal with is fixing surface cracks.
The only time I need to intervene is when there are at least 4 cracks on the same cross section. For example, the attachment P1 shows 5 lines, each line represents a crack. In this case all 5 of these cracks were found between 2m and 6m.
See P1 Attachment
However I only need to intervene when 4 or more of the cracks overlap, as shown below.
From attachment P2 you can see that there are 4 cracks the all overlap between 3.7m and 4.2m – it is this section that I need to fix.
See P2 Attachment
My aim is to create a color spectrum where if there is no cracks then the color of the row /plot would be green, if it has 2 x overlapping cracks then the color would be yellow, 3 over lapping cracks the color would be Red and 4 or more overlapping cracks the color would be light blue. For example:-
See P3 Attachment
This is what I wanted to create in Python.
For a new user I know this is a challenging task but I am up to it.
But I wanted to ask if this was possible? I was considering achieving this in a figure window with a plot?
But is there an alternative way to do this? I have the data that tells me where the cracks start and stop i.e.
Crack Type Start Stop
A 5.128 5.962
A 5.965 7.123
Is there a built in function where if I ordered the data in some way then Python/Matplot lib could some how achieve my objective?
Any help or advice would be greatly appreciated.
Thank you.
I was hoping I could get some suggestions on how to implement the following Python program.
I work on the highway, one of the issues I have to deal with is fixing surface cracks.
The only time I need to intervene is when there are at least 4 cracks on the same cross section. For example, the attachment P1 shows 5 lines, each line represents a crack. In this case all 5 of these cracks were found between 2m and 6m.
See P1 Attachment
However I only need to intervene when 4 or more of the cracks overlap, as shown below.
From attachment P2 you can see that there are 4 cracks the all overlap between 3.7m and 4.2m – it is this section that I need to fix.
See P2 Attachment
My aim is to create a color spectrum where if there is no cracks then the color of the row /plot would be green, if it has 2 x overlapping cracks then the color would be yellow, 3 over lapping cracks the color would be Red and 4 or more overlapping cracks the color would be light blue. For example:-
See P3 Attachment
This is what I wanted to create in Python.
For a new user I know this is a challenging task but I am up to it.
But I wanted to ask if this was possible? I was considering achieving this in a figure window with a plot?
But is there an alternative way to do this? I have the data that tells me where the cracks start and stop i.e.
Crack Type Start Stop
A 5.128 5.962
A 5.965 7.123
Is there a built in function where if I ordered the data in some way then Python/Matplot lib could some how achieve my objective?
Any help or advice would be greatly appreciated.
Thank you.