fmflow.fits package#
Submodules#
Module contents#
- fromaste(fmlolog, backendlog, antennalog=None, byteorder='<')[source]#
Read logging data of ASTE and merge them into a FITS object.
- Parameters:
fmlolog (str) – File name of FMLO logging.
backendlog (str) – File name of backend logging.
antennalog (str) – File name of antenna logging (optional).
byteorder (str) – format string that represents byte order of the backendlog. Default is ‘<’ (little-endian). If the data in the returned FITS seems to be wrong, try to spacify ‘>’ (big-endian).
- Returns:
HDU list containing the merged data.
- Return type:
hdus (HDUlist)
- fromnro45m(fmlolog, backendlog, antennalog=None, byteorder='<')[source]#
Read logging data of NRO45m and merge them into a FITS object.
- Parameters:
fmlolog (str) – File name of FMLO logging.
backendlog (str) – File name of backend logging.
antennalog (str) – File name of antenna logging (optional).
byteorder (str) – format string that represents byte order of the backendlog. Default is ‘<’ (little-endian). If the data in the returned FITS seems to be wrong, try to spacify ‘>’ (big-endian).
- Returns:
HDU list containing the merged data.
- Return type:
hdus (HDUlist)
- getarray(fitsname, arrayid, scantype, offsetsec=0.0, *, computeam=True, ignore_antennalog=False)[source]#
Create a modulated array from a FMFITS.
- Parameters:
fitsname (str) – File name of a FMFITS.
arrayid (str) – An array ID with which the output fmarray is created.
scantype (str) – A scan type with which the output fmarray is created.
offsetsec (float, optional) – A float value of FM offset time in units of sec.
computeam (bool, optional) – If True, atmospheric model is computed. Default is True.
ignore_antennalog (bool, optional) – Whether ignoring antenna log. Default is False.
- Returns:
A modulated array of the spacified arrayid and scantype.
- Return type:
array (xarray.DataArray)