6 from .base
import Creator, ParamPassThru
7 from .value
import CreatorFlaggedValue
10 from refractor
import framework
as rf
13 "Defines the interface expected for aerosol config defnition blocks, values are pass through as a dictionary" 19 "Creates an AbsorberAbsco object that statisfies the AtmosphereCreato;rs absorber value" 28 vec_extinction = rf.vector_aerosol_extinction()
29 vec_properties = rf.vector_aerosol_property()
33 aerosol_def = self.
param(aerosol_name, aerosol_name=aerosol_name)
35 if not "extinction" in aerosol_def:
36 raise param.ParamError(
"exitinction value not in aerosol definition for aerosol: %s" % aerosol_name)
38 if not "properties" in aerosol_def:
39 raise param.ParamError(
"peroperties value not in aerosol definition for aerosol: %s" % aerosol_name)
41 vec_extinction.push_back(aerosol_def[
'extinction'])
42 vec_properties.push_back(aerosol_def[
'properties'])
52 def create(self, aerosol_name=None, **kwargs):
54 if aerosol_name
is None:
65 def create(self, aerosol_name=None, **kwargs):
67 aerosol_file = rf.HdfFile(self.
filename())
70 prop_name = aerosol_name
74 return rf.AerosolPropertyHdf(aerosol_file, prop_name +
"/Properties", self.
pressure())
def register_parameter(self, param_name, param_def)
def create(self, aerosol_name=None, kwargs)
def param(self, param_name, kwargs)
def retrieval_flag(self, kwargs)
def create(self, aerosol_name=None, kwargs)