Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Matsim_Tutorial.rst #644

Merged
merged 1 commit into from
Jan 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions Docs/Matsim_Tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ Here, for our use case, the MAtsim scenario and it's agents were generated by us
You can explore the other options by reading their descriptions. Here we are going to set them as follows:

- Network CSV file: ``/path/to/your/scenario_matsim/network.csv``
- Export additionnal traffic data ? : ``false``
- Export additionnal traffic data ? : ``true``
- Calculate All vehicles noise source ?: ``true``
- Path of the matsim output folder: ``/path/to/your/scenario_matsim``
- populationFactor: ``0.01``
Expand All @@ -87,7 +87,7 @@ You can explore the other options by reading their descriptions. Here we are goi
.. figure:: images/matsim/traffic_events_wps.png
:align: center

You should end up with a ``MATSIM_ROADS`` table containing the links ids and their geometry and a ``MATSIM_ROADS_STATS`` table containing the noise power level of each link per 15 min time slice.
You should end up with a ``MATSIM_ROADS`` table containing the links ids and their geometry and a ``MATSIM_ROADS_LW`` table containing the noise power level of each link per 15 min time slice.

.. figure:: images/matsim/roads_table.png
:align: center
Expand Down Expand Up @@ -214,20 +214,20 @@ We can see such a list for the receiver n°1 in the figure below:
Step 6 : Calculate Noise Maps
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

We have noise power levels every 15 minutes in the ``MATSIM_ROADS_STATS`` table, and a source-receiver noise attenuation matrix in the ``LDAY_GEOM`` table.
We have noise power levels every 15 minutes in the ``MATSIM_ROADS_LW`` table, and a source-receiver noise attenuation matrix in the ``LDAY_GEOM`` table.
We just need to combine the two to get receivers noise levels, noise maps, every 15 minutes.

This is the purpose of the ``Noise_From_Attenuation_Matrix`` WPS bloc.
We just have set the right tables as input as follows :

- Attenuation matrix table name: ``LDAY_GEOM``
- Output table name: ``RESULT_GEOM``
- Table name of the MATSIM table containing the roads LW stats per timeString: ``MATSIM_ROADS_STATS``
- Table name of the MATSIM table containing the roads LW stats per timeBin: ``MATSIM_ROADS_LW``
- Table name of the MATSIM table containing the roads geometries: ``MATSIM_ROADS``

.. figure:: images/matsim/noise_map_wps.png
:align: center

S
It takes some time but in the end you should get a noise spectrum for every receiver every 15 minutes in the table ``RESULT_GEOM``.

We have our noise maps !
Expand Down Expand Up @@ -267,12 +267,12 @@ Let's go into QGIS. We are going to import 2 layers : an osm background and our

You should see a lot of points all of the same color.

We now need to choose a timeslice we want to visualize, let's pick ``10h00_10h15``.
We now need to choose a timeslice we want to visualize, let's pick the timeBin of 10h (36000 seconds).
If you right click on the receivers layer and click on ``Filter...`` you should see the filter dialog.

To filter results for the 10h00_10h15 time period you can enter the following filter query :

``TIMESTRING = '10h00_10h15'``
``TIME = 36000``

The last step is to color the dots based on the LEQA field.
Here is my configuration :
Expand Down
Loading