replacecol fibermag_u_sdss "fibermag_u_sdss-A_u_sdss"; replacecol fibermag_g_sdss "fibermag_g_sdss-A_g_sdss"; replacecol fibermag_r_sdss "fibermag_r_sdss-A_r_sdss"; replacecol fibermag_i_sdss "fibermag_i_sdss-A_i_sdss"; replacecol fibermag_z_sdss "fibermag_z_sdss-A_z_sdss"; replacecol fiber2mag_u_sdss "fiber2mag_u_sdss-A_u_sdss"; replacecol fiber2mag_g_sdss "fiber2mag_g_sdss-A_g_sdss"; replacecol fiber2mag_r_sdss "fiber2mag_r_sdss-A_r_sdss"; replacecol fiber2mag_i_sdss "fiber2mag_i_sdss-A_i_sdss"; replacecol fiber2mag_z_sdss "fiber2mag_z_sdss-A_z_sdss"; replacecol petromag_u_sdss "petromag_u_sdss-A_u_sdss"; replacecol petromag_g_sdss "petromag_g_sdss-A_g_sdss"; replacecol petromag_r_sdss "petromag_r_sdss-A_r_sdss"; replacecol petromag_i_sdss "petromag_i_sdss-A_i_sdss"; replacecol petromag_z_sdss "petromag_z_sdss-A_z_sdss"; replacecol mag_petro_g_des "mag_petro_g_des-A_g_des"; replacecol mag_petro_r_des "mag_petro_r_des-A_r_des"; replacecol mag_petro_i_des "mag_petro_i_des-A_i_des"; replacecol mag_petro_z_des "mag_petro_z_des-A_z_des"; replacecol mag_petro_y_des "mag_petro_y_des-A_y_des"; replacecol mag_aper_8_g_des "mag_aper_8_g_des-A_g_des"; replacecol mag_aper_8_r_des "mag_aper_8_r_des-A_r_des"; replacecol mag_aper_8_i_des "mag_aper_8_i_des-A_i_des"; replacecol mag_aper_8_z_des "mag_aper_8_z_des-A_z_des"; replacecol mag_aper_8_y_des "mag_aper_8_y_des-A_y_des"; replacecol mag_auto_g_des "mag_auto_g_des-A_g_des"; replacecol mag_auto_r_des "mag_auto_r_des-A_r_des"; replacecol mag_auto_i_des "mag_auto_i_des-A_i_des"; replacecol mag_auto_z_des "mag_auto_z_des-A_z_des"; replacecol mag_auto_y_des "mag_auto_y_des-A_y_des"; replacecol JPETROMAG_uhs "JPETROMAG_uhs-A_J_uhs + 0.938"; replacecol JAPERMAG3_uhs "JAPERMAG3_uhs-A_J_uhs + 0.938"; replacecol JAPERMAG4_uhs "JAPERMAG4_uhs-A_J_uhs + 0.938"; replacecol JAPERMAG6_uhs "JAPERMAG6_uhs-A_J_uhs + 0.938"; replacecol YAPERMAG3_ukidss "YAPERMAG3_ukidss-A_Y_ukidss"; replacecol YAPERMAG4_ukidss "YAPERMAG4_ukidss-A_Y_ukidss"; replacecol YAPERMAG6_ukidss "YAPERMAG6_ukidss-A_Y_ukidss"; replacecol JAPERMAG3_ukidss "JAPERMAG3_ukidss-A_J_ukidss"; replacecol JAPERMAG4_ukidss "JAPERMAG4_ukidss-A_J_ukidss"; replacecol JAPERMAG6_ukidss "JAPERMAG6_ukidss-A_J_ukidss"; replacecol HAPERMAG3_ukidss "HAPERMAG3_ukidss-A_H_ukidss"; replacecol HAPERMAG4_ukidss "HAPERMAG4_ukidss-A_H_ukidss"; replacecol HAPERMAG6_ukidss "HAPERMAG6_ukidss-A_H_ukidss"; replacecol KAPERMAG3_ukidss "KAPERMAG3_ukidss-A_K_ukidss"; replacecol KAPERMAG4_ukidss "KAPERMAG4_ukidss-A_K_ukidss"; replacecol KAPERMAG6_ukidss "KAPERMAG6_ukidss-A_K_ukidss"; replacecol YPETROMAG_vhs "YPETROMAG_vhs-A_y_vhs+0.502"; replacecol YAPERMAG3_vhs "YAPERMAG3_vhs-A_y_vhs+0.502"; replacecol YAPERMAG4_vhs "YAPERMAG4_vhs-A_y_vhs+0.502"; replacecol YAPERMAG6_vhs "YAPERMAG6_vhs-A_y_vhs+0.502"; replacecol JPETROMAG_vhs "JPETROMAG_vhs-A_j_vhs+0.916"; replacecol JAPERMAG3_vhs "JAPERMAG3_vhs-A_j_vhs+0.916"; replacecol JAPERMAG4_vhs "JAPERMAG4_vhs-A_j_vhs+0.916"; replacecol JAPERMAG6_vhs "JAPERMAG6_vhs-A_j_vhs+0.916"; replacecol HPETROMAG_vhs "HPETROMAG_vhs-A_h_vhs+1.366"; replacecol HAPERMAG3_vhs "HAPERMAG3_vhs-A_h_vhs+1.366"; replacecol HAPERMAG4_vhs "HAPERMAG4_vhs-A_h_vhs+1.366"; replacecol HAPERMAG6_vhs "HAPERMAG6_vhs-A_h_vhs+1.366"; replacecol KSPETROMAG_vhs "KSPETROMAG_vhs-A_ks_vhs+1.827"; replacecol ZPETROMAG_viking "ZPETROMAG_viking-A_Z_viking+0.502"; replacecol ZAPERMAG3_viking "ZAPERMAG3_viking-A_Z_viking+0.502"; replacecol ZAPERMAG4_viking "ZAPERMAG4_viking-A_Z_viking+0.502"; replacecol ZAPERMAG6_viking "ZAPERMAG6_viking-A_Z_viking+0.502"; replacecol YPETROMAG_viking "YPETROMAG_viking-A_Y_viking+0.6"; replacecol YAPERMAG3_viking "YAPERMAG3_viking-A_Y_viking+0.6"; replacecol YAPERMAG4_viking "YAPERMAG4_viking-A_Y_viking+0.6"; replacecol YAPERMAG6_viking "YAPERMAG6_viking-A_Y_viking+0.6"; replacecol JPETROMAG_viking "JPETROMAG_viking-A_J_viking+0.916"; replacecol JAPERMAG3_viking "JAPERMAG3_viking-A_J_viking+0.916"; replacecol JAPERMAG4_viking "JAPERMAG4_viking-A_J_viking+0.916"; replacecol JAPERMAG6_viking "JAPERMAG6_viking-A_J_viking+0.916"; replacecol HPETROMAG_viking "HPETROMAG_viking-A_H_viking+1.366"; replacecol HAPERMAG3_viking "HAPERMAG3_viking-A_H_viking+1.366"; replacecol HAPERMAG4_viking "HAPERMAG4_viking-A_H_viking+1.366"; replacecol HAPERMAG6_viking "HAPERMAG6_viking-A_H_viking+1.366"; replacecol KSPETROMAG_viking "KSPETROMAG_viking-A_Ks_viking+1.827"; replacecol apflux_g_1_legacy "apflux_g_1_legacy-A_g_decals"; replacecol apflux_g_2_legacy "apflux_g_2_legacy-A_g_decals"; replacecol apflux_g_3_legacy "apflux_g_3_legacy-A_g_decals"; replacecol apflux_g_4_legacy "apflux_g_4_legacy-A_g_decals"; replacecol apflux_g_5_legacy "apflux_g_5_legacy-A_g_decals"; replacecol apflux_g_6_legacy "apflux_g_6_legacy-A_g_decals"; replacecol apflux_g_7_legacy "apflux_g_7_legacy-A_g_decals"; replacecol apflux_g_8_legacy "apflux_g_8_legacy-A_g_decals"; replacecol apflux_r_1_legacy "apflux_r_1_legacy-A_r_decals"; replacecol apflux_r_2_legacy "apflux_r_2_legacy-A_r_decals"; replacecol apflux_r_3_legacy "apflux_r_3_legacy-A_r_decals"; replacecol apflux_r_4_legacy "apflux_r_4_legacy-A_r_decals"; replacecol apflux_r_5_legacy "apflux_r_5_legacy-A_r_decals"; replacecol apflux_r_6_legacy "apflux_r_6_legacy-A_r_decals"; replacecol apflux_r_7_legacy "apflux_r_7_legacy-A_r_decals"; replacecol apflux_r_8_legacy "apflux_r_8_legacy-A_r_decals"; replacecol apflux_z_1_legacy "apflux_z_1_legacy-A_z_decals"; replacecol apflux_z_2_legacy "apflux_z_2_legacy-A_z_decals"; replacecol apflux_z_3_legacy "apflux_z_3_legacy-A_z_decals"; replacecol apflux_z_4_legacy "apflux_z_4_legacy-A_z_decals"; replacecol apflux_z_5_legacy "apflux_z_5_legacy-A_z_decals"; replacecol apflux_z_6_legacy "apflux_z_6_legacy-A_z_decals"; replacecol apflux_z_7_legacy "apflux_z_7_legacy-A_z_decals"; replacecol apflux_z_8_legacy "apflux_z_8_legacy-A_z_decals"; replacecol mag_g_legacy "mag_g_legacy-A_g_decals"; replacecol mag_r_legacy "mag_r_legacy-A_r_decals"; replacecol mag_z_legacy "mag_z_legacy-A_z_decals"; replacecol gmag_panstarrs "gmag_panstarrs-A_g_panstarrs"; replacecol gKmag_panstarrs "gKmag_panstarrs-A_g_panstarrs"; replacecol rmag_panstarrs "rmag_panstarrs-A_r_panstarrs"; replacecol rKmag_panstarrs "rKmag_panstarrs-A_r_panstarrs"; replacecol imag_panstarrs "imag_panstarrs-A_i_panstarrs"; replacecol iKmag_panstarrs "iKmag_panstarrs-A_i_panstarrs"; replacecol zmag_panstarrs "zmag_panstarrs-A_z_panstarrs"; replacecol zKmag_panstarrs "zKmag_panstarrs-A_z_panstarrs"; replacecol ymag_panstarrs "ymag_panstarrs-A_y_panstarrs"; replacecol yKmag_panstarrs "yKmag_panstarrs-A_y_panstarrs"; addcol integmag_w1_unwise "22.5 - 2.5*log10(flux_w1_unwise) + 2.699 - A_w1_wise"; addcol integmagerr_w1_unwise "dflux_w1_unwise/flux_w1_unwise"; addcol integmag_w2_unwise "22.5 - 2.5*log10(flux_w2_unwise) + 3.339 - A_w2_wise"; addcol integmagerr_w2_unwise "dflux_w2_unwise/flux_w2_unwise"; delcols "flux_w1_unwise dflux_w1_unwise flux_w2_unwise dflux_w2_unwise"; replacecol w1mpro_allwise "w1mpro_allwise-A_w1_wise+2.699"; replacecol w2mpro_allwise "w2mpro_allwise-A_w2_wise+3.339"; replacecol w3mpro_allwise "w3mpro_allwise-A_w3_wise+5.174"; replacecol w4mpro_allwise "w4mpro_allwise-A_w4_wise+6.620"; replacecol w1mag_allwise "w1mag_allwise-A_w1_wise+2.699"; replacecol w1mag_1_allwise "w1mag_1_allwise-A_w1_wise+2.699"; replacecol w1mag_2_allwise "w1mag_2_allwise-A_w1_wise+2.699"; replacecol w1mag_3_allwise "w1mag_3_allwise-A_w1_wise+2.699"; replacecol w1mag_4_allwise "w1mag_4_allwise-A_w1_wise+2.699"; replacecol w1mag_5_allwise "w1mag_5_allwise-A_w1_wise+2.699"; replacecol w1mag_6_allwise "w1mag_6_allwise-A_w1_wise+2.699"; replacecol w1mag_7_allwise "w1mag_7_allwise-A_w1_wise+2.699"; replacecol w1mag_8_allwise "w1mag_8_allwise-A_w1_wise+2.699"; replacecol w2mag_allwise "w2mag_allwise-A_w2_wise+3.339"; replacecol w2mag_1_allwise "w2mag_1_allwise-A_w2_wise+3.339"; replacecol w2mag_2_allwise "w2mag_2_allwise-A_w2_wise+3.339"; replacecol w2mag_3_allwise "w2mag_3_allwise-A_w2_wise+3.339"; replacecol w2mag_4_allwise "w2mag_4_allwise-A_w2_wise+3.339"; replacecol w2mag_5_allwise "w2mag_5_allwise-A_w2_wise+3.339"; replacecol w2mag_6_allwise "w2mag_6_allwise-A_w2_wise+3.339"; replacecol w2mag_7_allwise "w2mag_7_allwise-A_w2_wise+3.339"; replacecol w2mag_8_allwise "w2mag_8_allwise-A_w2_wise+3.339"; replacecol w3mag_allwise "w3mag_allwise-A_w3_wise+5.174"; replacecol w3mag_1_allwise "w3mag_1_allwise-A_w3_wise+5.174"; replacecol w3mag_2_allwise "w3mag_2_allwise-A_w3_wise+5.174"; replacecol w3mag_3_allwise "w3mag_3_allwise-A_w3_wise+5.174"; replacecol w3mag_4_allwise "w3mag_4_allwise-A_w3_wise+5.174"; replacecol w3mag_5_allwise "w3mag_5_allwise-A_w3_wise+5.174"; replacecol w3mag_6_allwise "w3mag_6_allwise-A_w3_wise+5.174"; replacecol w3mag_7_allwise "w3mag_7_allwise-A_w3_wise+5.174"; replacecol w3mag_8_allwise "w3mag_8_allwise-A_w3_wise+5.174"; replacecol w4mag_allwise "w4mag_allwise-A_w4_wise+6.620"; replacecol w4mag_1_allwise "w4mag_1_allwise-A_w4_wise+6.620"; replacecol w4mag_2_allwise "w4mag_2_allwise-A_w4_wise+6.620"; replacecol w4mag_3_allwise "w4mag_3_allwise-A_w4_wise+6.620"; replacecol w4mag_4_allwise "w4mag_4_allwise-A_w4_wise+6.620"; replacecol w4mag_5_allwise "w4mag_5_allwise-A_w4_wise+6.620"; replacecol w4mag_6_allwise "w4mag_6_allwise-A_w4_wise+6.620"; replacecol w4mag_7_allwise "w4mag_7_allwise-A_w4_wise+6.620"; replacecol w4mag_8_allwise "w4mag_8_allwise-A_w4_wise+6.620"; replacecol NUV_MAG_AUTO_galex "NUV_MAG_AUTO_galex-A_NUV_galex + 20.02"; replacecol FUV_MAG_AUTO_galex "FUV_MAG_AUTO_galex-A_FUV_galex + 18.82"; replacecol NUV_MAG_APER_1_galex "NUV_MAG_APER_1_galex-A_NUV_galex + 20.02"; replacecol NUV_MAG_APER_2_galex "NUV_MAG_APER_2_galex-A_NUV_galex + 20.02"; replacecol NUV_MAG_APER_3_galex "NUV_MAG_APER_3_galex-A_NUV_galex + 20.02"; replacecol NUV_MAG_APER_4_galex "NUV_MAG_APER_4_galex-A_NUV_galex + 20.02"; replacecol NUV_MAG_APER_5_galex "NUV_MAG_APER_5_galex-A_NUV_galex + 20.02"; replacecol NUV_MAG_APER_6_galex "NUV_MAG_APER_6_galex-A_NUV_galex + 20.02"; replacecol NUV_MAG_APER_7_galex "NUV_MAG_APER_7_galex-A_NUV_galex + 20.02"; replacecol FUV_MAG_APER_1_galex "FUV_MAG_APER_1_galex-A_FUV_galex + 18.82"; replacecol FUV_MAG_APER_2_galex "FUV_MAG_APER_2_galex-A_FUV_galex + 18.82"; replacecol FUV_MAG_APER_3_galex "FUV_MAG_APER_3_galex-A_FUV_galex + 18.82"; replacecol FUV_MAG_APER_4_galex "FUV_MAG_APER_4_galex-A_FUV_galex + 18.82"; replacecol FUV_MAG_APER_5_galex "FUV_MAG_APER_5_galex-A_FUV_galex + 18.82"; replacecol FUV_MAG_APER_6_galex "FUV_MAG_APER_6_galex-A_FUV_galex + 18.82"; replacecol FUV_MAG_APER_7_galex "FUV_MAG_APER_7_galex-A_FUV_galex + 18.82"; replacecol uPetro_skymapper "uPetro_skymapper-A_u_skymapper"; replacecol vPetro_skymapper "vPetro_skymapper-A_v_skymapper"; replacecol gPetro_skymapper "gPetro_skymapper-A_g_skymapper"; replacecol rPetro_skymapper "rPetro_skymapper-A_r_skymapper"; replacecol iPetro_skymapper "iPetro_skymapper-A_i_skymapper"; replacecol zPetro_skymapper "zPetro_skymapper-A_z_skymapper"; replacecol umag_kids "umag_kids-A_u_kids"; replacecol gmag_kids "gmag_kids-A_g_kids"; replacecol rmag_kids "rmag_kids-A_r_kids"; replacecol imag_kids "imag_kids-A_i_kids"; replacecol umagISO_kids "umagISO_kids-A_u_kids"; replacecol gmagISO_kids "gmagISO_kids-A_g_kids"; replacecol rmagISO_kids "rmagISO_kids-A_r_kids"; replacecol imagISO_kids "imagISO_kids-A_i_kids"; replacecol umagGAAP_kids "umagGAAP_kids-A_u_kids"; replacecol gmagGAAP_kids "gmagGAAP_kids-A_g_kids"; replacecol rmagGAAP_kids "rmagGAAP_kids-A_r_kids"; replacecol imagGAAP_kids "imagGAAP_kids-A_i_kids"; replacecol Upmag_vst "Upmag_vst-A_U_vst+0.894"; replacecol Gpmag_vst "Gpmag_vst-A_G_vst-0.1"; replacecol Rpmag_vst "Rpmag_vst-A_R_vst+0.159"; replacecol Ipmag_vst "Ipmag_vst-A_I_vst+0.356"; replacecol Zpmag_vst "Zpmag_vst-A_Z_vst+0.517"; replacecol Uap3_vst "Uap3_vst-A_U_vst+0.894"; replacecol Uap4_vst "Uap4_vst-A_U_vst+0.894"; replacecol Uap6_vst "Uap6_vst-A_U_vst+0.894"; replacecol Uapc3_vst "Uapc3_vst-A_U_vst+0.894"; replacecol Uapc4_vst "Uapc4_vst-A_U_vst+0.894"; replacecol Uapc6_vst "Uapc6_vst-A_U_vst+0.894"; replacecol Gap3_vst "Gap3_vst-A_G_vst-0.1"; replacecol Gap4_vst "Gap4_vst-A_G_vst-0.1"; replacecol Gap6_vst "Gap6_vst-A_G_vst-0.1"; replacecol Gapc3_vst "Gapc3_vst-A_G_vst-0.1"; replacecol Gapc4_vst "Gapc4_vst-A_G_vst-0.1"; replacecol Gapc6_vst "Gapc6_vst-A_G_vst-0.1"; replacecol Rap3_vst "Rap3_vst-A_R_vst+0.159"; replacecol Rap4_vst "Rap4_vst-A_R_vst+0.159"; replacecol Rap6_vst "Rap6_vst-A_R_vst+0.159"; replacecol Rapc3_vst "Rapc3_vst-A_R_vst+0.159"; replacecol Rapc4_vst "Rapc4_vst-A_R_vst+0.159"; replacecol Rapc6_vst "Rapc6_vst-A_R_vst+0.159"; replacecol Iap3_vst "Iap3_vst-A_I_vst+0.356"; replacecol Iap4_vst "Iap4_vst-A_I_vst+0.356"; replacecol Iap6_vst "Iap6_vst-A_I_vst+0.356"; replacecol Iapc3_vst "Iapc3_vst-A_I_vst+0.356"; replacecol Iapc4_vst "Iapc4_vst-A_I_vst+0.356"; replacecol Iapc6_vst "Iapc6_vst-A_I_vst+0.356"; replacecol Zap3_vst "Zap3_vst-A_Z_vst+0.517"; replacecol Zap4_vst "Zap4_vst-A_Z_vst+0.517"; replacecol Zap6_vst "Zap6_vst-A_Z_vst+0.517"; replacecol Zapc3_vst "Zapc3_vst-A_Z_vst+0.517"; replacecol Zapc4_vst "Zapc4_vst-A_Z_vst+0.517"; replacecol Zapc6_vst "Zapc6_vst-A_Z_vst+0.517";