31 | | This selection is praticularly important for fitting as the fitter can only process one spectrum at a time. ASAP1 didn't allow slices so that wasn't a problem. Now you have to be careful that you have the correct selection. Use scanatble.nrow() to see how many spectra are in your selection. If there are more than one, the fitter uses the first one. |
32 | | The same seelction object can be used to restrict plotting plotter.set_selection(). |
| 34 | This selection is praticularly important for fitting as the fitter can only process one spectrum at a time. ASAP1 didn't allow slices so that wasn't a problem. Now you have to be careful that you have the correct selection. Use '''scanatble.nrow()''' to see how many spectra are in your selection. If there are more than one, the fitter uses the first one. |
| 35 | The same selection object can be used to restrict plotting '''plotter.set_selection()'''. |
| 36 | To unset the selection use '''set_selection''' without arguments. |
| 59 | === flagging === |
| 60 | ASAP1 only support flagging of whole spectra. ASAP2 allows channel based flagging |
| 61 | {{{ |
| 62 | # flag channels 100 to 200 in IF 1, leave IF0 untouched |
| 63 | mask = myscan.create_mask([100,200]) |
| 64 | sel.set_ifs(1) |
| 65 | myscan.set_selection(sel) |
| 66 | myscan.flag_spectrum(mask) |
| 67 | # reste the selection |
| 68 | myscan.set_selection() |
| 69 | }}} |
| 70 | |
| 71 | === New functions === |
| 72 | |
| 73 | * '''scantable.convert_pol()''' - convert (manipulate) the data between 'linear', 'circular' and 'stokes' |
| 74 | * '''scantable.set_dirframe()''' - convert to a new Direction reference frame e.g. 'GALACTIC', 'B1950' |
| 75 | |