{"action":"created","issue":{"url":"https://api.github.com/repos/legacysurvey/legacypipe/issues/121","repository_url":"https://api.github.com/repos/legacysurvey/legacypipe","labels_url":"https://api.github.com/repos/legacysurvey/legacypipe/issues/121/labels{/name}","comments_url":"https://api.github.com/repos/legacysurvey/legacypipe/issues/121/comments","events_url":"https://api.github.com/repos/legacysurvey/legacypipe/issues/121/events","html_url":"https://github.com/legacysurvey/legacypipe/issues/121","id":182822419,"number":121,"title":"Add WISE_MASK tag","user":{"login":"dstndstn","id":1065981,"avatar_url":"https://avatars.githubusercontent.com/u/1065981?v=3","gravatar_id":"","url":"https://api.github.com/users/dstndstn","html_url":"https://github.com/dstndstn","followers_url":"https://api.github.com/users/dstndstn/followers","following_url":"https://api.github.com/users/dstndstn/following{/other_user}","gists_url":"https://api.github.com/users/dstndstn/gists{/gist_id}","starred_url":"https://api.github.com/users/dstndstn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dstndstn/subscriptions","organizations_url":"https://api.github.com/users/dstndstn/orgs","repos_url":"https://api.github.com/users/dstndstn/repos","events_url":"https://api.github.com/users/dstndstn/events{/privacy}","received_events_url":"https://api.github.com/users/dstndstn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/legacysurvey/legacypipe/milestones/4","html_url":"https://github.com/legacysurvey/legacypipe/milestones/DR4","labels_url":"https://api.github.com/repos/legacysurvey/legacypipe/milestones/4/labels","id":1971040,"number":4,"title":"DR4","description":null,"creator":{"login":"moustakas","id":1431820,"avatar_url":"https://avatars.githubusercontent.com/u/1431820?v=3","gravatar_id":"","url":"https://api.github.com/users/moustakas","html_url":"https://github.com/moustakas","followers_url":"https://api.github.com/users/moustakas/followers","following_url":"https://api.github.com/users/moustakas/following{/other_user}","gists_url":"https://api.github.com/users/moustakas/gists{/gist_id}","starred_url":"https://api.github.com/users/moustakas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moustakas/subscriptions","organizations_url":"https://api.github.com/users/moustakas/orgs","repos_url":"https://api.github.com/users/moustakas/repos","events_url":"https://api.github.com/users/moustakas/events{/privacy}","received_events_url":"https://api.github.com/users/moustakas/received_events","type":"User","site_admin":false},"open_issues":16,"closed_issues":0,"state":"open","created_at":"2016-08-29T23:59:51Z","updated_at":"2016-10-13T15:28:59Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-10-13T15:28:53Z","updated_at":"2016-10-14T19:59:56Z","closed_at":null,"body":"from Aaron's email [decam-chatter 4030]:\r\n\r\nI've generated WISE pixel-level bitmasks which I'm hoping can be used\r\nto create a new 'WISE_MASK' Tractor catalog column for the next data\r\nrelease. So far I've created masks for all unWISE tiles with (Dec >\r\n30), which are at:\r\n\r\n/scratch1/scratchdirs/ameisner/unwise_mzls_masks\r\n\r\nAt present, these are basically bright star masks. There are currently\r\nfour bits: one for W1-bright stars, for each of two scan directions,\r\nand similarly for W2-bright stars.\r\n"},"comment":{"url":"https://api.github.com/repos/legacysurvey/legacypipe/issues/comments/253905005","html_url":"https://github.com/legacysurvey/legacypipe/issues/121#issuecomment-253905005","issue_url":"https://api.github.com/repos/legacysurvey/legacypipe/issues/121","id":253905005,"user":{"login":"dstndstn","id":1065981,"avatar_url":"https://avatars.githubusercontent.com/u/1065981?v=3","gravatar_id":"","url":"https://api.github.com/users/dstndstn","html_url":"https://github.com/dstndstn","followers_url":"https://api.github.com/users/dstndstn/followers","following_url":"https://api.github.com/users/dstndstn/following{/other_user}","gists_url":"https://api.github.com/users/dstndstn/gists{/gist_id}","starred_url":"https://api.github.com/users/dstndstn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dstndstn/subscriptions","organizations_url":"https://api.github.com/users/dstndstn/orgs","repos_url":"https://api.github.com/users/dstndstn/repos","events_url":"https://api.github.com/users/dstndstn/events{/privacy}","received_events_url":"https://api.github.com/users/dstndstn/received_events","type":"User","site_admin":false},"created_at":"2016-10-14T19:59:55Z","updated_at":"2016-10-14T19:59:55Z","body":"further,\r\n\r\nHi,\r\n\r\nI decided to make a single WISE bitmask image per coadd_id, combining\r\nmultiple WISE bands worth of flags. I could have instead made one\r\nbitmask image per (coadd_id, band) pair, but I felt this would\r\nunnecessarily inflate the number of small unWISE coadd files. I\r\nsuppose multi-extension FITS files with one image extension per band\r\nwould have also have been a possibility...\r\n\r\nIn terms of the Tractor catalogs, one option would be to simply read\r\nnumbers off of my bitmask images and store these as a scalar WISE_MASK\r\nvalue for each source. That scalar value would then have:\r\n\r\n2^0 : bright star in W1, scan direction 1\r\n2^1 : bright star in W1, scan direction 2\r\n2^2 : bright star in W2, scan direction 1\r\n2^3 : bright star in W2, scan direction 2\r\n\r\nA different option, which is more in line with the way that e.g.\r\nDECAM_ANYMASK values are reported, would be to translate each value in\r\nthe multi-band bitmask images into a four-element array at the catalog\r\nlevel. Then the Tractor catalog would report a separate value in each\r\nof the four bands for each source, with bits given by:\r\n\r\n2^0 : bright star in this band, scan direction 1\r\n2^1 : bright star in this band, scan direction 2\r\n\r\nI put a Python function to expand my bitmask values into such\r\n4-element arrays at:\r\n\r\nhttps://gist.github.com/ameisner/9fb1d8c02c5660f7f4b95df60c6e4861\r\n\r\n"}}
{"actor":{"display_login":"dstndstn"}}