nro45data.psw module

nro45data.psw.nqm2fits(nqmfile: str, fitsfile: str, overwrite: bool = False) bool[source]

Convert NRO45m PSW data (.nqm) to FITS.

Parameters:
  • nqmfile – Input NRO45m PSW file name

  • fitsfile – Output FITS file name

  • overwrite – Overwrite existing output file or not. Default is False (not overwrite).

Returns:

Conversion status. True is successful.

nro45data.psw.nqm2ms2(nqmfile: str, msfile: str, overwrite: bool = False) bool[source]

Convert NRO45m PSW data (.nqm) to MeasurementSet v2.

Not implemented yet.

Parameters:
  • nqmfile – Input NRO45m PSW file name

  • msfile – Output MSv2 file name

  • overwrite – Overwrite existing output file or not. Default is False (not overwrite).

Returns:

Conversion status. True is successful.

nro45data.psw.nqm2ms4(nqmfile: str, psfile: str, overwrite: bool = False) bool[source]

Convert NRO45m PSW data (.nqm) to MeasurementSet v4 (ProcessingSet).

Not implemented yet.

Parameters:
  • nqmfile – Input NRO45m PSW file name

  • psfile – Output MSv4 (ProcessingSet) file name

  • overwrite – Overwrite existing output file or not. Default is False (not overwrite).

Returns:

Conversion status. True is successful.

Submodules

nro45data.psw.io submodule

nro45data.psw.io._read_psw(filename: str) HDUList[source]

Read NRO 45m PSW data.

Parameters:
  • filename – Name of the data

  • mode – Observation mode. Either ‘psw’ or ‘otf’.

nro45data.psw.io._to_fits(hdulist: HDUList, fitsfile: str, overwrite: bool = False) bool[source]

Export HDUList to FITS.

Parameters:
  • hdulist – HDUList generated from NRO 45m PSW file (.nqm)

  • fitsfile – Output FITS file name

  • overwrite – Overwrite existing output file or not. Default is False (not overwrite).

Returns:

Export status. True is successful.

nro45data.psw.ms2 submodule

nro45data.psw.ms2._to_ms2(hdulist: HDUList, msfile: str, overwrite: bool = False) bool[source]

Export HDUList to MeasurementSet v2.

Not implemented yet.

Parameters:
  • hdulist – HDUList generated from NRO 45m PSW file (.nqm)

  • fitsfile – Output MSv2 file name

  • overwrite – Overwrite existing output file or not. Default is False (not overwrite).

Returns:

Export status. True is successful.

nro45data.psw.ms4 submodule

nro45data.psw.ms4._to_ms4(hdulist: HDUList, psfile: str, overwrite: bool = False) bool[source]

Export HDUList to MeasurementSet v4 (ProcessingSet).

Not implemented yet.

Parameters:
  • hdulist – HDUList generated from NRO 45m PSW file (.nqm)

  • fitsfile – Output PS file name

  • overwrite – Overwrite existing output file or not. Default is False (not overwrite).

Returns:

Export status. True is successful.