matrices in openmatrix and AequilibraE formats

140 views
Skip to first unread message

Ian Ho

unread,
Dec 15, 2020, 4:07:28 AM12/15/20
to aequi...@googlegroups.com
Dear Pedro,

I'm a rookie in both AequilibraE and Python.
I tried to run the same example code as following.

However, the sample data formats are different with the network data (following).

I can't even open that "aem", "omx" , "aed" formats in 0_tntp_data folder.
I still can't find the solution after browsing the website.
May I know how to convert the txt files into "openmatrix and AequilibraE formats", so that I can run the code and try to understand how they work.
Much appreciated!!

Best regards,
Ian

Pedro Camargo

unread,
Dec 15, 2020, 8:26:56 PM12/15/20
to Ian Ho, aequilibrae
Hi Ian,

I am not exactly sure of what you tried, so I have a couple of questions and a few references for you to look at.


- What do you mean by not being able to open the AEM and OMX files?  Where did you attempt to open them? With the AequilibraE plugin in QGIS?  Have you installed openmatrix (omx) as an administrator inside your QGIS?

- What is the issue with the TNTP networks being in a different format than the AequilibraE project? AequilibraE has its own data format (a geo-enabled format), while the TNTP exists solely as a common format for testing equilibrium traffic assignment algorithms.  I have imported some of the TNTP instances into AequilibraE projects for example purposes, but you should no expect any equivalence in data formats/types.



A few references:
1. There is a script on how to import TNTP matrices into OMX files here: https://github.com/bstabler/TransportationNetworks/blob/master/_scripts/parsing%20networks%20in%20Python.ipynb
2. The examples page you mentioned has an example of how to import CSVs into AEM and OMX file formats here: https://www.aequilibrae.com/python/latest/usageexamples.html#id1
3. You can import matrices into AEM/OMX from inside QGIS as well (I could not find the video tutorial, but it should be self-explanatory)
4.  If you want to use AequilibraE to assign traffic directly from TNTP instances, you will have to go deeper into Python.  A little reference (hastily put together) here: https://gist.github.com/pedrocamargo/d565f545667fd473ea0590c7866965de


Cheers,
Pedro

PS - No need to address the e-mail to me, as we are an entire community always happy to help


---- On Tue, 15 Dec 2020 19:07:15 +1000 Ian Ho <zong...@gmail.com> wrote ----

--
You received this message because you are subscribed to the Google Groups "AequilibraE" group.
To unsubscribe from this group and stop receiving emails from it, send an email to aequilibrae...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/aequilibrae/CAKYgUNfWoH_RUX4sy%3DRBLV3EWwbL%3DVRmw13_9RghasqH8sk20Q%40mail.gmail.com.


Reply all
Reply to author
Forward
0 new messages