Interface Summary
This chapter briefly summarizes MSG’s Python, Fortran and C interfaces.
Python Interface
The Python interface is designed around the
pymsg.SpecGrid and pymsg.PhotGrid classes,
which support interpolation of spectroscopic and photometric data,
respectively. The table below summarizes the mapping between the
various quantities defined in the MSG Fundamentals chapter, and
the methods provided by these classes.
Symbol |
Quantity |
Method |
|---|---|---|
\(\intsy\) |
Spectroscopic specific intensity |
|
\(\emom\) |
Spectroscopic E-moment |
|
\(\pmom\) |
Spectroscopic P-moment |
|
\(\irrad\) |
Spectroscopic irradiance |
|
\(\flux\) |
Spectroscopic flux |
|
\(\mintsy/\fluxz\) |
Photometric specific intensity, normalized by zero-point flux |
|
\(\memom/\fluxz\) |
Photometric E-moment, normalized by zero-point flux |
|
\(\mpmom/\fluxz\) |
Photometric P-moment, normalized by zero-point flux |
|
\(\mirrad/\fluxz\) |
Photometric irradiance, normalized by zero-point flux |
|
\(\mflux/\fluxz\) |
Photometric flux, normalized by zero-point flux |
|
Fortran Interface
The Fortran interface is designed around
the specgrid_t and photgrid_t
derived types, which support interpolation of spectroscopic and
photometric data, respectively. The table below summarizes the mapping
between the various quantities defined in the MSG Fundamentals
chapter, and the type-bound procedures provided by these types.
Symbol |
Quantity |
Procedure |
|---|---|---|
\(\intsy\) |
Spectroscopic specific intensity |
|
\(\emom\) |
Spectroscopic E-moment |
|
\(\pmom\) |
Spectroscopic P-moment |
|
\(\irrad\) |
Spectroscopic irradiance |
|
\(\flux\) |
Spectroscopic flux |
|
\(\mintsy/\fluxz\) |
Photometric specific intensity, normalized by zero-point flux |
|
\(\memom/\fluxz\) |
Photometric E-moment, normalized by zero-point flux |
|
\(\mpmom/\fluxz\) |
Photometric P-moment, normalized by zero-point flux |
|
\(\mirrad/\fluxz\) |
Photometric irradiance, normalized by zero-point flux |
|
\(\mflux/\fluxz\) |
Photometric flux, normalized by zero-point flux |
C Interface
The C interface is designed around the
SpecGrid and PhotGrid typedefs, which
support interpolation of spectroscopic and photometric data,
respectively. The table below summarizes the mapping between the
various quantities defined in the MSG Fundamentals chapter, and
the functions that operate on these types.
Symbol |
Quantity |
Function |
|---|---|---|
\(\intsy\) |
Spectroscopic specific intensity |
|
\(\emom\) |
Spectroscopic E-moment |
|
\(\pmom\) |
Spectroscopic P-moment |
|
\(\irrad\) |
Spectroscopic irradiance |
|
\(\flux\) |
Spectroscopic flux |
|
\(\mintsy/\fluxz\) |
Photometric specific intensity, normalized by zero-point flux |
|
\(\memom/\fluxz\) |
Photometric E-moment, normalized by zero-point flux |
|
\(\mpmom/\fluxz\) |
Photometric P-moment, normalized by zero-point flux |
|
\(\mirrad/\fluxz\) |
Photometric irradiance, normalized by zero-point flux |
|
\(\mflux/\fluxz\) |
Photometric flux, normalized by zero-point flux |