SMAP routines for dealing with maps of Herschel/SPIRE data