Skip to content

bstabler/EMXtoOMX

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 

Repository files navigation

EMXtoOMX

Read and write OMX matrices from/to the EMME databank. Can export mfs, mos, and mds, but only one type at a time and only all by number or by name. Uses the active databank in the project or else the first databank.

Arguments: emme_project scenario omx_file_name -i|e mat1 mat2 matN

Example usage

SET EMMEPY="C:\Program Files\INRO\Emme\Emme 4\Emme-4.2.5\Python27\python.exe"

Example export with numbers

%EMMEPY% EMXtoOMX.py myproj.emp 9999 C:\projects\mats.omx -e mf1 mf2 mf3

Example import with numbers

%EMMEPY% EMXtoOMX.py myproj.emp 9999 C:\projects\mats.omx -i mf1 mf2 mf3

Example export with names

%EMMEPY% EMXtoOMX.py myproj.emp 9999 C:\projects\mats.omx -e mfsurvey mftime

Example import with names

%EMMEPY% EMXtoOMX.py myproj.emp 9999 C:\projects\mats.omx -i mfsurvey mftime

OMX Package Name

If the omx module cannot be found, then it may be because it was renamed to openmatrix in a later distribution. See this version of the script for a renamed package.