[MINC-users] pyminc and minc header

Robert D. Vincent bert at phalarope.com
Tue Sep 26 12:55:57 EDT 2017


Hi Jean-Philippe,

I am not a pyminc expert, but I would think that miget_attr_values() should
do the trick. I wrote a little demonstration program to check this and it
seems to work.

    -bert

On Mon, Sep 25, 2017 at 5:07 PM, Jean-Philippe Coutu <jp at biospective.com>
wrote:

> Dear MINC users,
>
> I have been trying to find information on how to query arbitrary header
> attributes of MINC files using pyminc. For instance, if I wanted the
> acquisition:protocol attribute, is there a way for me to do so using
> pyminc? I was able to find a way using h5py, but would prefer to do it
> through pyminc if possible.
>
> I have noticed the function libminc.miget_attr_values() is used to get the
> minc history. I assume something similar could exist to fetch an arbitrary
> header attribute (or all of them)?
>
> Thank you,
> Jean-Philippe
> _______________________________________________
> MINC-users at bic.mni.mcgill.ca
> http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-users
>


More information about the MINC-users mailing list