fromArtsXML

classmethod SRF.fromArtsXML(sat, instr, ch)[source]

Read SRF from ArtsXML files.

Requires that in the TYPHONRC configuration file, the fields srf_backend_f and srf_backend_response in the section corresponding to instrument instr are defined to point to the respective files in ArtsXML format. Within those definitions, {sat:s} will be substituted with the satellite name. For example, in typhonrc, one might have:

[hirs] srf_backend_response = /path/to/{sat}_HIRS.backend_channel_response.xml srf_backend_f = /path/to/{sat}_HIRS.f_backend.xml

so that we can do:

>>> srf = SRF.fromArtsXML("NOAA15", "hirs", 12)
>>> R_300 = srf.blackbody_radiance(ureg.Quantity(atleast_1d(250), 'K'))
>>> print(R_300)
[  2.13002925e-13] watt / hertz / meter ** 2 / steradian
>>> print(R_300.to("cm * mW / m**2 / sr", "radiance"))
[ 6.38566704] centimeter * milliwatt / meter ** 2 / steradian
Parameters
  • [str] (instr) – Satellite name, such as ‘NOAA15’

  • [str] – Instrument name, such as ‘hirs’.

  • [int] (ch) – Channel number (start counting at 1).