#NEWLINE# def to_hdf5_group( self , group ) : #NEWLINE# #INDENT# if ( not self . all_set ( ) ) : #NEWLINE# #INDENT# raise Exception ( 'Not all attributes of the emissivities are set' ) #NEWLINE# #UNINDENT# if ( self . var_name == 'specific_energy' ) : #NEWLINE# #INDENT# group . attrs [ 'emissvar' ] = np . string_ ( 'E' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise Exception ( ( 'Unknown emissivity variable: %s' % self . var_name ) ) #NEWLINE# #UNINDENT# temissvar = Table ( ) #NEWLINE# temissvar . add_column ( Column ( data = group . var , name = self . var_name ) ) #NEWLINE# temiss = Table ( ) #NEWLINE# temiss . add_column ( Column ( data = self . nu , name = 'nu' ) ) #NEWLINE# temiss . add_column ( Column ( data = self . jnu , name = 'jnu' ) ) #NEWLINE# group . attrs [ 'lte' ] = bool2str ( self . is_lte ) #NEWLINE# temissvar . write ( group , path = 'emissivity_variable' ) #NEWLINE# temiss . write ( group , path = 'emissivities' )