Opacity Classes
- class AttenuatorOptions
- bname(*args, **kwargs)
Overloaded function.
bname(self: pyharp.opacity.AttenuatorOptions) -> str
Set or get the name of the band that the opacity is associated with
- Parameters:
bname (str) – name of the band that the opacity is associated with
- Returns:
class object if argument is not empty, otherwise the band name
- Return type:
Examples
>>> import torch >>> from pyharp.opacity import AttenuatorOptions >>> op = AttenuatorOptions().bname('band1')
bname(self: pyharp.opacity.AttenuatorOptions, arg0: str) -> pyharp.opacity.AttenuatorOptions
Set or get the name of the band that the opacity is associated with
- Parameters:
bname (str) – name of the band that the opacity is associated with
- Returns:
class object if argument is not empty, otherwise the band name
- Return type:
Examples
>>> import torch >>> from pyharp.opacity import AttenuatorOptions >>> op = AttenuatorOptions().bname('band1')
- fractions(*args, **kwargs)
Overloaded function.
fractions(self: pyharp.opacity.AttenuatorOptions) -> list[float]
Set or get fractions of species in cia calculatioin
- Parameters:
- Returns:
class object if argument is not empty, otherwise the list of species fractions
- Return type:
Examples
>>> import torch >>> from pyharp.opacity import AttenuatorOptions >>> op = AttenuatorOptions().fractions([0.9, 0.1])
fractions(self: pyharp.opacity.AttenuatorOptions, arg0: list[float]) -> pyharp.opacity.AttenuatorOptions
Set or get fractions of species in cia calculatioin
- Parameters:
- Returns:
class object if argument is not empty, otherwise the list of species fractions
- Return type:
Examples
>>> import torch >>> from pyharp.opacity import AttenuatorOptions >>> op = AttenuatorOptions().fractions([0.9, 0.1])
- jit_kwargs(*args, **kwargs)
Overloaded function.
jit_kwargs(self: pyharp.opacity.AttenuatorOptions) -> list[str]
Set or get the list of kwargs to pass to the JIT module
- Parameters:
jit_kwargs (list[str]) – list of kwargs to pass to the JIT module
- Returns:
class object if argument is not empty, otherwise the list of kwargs to pass to the JIT module
- Return type:
Examples
>>> import torch >>> from pyharp.opacity import AttenuatorOptions >>> op = AttenuatorOptions().jit_kwargs(['temp', 'wavelength']) >>> print(op.jit_kwargs())
jit_kwargs(self: pyharp.opacity.AttenuatorOptions, arg0: list[str]) -> pyharp.opacity.AttenuatorOptions
Set or get the list of kwargs to pass to the JIT module
- Parameters:
jit_kwargs (list[str]) – list of kwargs to pass to the JIT module
- Returns:
class object if argument is not empty, otherwise the list of kwargs to pass to the JIT module
- Return type:
Examples
>>> import torch >>> from pyharp.opacity import AttenuatorOptions >>> op = AttenuatorOptions().jit_kwargs(['temp', 'wavelength']) >>> print(op.jit_kwargs())
- opacity_files(*args, **kwargs)
Overloaded function.
opacity_files(self: pyharp.opacity.AttenuatorOptions) -> list[str]
Set or get the list of opacity data files
- Parameters:
opacity_files (list) – list of opacity data files
- Returns:
class object if argument is not empty, otherwise the list of opacity data files
- Return type:
Examples
>>> import torch >>> from pyharp.opacity import AttenuatorOptions >>> op = AttenuatorOptions().opacity_files(['file1', 'file2'])
opacity_files(self: pyharp.opacity.AttenuatorOptions, arg0: list[str]) -> pyharp.opacity.AttenuatorOptions
Set or get the list of opacity data files
- Parameters:
opacity_files (list) – list of opacity data files
- Returns:
class object if argument is not empty, otherwise the list of opacity data files
- Return type:
Examples
>>> import torch >>> from pyharp.opacity import AttenuatorOptions >>> op = AttenuatorOptions().opacity_files(['file1', 'file2'])
- species_ids(*args, **kwargs)
Overloaded function.
species_ids(self: pyharp.opacity.AttenuatorOptions) -> list[int]
Set or get the list of dependent species indices
- Parameters:
- Returns:
class object if argument is not empty, otherwise the list of dependent species indices
- Return type:
Examples
>>> import torch >>> from pyharp.opacity import AttenuatorOptions >>> op = AttenuatorOptions().species_ids([1, 2])
species_ids(self: pyharp.opacity.AttenuatorOptions, arg0: list[int]) -> pyharp.opacity.AttenuatorOptions
Set or get the list of dependent species indices
- Parameters:
- Returns:
class object if argument is not empty, otherwise the list of dependent species indices
- Return type:
Examples
>>> import torch >>> from pyharp.opacity import AttenuatorOptions >>> op = AttenuatorOptions().species_ids([1, 2])
- type(*args, **kwargs)
Overloaded function.
type(self: pyharp.opacity.AttenuatorOptions) -> str
Set or get the type of the opacity source format
Valid options are,
jit,rfm-lbl,rfm-ck,four-column,wavetemp,multiband. See List of built-in opacity types for more details.- Parameters:
type (str) – type of the opacity source
- Returns:
class object if argument is not empty, otherwise the type
- Return type:
Examples
>>> import torch >>> from pyharp.opacity import AttenuatorOptions >>> op = AttenuatorOptions().type('rfm-lbl') >>> print(op)
type(self: pyharp.opacity.AttenuatorOptions, arg0: str) -> pyharp.opacity.AttenuatorOptions
Set or get the type of the opacity source format
Valid options are,
jit,rfm-lbl,rfm-ck,four-column,wavetemp,multiband. See List of built-in opacity types for more details.- Parameters:
type (str) – type of the opacity source
- Returns:
class object if argument is not empty, otherwise the type
- Return type:
Examples
>>> import torch >>> from pyharp.opacity import AttenuatorOptions >>> op = AttenuatorOptions().type('rfm-lbl') >>> print(op)
- class FourColumn
-
- forward(*input: Any) None
Define the computation performed at every call.
Should be overridden by all subclasses.
Note
Although the recipe for forward pass needs to be defined within this function, one should call the
Moduleinstance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.- Parameters:
input (Any)
- Return type:
None
- class MultiBand
-
- forward(*input: Any) None
Define the computation performed at every call.
Should be overridden by all subclasses.
Note
Although the recipe for forward pass needs to be defined within this function, one should call the
Moduleinstance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.- Parameters:
input (Any)
- Return type:
None
- class WaveTemp
-
- forward(*input: Any) None
Define the computation performed at every call.
Should be overridden by all subclasses.
Note
Although the recipe for forward pass needs to be defined within this function, one should call the
Moduleinstance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.- Parameters:
input (Any)
- Return type:
None
- class RFM
-
- forward(*input: Any) None
Define the computation performed at every call.
Should be overridden by all subclasses.
Note
Although the recipe for forward pass needs to be defined within this function, one should call the
Moduleinstance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.- Parameters:
input (Any)
- Return type:
None
- class JITOpacity
-
- forward(*input: Any) None
Define the computation performed at every call.
Should be overridden by all subclasses.
Note
Although the recipe for forward pass needs to be defined within this function, one should call the
Moduleinstance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.- Parameters:
input (Any)
- Return type:
None