developmentseed / label-maker

Data Preparation for Satellite Machine Learning
http://devseed.com/label-maker/
MIT License
460 stars 110 forks source link

Accommodate MS and Bands Beyond Default RGB #178

Closed martham93 closed 4 years ago

martham93 commented 4 years ago

allows users to optionally specify the number of bands and indices of bands to use when input image is a tif or vrt in a config file. The behavior will default to three band rgb if not specified. The .png tiles and image array in the data.npz will be written out in the same dtype as imagery in the tif is provided. This is useful for MS imagery.

Should the number of bands specified be removed as an optional input? and that number just derived from the lenght of the list of tile indices that's an optional input? cc @drewbo