M-File splitter, thanks to m.a@stars harassment :-) |
Thu, 06 April 2006 15:30 ![Go to next message Go to previous message](theme/Stars/images/down.png) |
|
wumpus | ![](images/po_master.gif) | | Messages: 114
Registered: September 2004 | |
|
Well, m.a@stars has been hassling me about making an M-file splitter for a while now, so here, finally it is, complete with source code ![Smile](images/smiley_icons/icon_smile.gif)
http://sourceforge.net/project/showfiles.php?group_id=65726& amp;package_id=186619
Given an M-file which contains multiple years worth of data, mSplit will output one M file per year.
The naming of the output files is not exactly optimal yet, since you have to rename them in order to open them in stars!, but since stars! insists on a very specific name so that it can find the corresponding XY file, a simple solution didn't seem available. I didn't feel that making a lot of subdirectories and putting one year's worth of M file into each subdirectory was an acceptable solution.
Comments welcome ofc ![Smile](images/smiley_icons/icon_smile.gif)
(Just run the program at a command prompt / dos window / whatever those things are called these days - the usage message should be clear enough I hope ![Smile](images/smiley_icons/icon_smile.gif)
It's purely a console app at this stage, if someone feels like putting a nice GUI front end on it, feel free!)
[EDIT 17.4.2006: Corrected link - now points to list of releases on SF, rather than this specific version - so that a later update will not require changing this thread . The link above looks broken with the 'amp' in the middle, but does work... SAH Forum software not doing what I want ]
[Updated on: Mon, 17 April 2006 13:59]
Michael "Wumpus" Zinn
» Apply magic glue here «Report message to a moderator
|
|
|