-
Notifications
You must be signed in to change notification settings - Fork 2
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
Extracting width per frequency channel (VLBI) #64
Comments
Right now I am using the crab pulsar to test fitburst. The code for the individual plots is: plt.imshow( |
To extract the initial time from the h5 file I am using: `from astropy.time import Time start_time = Time( For the final time an I_cut value is used to know where the pulse ends. `from sklearn import preprocessing fit_copy = np.copy(bestfit) #where bestfit is the model obtained from fitburst I_cut = 1e-4 #this value was used as an example
#now with the start and final time the width can be obtained ` |
Here I show the functions that allow us to calculate the width, start time of the pulse and final time of the pulse per frequency channel: `def t_dd(DM, t_0, freq_0, freq_1): def get_initial_and_final_time(bestfit, fname, path, ratio):
def get_start_time(h5_file, initial_time, final_time, DM):
def get_widths(bestfit, fname, path, ratio, h5_file, DM):
|
Here is how I use the get_widths function: `import numpy as np fit = np.load("bestfit_fitburst_crabpulse.npz") width, startTime, finishTime = get_widths(bestfit, fname, path, ratio, h5_file, DM)` |
@SebastianManosalva good result. First thing is, I'd like to know the |
hmm I doubt that all the top section was taken out. I think it is a plotting error, since those missing channels should be spread out across the entire band and not just at the top! |
The first funtion of |
I have been trying different codes to get make_input to work as intended. The next function improves the data (coherent and incoherent dedispersion) and refines the DM. ` def simplified_cut_profile(path, DM, t_res, DM_range = 1, w = None, downsample = 1, refine_RFI = True, fill_missing_time = None,
` |
ok, can you please post and update with a figure as well. |
The purpose of this feature is to extract the width per frequency channel, giving an start and stop timestamp. Then this information will be used within the VLBI pipeline and applied to the outrigger sites. Applying this custom mask to each data set will reduce the noise and improve the correlation strength.
The idea is to run
fitburst
instantly once an event has been triggered and received by the outrigger sites, optimize DM and share these set of parameters to the outriggers sites (or perhaps a common site?). Then apply mask and correlate.fitburst
with baseband data (@ketansand branch)fitburst
packageThe text was updated successfully, but these errors were encountered: