-
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
191 q6 channel based flagging #412
Conversation
fix botched merge
for more information, see https://pre-commit.ci
Flags are subject to |
yeah, that should be removed. |
also note read/write of flags is not yet implemented |
Somehow my description of this PR was never saved. It contains |
…word is consistent with other methods
I'm going to see if there is an easy patch for SpecPlot, but that should not hold up the review. Thanks. |
Specplot should now not plot masked values.
|
Updates to Spectrum.smooth and spectra.core.smooth to deal with masked data correctly. |
the general idea is correct but getps with smoothref needs working out.
had to undo changes to smooth because it breaks getps with smoothref. |
for more information, see https://pre-commit.ci
See #415 for discussion of smoothing with masks |
from pathlib import Path
from dysh.util.download import from_url
from dysh.fits.gbtfitsload import GBTFITSLoad
url = "http://www.gb.nrao.edu/dysh/example_data/mixed-fs-ps/data/TGBT24B_613_04.raw.vegas.trim.fits"
savepath = Path.cwd() / "data"
filename = from_url(url, savepath)
sdf = GBTFITSLoad(filename)
sdf.flags.clear()
sdf.flag(channel=[[100,10000]])
ps_sb = sdf.getps(scan=35, sig="T", apply_flags=True)#.timeaverage()
ps_sig = ps_sb.timeaverage()
INFO: overwriting Masked Quantity's current mask with specified mask. [astropy.nddata.nddata]
INFO: overwriting Masked Quantity's current mask with specified mask. [astropy.nddata.nddata] |
Those are coming from the used of Masked. I haven't yet looked into turning them off, kind of annoying. |
…d-flagging-PS-rev 191 q6 channel based flagging ps rev
No description provided.