2009/7/8 Frank Warmerdam <warmerdam at pobox.com>: > Jorge, > > I believe taking the count of values in the pixel_types array is the > correct approach to determining the number of bands. > > Elegant is in the eye of the beholder. Ok, thanks Frank. I like your point :-) Best regards Jorge