-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nodding2 #395
Conversation
…k per scan, they need to be merged
for more information, see https://pre-commit.ci
since there is a notebook check as well, and it still refers to the huge example (19GB) data, it will fail. This notebook file need to be turned into a smaller file for the testdata tree. |
…d trimmed version of the dataset
- fix too many feeds in a scan error by looping over the feeds
for more information, see https://pre-commit.ci
When the user passes an from dysh.fits.gbtfitsload import GBTFITSLoad
from dysh.util.download import from_url
url = "http://www.gb.nrao.edu/dysh/example_data/nod-KFPA/data/TGBT22A_503_02.raw.vegas.trim.fits"
filename = from_url(url)
sdf = GBTFITSLoad(filename)
sp2 = sdf.getnod(scan=[62,63],ifnum=0,plnum=0,fdnum=[0,1]).timeaverage()
Found nodding beams [2, 6] |
…) and figure out the other
for more information, see https://pre-commit.ci
One last thing that could be useful is to include a check for the user provided |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work!
I need to finish the notebook still. Other then the final version with figures, so it looks nice online, I wanted to do a baseline subtraction and compare the PS and NOD in (for now 2) diagrams. Baseline subtraction is still hampered because the inclusive option cannot handle units, so one needs 3 exclude regions, the edges and the line. Alternatively I could slice the spectra so it only has the baseline and the line, not the edges. |
for more information, see https://pre-commit.ci
notebook done, but figures not saved pending a final check by @astrofle ? |
The notebook looks good to me. Some comments below. Answers to the questions in the notebook:
sp2 = sdf.getnod(scan=62,ifnum=0,plnum=0, fdnum=[3,0]).timeaverage()[1500:-1500]
sp2s = sp2.smooth('box',51)
sp2s.plot(title='dysh getnod',xaxis_unit="chan")
sp2s.stats() A few language corrections:
|
Although this PR needs dysh_data() [see PR#394] this implements the getnod() function that is very similar to the getps() function. The test_nodding.py in this PR contains 10 rich examples, of which only Example0 has been properly tested and compared with GBTIDL, since that dataset contains an FS, PS, and NOD scan on the same source. The jupyter notebook compares the PS and NOD for a user.
The test_nodding.py code (developed in spyder) contains the GBTIDL code used to generate the matching fits files.
A number of examples (see the top of the test_nodding.py code) do work, but there are issues to be resolved: