Creating the bands

On importing shapefiles, have a look at this post: Removing land by masking

It is answered one post below.

On their use as training areas: Rndom forest classification steps