Skip to content

TNS-FRB crossmatching script #200

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

TNS-FRB crossmatching script #200

wants to merge 3 commits into from

Conversation

astro-vic
Copy link
Collaborator

Updated TNS crossmatching script, now compatible with TNS 2.0 API querying.

Updated TNS crossmatching script, now compatible with TNS 2.0 API querying.
Copy link
Contributor

@profxj profxj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this!

return name, ra, dec, theta, a, b


def cov_matrix(a, b, theta):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these methods looks very useful!

might be better in another location..

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could add them to utilities.py or something like that.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, please

#plt.savefig(f'{transient_name}_gaussian_map.png')


def main(filename, name, ra, dec, theta, a, b, radius, single_obj=False):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are we going to make this a proper script?

If so, we need to add another file.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would like to turn this into a proper script to be made available when the paper comes out. What other file is needed? I guess I don't know what that entails...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's discuss

docstring descriptions of variables and what the functions do
@astro-vic
Copy link
Collaborator Author

Thanks for this!

I updated the script based on your suggestions! let me know if there's anything else to add. Thanks X!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants