[MINC-users] frame time and duration from mincheader

Ona Wu ona at pet.auh.dk
Fri Aug 26 13:20:42 EDT 2005


Hi Oliver,

Try:

mincinfo -varvalues time-width SC1CN022M1_42b_b45_5.mnc

and

mincinfo -varvalues time SC1CN022M1_42b_b45_5.mnc

or just

mincinfo -varvalues time -varvalues time-width SC1CN022M1_42b_b45_5.mnc

Cheers,
Ona

On Fri, 26 Aug 2005, Oliver Winz wrote:

>>
>> 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
>
>


More information about the MINC-users mailing list