-
Notifications
You must be signed in to change notification settings - Fork 23
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
VLSR #19
VLSR #19
Conversation
I don't have time to test this, but looks interesting! Two minor suggestions that you may disregard if you want:
|
I included the VLSR parameters in To avoid the impression that the loc, ra/dec, and alt/az affect the acquisition, we should specify these parameters are optional in the documentation. Another way to do it would be for those parameters to be passed in as part of Let me know which way you want to go.
|
You're absolutely right, I confused ylim with xlim (which does share a common frequency unit: MHz). All good then, thanks! Let me know if you'd like me to merge this now or wait for the |
Let's wait on the avg_ylim. |
I've added the ability to adjust for VLSR in the calibrated plot. I haven't gone through and updated the docs or the version number yet. I wanted to give you a chance to look the code over and perhaps test it first.
To place the reading in the VLSR reference frame, the program needs to know three pieces of information: the observer's location (in longitude, latitude, and elevation), the target of the observation, and the time of the observation. Time is already recorded in the header files, but the others needed to be added. They are passed into the observe() function as obs_parameters.
For the target, two options are available for representing the target coordinates. The coordinates can be given in ra/dec, which will work best for single observations or tracked observations. The coordinates can also be given in alt/az. This allows the telescope to perform drift scans. Since the program knows the observer's location and the time, it can convert the alt/az for each reading into ra/dec.
If someone passes in both ra/dec and alt/az as parameters, the program will use alt/az.
To perform a plot in VLSR, the parameter vlsr=True should be passed with the plot. The default is vlsr=False. I have updated the title of the calibrated plot so it indicates when the plot is in VLSR.
I've also added a way for users to control the limits of the y-axis on the calibrated plot. Passing in cal_ylim=[N1,N2] will set the lower limit to N1 and the upper limit to N2. If no parameter or cal_ylim=[0,0] is passed, the program will choose the appropriate limits on the basis of the data.
Let me know if this is a direction you would like to go.
Will resolve #18 and #16.