<?xml version="1.0" encoding="utf-8"?><!DOCTYPE article  PUBLIC '-//OASIS//DTD DocBook XML V4.4//EN'  'http://www.docbook.org/xml/4.4/docbookx.dtd'><article><articleinfo><title>DBedit</title><revhistory><revision><revnumber>5</revnumber><date>2013-03-07 21:23:55</date><authorinitials>localhost</authorinitials><revremark>converted to 1.6 markup</revremark></revision><revision><revnumber>4</revnumber><date>2006-10-12 14:50:19</date><authorinitials>devel03.mrc-cbu.cam.ac.uk</authorinitials></revision><revision><revnumber>3</revnumber><date>2006-10-12 14:50:11</date><authorinitials>devel03.mrc-cbu.cam.ac.uk</authorinitials></revision><revision><revnumber>2</revnumber><date>2006-07-25 14:45:38</date><authorinitials>devel03.mrc-cbu.cam.ac.uk</authorinitials></revision><revision><revnumber>1</revnumber><date>2006-07-04 15:01:34</date><authorinitials>Scripting Subsystem</authorinitials></revision></revhistory></articleinfo><section><title>dbedit</title><para>dbedit is a program written by John Ashburner a long time ago, that he has kindly given us permission to distribute. You can get the source, and Sun / Windows binaries at <ulink url="http://imaging.mrc-cbu.cam.ac.uk/downloads/Dbedit/dbedit.tar.gz"/>. To compile on Unix, run the command: </para><screen><![CDATA[gcc -o dbedit dbedit.c anautils.c]]></screen><para>To compile on Windows, get hold of the <ulink url="http://sources.redhat.com/cygwin/">Cygwin utilities and gcc compiler</ulink> - see the <ulink url="http://gnumex.sourceforge.net">Cygwin / mex file</ulink> page for some tips that may be relevant. Then compile with the command line (which expects Cygwin to be on your path): </para><screen><![CDATA[gcc -mno-cygwin -o dbedit.exe dbedit.c anautils.c]]></screen><para>dbedit shows and sets fields in the <ulink url="https://imaging.mrc-cbu.cam.ac.uk/imaging/DBedit/imaging/FormatAnalyze#">Analyze</ulink> header from the command line. The usage is: </para><screen><![CDATA[dbedit file.hdr atr1 [=val1] |all [atr2 [=val2] [atr3 [=val3] ..]]]]></screen><para>To see all the possible fields in a header, and the names that dbedit uses, type: </para><screen><![CDATA[dbedit]]></screen><para>To see all the values of the fields in a particular analyze header: </para><screen><![CDATA[dbedit myfile.hdr all]]></screen><para>To set a field in a header, such as the size of the voxel dimensions in Z: </para><screen><![CDATA[dbedit myfile.hdr "dime.pixdim [3] =5"]]></screen><para>(the inverted commas are needed to hide the square brackets from the Unix shell) </para><para>Matthew Brett 24/1/01  </para></section></article>