@classmethod<EOL><INDENT>def get_band(cls, b, **kwargs):<DEDENT>
phot = None<EOL>if b in ['<STR_LIT:u>','<STR_LIT:g>','<STR_LIT:r>','<STR_LIT:i>','<STR_LIT:z>']:<EOL><INDENT>phot = '<STR_LIT>'<EOL>band = '<STR_LIT>'.format(b)<EOL><DEDENT>elif b in ['<STR_LIT>','<STR_LIT:B>','<STR_LIT>','<STR_LIT:R>','<STR_LIT:I>']:<EOL><INDENT>phot = '<STR_LIT>'<EOL>band = '<STR_LIT>'.format(b)<EOL><DEDENT>elif b in  ['<STR_LIT>','<STR_LIT:H>','<STR_LIT>']:<EOL><INDENT>phot = '<STR_LIT>'<EOL>band = '<STR_LIT>'.format(b)<EOL><DEDENT>elif b=='<STR_LIT>':<EOL><INDENT>phot = '<STR_LIT>'<EOL>band = '<STR_LIT>'<EOL><DEDENT>elif b in ['<STR_LIT>','<STR_LIT>','<STR_LIT>']:<EOL><INDENT>phot = '<STR_LIT>'<EOL>band = '<STR_LIT>'<EOL><DEDENT>elif b=='<STR_LIT>':<EOL><INDENT>phot = '<STR_LIT>'<EOL>band = '<STR_LIT>'<EOL><DEDENT>elif b in ['<STR_LIT>','<STR_LIT>','<STR_LIT>','<STR_LIT>']:<EOL><INDENT>phot = '<STR_LIT>'<EOL>band = '<STR_LIT>'.format(b)<EOL><DEDENT>elif b in ('<STR_LIT>', '<STR_LIT>', '<STR_LIT>'):<EOL><INDENT>phot = '<STR_LIT>'<EOL>band = '<STR_LIT>'.format(b)<EOL>if '<STR_LIT:version>' in kwargs:<EOL><INDENT>if kwargs['<STR_LIT:version>']=='<STR_LIT>':<EOL><INDENT>band += '<STR_LIT>'<EOL><DEDENT><DEDENT><DEDENT>else:<EOL><INDENT>m = re.match('<STR_LIT>',b)<EOL>if m:<EOL><INDENT>if m.group(<NUM_LIT:1>) in cls.phot_systems:<EOL><INDENT>phot = m.group(<NUM_LIT:1>)<EOL>if phot=='<STR_LIT>':<EOL><INDENT>band = '<STR_LIT>'.format(m.group(<NUM_LIT:2>))<EOL><DEDENT>else:<EOL><INDENT>band = m.group(<NUM_LIT:0>)<EOL><DEDENT><DEDENT>elif m.group(<NUM_LIT:1>) in ['<STR_LIT>','<STR_LIT>']:<EOL><INDENT>phot = '<STR_LIT>'<EOL>band = '<STR_LIT>'.format(m.group(<NUM_LIT:2>))<EOL><DEDENT><DEDENT><DEDENT>if phot is None:<EOL><INDENT>for system, bands in cls.phot_bands.items():<EOL><INDENT>if b in bands:<EOL><INDENT>phot = system<EOL>band = b<EOL>break<EOL><DEDENT><DEDENT>if phot is None:<EOL><INDENT>raise ValueError('<STR_LIT>'.format(b))<EOL><DEDENT><DEDENT>return phot, band<EOL>
Defines what a "shortcut" band name refers to.  Returns phot_system, band