|NRAO Home > CASA > CASA Toolkit Reference Manual||
1.3.2 Get a dictionary which maps field IDs to spectral window IDs.
Get a dictionary which maps field IDs to spectral window IDs. The field IDs are keys in the returned dictionary. To access a particular element, one must ensure the key is a string.
# get the map of field IDs to spw IDs
field_to_spw_map = msmd.spwsforfields()
spws_for_field_5 = field_to_spw_map[str(5)]
More information about CASA may be found at the CASA web page
Copyright © 2016 Associated Universities Inc., Washington, D.C.