factor out creating brick WCS, and selecting CCDs touching WCS