lofarSun.cli.pyms_utils
command line tools to process the lofar solar data
by Peijin Zhang version 0.1 2022-5-23 00:24:52: Initial version
Module Contents
Classes
Functions
|
|
|
|
|
get observation information from ms |
|
get time information from ms |
|
|
|
convert datetime to index |
|
|
|
|
- class lofarSun.cli.pyms_utils.bcolors
- HEADER = '\x1b[95m'
- OKBLUE = '\x1b[94m'
- OKCYAN = '\x1b[96m'
- OKGREEN = '\x1b[92m'
- WARNING = '\x1b[93m'
- FAIL = '\x1b[91m'
- ENDC = '\x1b[0m'
- BOLD = '\x1b[1m'
- UNDERLINE = '\x1b[4m'
- lofarSun.cli.pyms_utils.info_print(header, content)
- lofarSun.cli.pyms_utils.human_format(number)
- lofarSun.cli.pyms_utils.get_obs_info_from_ms(fname)
get observation information from ms
- Parameters:
fname (string) – measurement set name
- Returns:
list of antenna name int : number of baselines string : telescope name
- Return type:
list
- lofarSun.cli.pyms_utils.get_t_from_ms(fname)
get time information from ms
- Parameters:
fname (string) – measurement set name
- Returns:
total number of time index list : time range
- Return type:
int
- lofarSun.cli.pyms_utils.get_freq_from_ms(fname)
- lofarSun.cli.pyms_utils.ms_datetime_to_index(fname, t, t_format='%H:%M:%S.%f')
convert datetime to index
- Parameters:
fname (string) – measurement set name
t (datetime) – datetime
- Returns:
index
- Return type:
int
- lofarSun.cli.pyms_utils.ms_index_to_datetime(fname, idx)
- lofarSun.cli.pyms_utils.cook_wsclean_cmd(fname, mode='default', multiscale=True, weight='briggs 0', mgain=0.8, thresholding='-auto-mask 3 -auto-threshold 0.3', len_baseline_eff=35000, FOV=10000, scale_factor=4.3, circbeam=True, niter=1200, pol='I', data_col='CORRECTED_DATA', misc='', name='', interval=[-1, -1], intervals_out=-1)
- lofarSun.cli.pyms_utils.pyms_overview_main()
- lofarSun.cli.pyms_utils.pyms_datetime_to_index_main()
- lofarSun.cli.pyms_utils.pyms_cook_wsclean_cmd_main()
- lofarSun.cli.pyms_utils.pyms_index_to_datetime_main()
- lofarSun.cli.pyms_utils.pyms_psf_fit_peak_gauss_main()