The code to make sky masks based on gaia getmask.getmask is the main routine The code requires SQL access to the Gaia DB Before running the cffi extension needs to be built using code_builder.py