11 | | The user guide is attached to this wiki page. |
| 11 | The user guide is attached to this wiki page and should also be scrutinised. |
| 12 | |
| 13 | I suggest you take some data you have already used in ASAP (version 1) and re-process it again. |
| 14 | ASAP should work with (single pointing) spectral line data from Parkes, Mopra and Tidbinbilla. |
| 15 | It supports on/off or frequency switched quotients. |
| 16 | There are a few changes in the ASAP2 interface |
| 17 | |
| 18 | == Changes in ASAP2 == |
| 19 | |
| 20 | === Selection of data === |
| 21 | Data selection in ASAP2 is far more flexible, i.e. data can be selected on more than just BEAM, IF and POL, e.g Tsys |
| 22 | Data can also be selected in slices, e.g. two polarisations for one IF. |
| 23 | A selection object has been introduced: |
| 24 | {{{ |
| 25 | ASAP> myscan = scantable("somethingwith2polsand2ifs.rpf") |
| 26 | ASAP> sel = selector() |
| 27 | ASAP> sel.set_polarisations("XX YY") |
| 28 | ASAP> sel.set_ifs(1) |
| 29 | ASAP> myscan.set_selection(sel) |
| 30 | }}} |
| 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(). |
| 33 | |
| 34 | === plotting === |
| 35 | ASAP2 doesn't support plotting of multiple scantables on the same plot. There is a way around this though: |
| 36 | {{{ |
| 37 | a = scantable("a.rpf") |
| 38 | b = scantable("b.rpf") |
| 39 | ... some processing |
| 40 | sel = selector() |
| 41 | sel.set_scans(0) |
| 42 | sel.set_ifs(1) |
| 43 | # grab the first scan and IF 1 out of both scantables |
| 44 | a.set_selection(sel) |
| 45 | b.set_selection(sel) |
| 46 | both = merge(a,b) |
| 47 | plotter.set_mode("i","s") |
| 48 | plotter.plot(both) |
| 49 | }}} |
| 50 | |
| 51 | === Quotient spectra === |
| 52 | '''scantable.quotient()''' is not available anymore. ASAP2 does "closest in time" using '''auto_quotient'''. |
| 53 | This should suit almost all observations. If not let me know. |
| 54 | |
| 55 | === Command Summary === |
| 56 | ||ASAP1||ASAP2|| |
| 57 | ||scantable.set_cursor||scantable.set_selection|| |
| 58 | ||scantable.get_cursor||scantable.get_selection|| |
| 59 | ||plotter.set_cursor||plotter.set_selection|| |
| 60 | |
| 61 | |
| 62 | ---- |