[MINC-users] frame time and duration from mincheader

Oliver Winz o.winz at fz-juelich.de
Fri Aug 26 12:29:57 EDT 2005


minc-users-request at bic.mni.mcgill.ca schrieb:

>Send MINC-users mailing list submissions to
>	minc-users at bic.mni.mcgill.ca
>
>To subscribe or unsubscribe via the World Wide Web, visit
>	http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-users
>or, via email, send a message with subject or body 'help' to
>	minc-users-request at bic.mni.mcgill.ca
>
>You can reach the person managing the list at
>	minc-users-owner at bic.mni.mcgill.ca
>
>When replying, please edit your Subject line so it is more specific
>than "Re: Contents of MINC-users digest..."
>
>
>Today's Topics:
>
>   1. frame time and duration from mincheader (Oliver Winz)
>   2. Re: frame time and duration from mincheader (Andrew Janke)
>
>
>----------------------------------------------------------------------
>
>Message: 1
>Date: Fri, 26 Aug 2005 14:58:56 +0200
>From: Oliver Winz <o.winz at fz-juelich.de>
>Subject: [MINC-users] frame time and duration from mincheader
>To: minc-users at bic.mni.mcgill.ca
>Message-ID: <430F1210.8000005 at fz-juelich.de>
>Content-Type: text/plain; charset=ISO-8859-15; format=flowed
>
>hi everyone,
>
>is there a easy chance to get the frame time and frame duration from the 
>mincheader, maybe by one command? otherwise i write a little script.
>the minc data contain a dynamic pet image converted with "ecattominc".
>thanks and greetings,
>
>oliver
>
>  
>
hi andrew,

thank's for the help.
when i use the command:
 > mincinfo  -attvalue time:step SC1CN022M1_42b_b45_5.mnc
i get the following message:
ncattinq: ncid 3: Attribute not found

here the normal mincinfo:
 > mincinfo SC1CN022M1_42b_b45_5.mnc
file: SC1CN022M1_42b_b45_5.mnc
image: signed__ short -32000 to 32000
image dimensions: time zspace yspace xspace
    dimension name         length         step        start
    --------------         ------         ----        -----
    time                       29      unknown      unknown
    zspace                     63       -2.425      -445.58
    yspace                    128      2.00331      -127.21
    xspace                    128      2.00331      -127.21

what i need is the following information getting from mincheader:
 > mincheader SC1CN022M1_42b_b45_5.mnc
netcdf SC1CN022M1_42b_b45_5 {
dimensions:
        time = 29 ;
        zspace = 63 ;
        yspace = 128 ;
        xspace = 128 ;
variables:
.........
.........
.........ecat-subhdr:Zfilter_Order = "0" ;

// global attributes:
                :history = "Fri Aug 26 15:50:06 2005>>> ecattominc 
-clobber -short
 -decay_correct 
/local/data/SC1CN022M/PET/SC1CN022M1/SC1CN022M1_42b_b45_5.v 
/tmp/itchy-19679/SC1CN022M1_42b_b45_5.mnc\n",
    "" ;
data:

 time = 0, 60, 120, 180, 240, 360, 480, 600, 900, 1200, 1500, 1800, 2100,
    2400, 2700, 3000, 3300, 3600, 3900, 4200, 4500, 4800, 5100, 5400, 5700,
    6000, 6300, 6600, 6900 ;

 time-width = 60, 60, 60, 60, 120, 120, 120, 300, 300, 300, 300, 300, 300,
    300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300,
    300, 300 ;

in detail i need the "time" and "time-width" information.

greetings,

oliver

-- 
Oliver Winz, M.Sc.
AG Molekulares Neuroimaging
Institut für Medizin (IME)
Forschungszentrum Jülich
D-52425 Jülich

Tel.: (02461) 61-6493
Internet: http://www.fz-juelich.de/ime/mni
Ort: Gebäude 15.9, Raum 3010 



More information about the MINC-users mailing list