This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
manual:ras [2013/10/08 17:37] zenke created |
manual:ras [2016/08/08 22:22] (current) zenke [ras file format definition] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | The file extension "RAS" is used for spiking data files created by the [[SpikeMonitor]]. The format is a space separated list containing "time neuronnumber" pairs: | + | ====== ras file format definition ====== |
+ | |||
+ | The ras file format is a human readable ASCII file format to encode spiking activity from a population of numbered neurons. The format is a space separated list containing "time neuronnumber" pairs, of which time is given in seconds and the neuron id is given as integer: | ||
<code> | <code> | ||
Line 9: | Line 11: | ||
5.716600 1464 | 5.716600 1464 | ||
</code> | </code> | ||
+ | The neuron number refers to the [[NeuronID]] within a [[SpikingGroup]]. The suggested file extension "ras" and as it is used for created by the [[SpikeMonitor]]. | ||
- | Time is as usual given in units of seconds. The neuron number refers to the [[NeuronID]] within a [[SpikingGroup]]. | + | The format can be easily visualized with gnuplot, matplotlib or another function plotter, by plotting it as scatterplot: |
+ | {{ :manual:ras.png |}} | ||
+ | |||
+ | ===== Merging ras files from multiple ranks ===== | ||
+ | |||
+ | When [[parallel execution|running in parallel]] you will often encounter having to merge the ras files from multiple ranks (e.g. output.X.ras). This can be done efficiently using linux ''sort'' program | ||
+ | <code shell> | ||
+ | sort -g -m output.*.ras > output.ras | ||
+ | </code> |