read_section

sofia_redux.instruments.forcast.read_section.read_section(xdim, ydim)[source]

Read the section in the configuration file and check if it’s correct

Read the section to use in the configuration file. If it is not correct it returns the default value [128, 128, 200, 200].

Note that at some point in the past, the value used to be appended to a header. This is no longer the case. For reference, the comment for the NLINSECTION keyword is “section used to calculate bacground for linearity correction”. Also note that this comment is too long and has a typo.

Parameters:
xdimint

x-dimension size

ydimint

y-dimension size

Returns:
4-tuple

(x0, y0, xdim, ydim) x0, y0: Center of section xdim, ydim: Dimension of section