Skip to content
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

Inclusion of AVN datafile format. #232

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open

Inclusion of AVN datafile format. #232

wants to merge 12 commits into from

Conversation

james-smith-za
Copy link
Contributor

Inclusion of AVN datafile format for reduction of single-dish observations in Ghana.

@sjperkins sjperkins removed their request for review March 4, 2019 13:05
@ludwigschwardt
Copy link
Contributor

Excellent!

katdal/h5datav2_5.py Outdated Show resolved Hide resolved
katdal/h5datav2_5.py Outdated Show resolved Hide resolved
katdal/h5datav2_5.py Show resolved Hide resolved
katdal/h5datav2_5.py Outdated Show resolved Hide resolved
katdal/h5datav2_5.py Outdated Show resolved Hide resolved
katdal/h5datav2_5.py Show resolved Hide resolved
katdal/h5datav2_5.py Outdated Show resolved Hide resolved
katdal/h5datav2_5.py Outdated Show resolved Hide resolved
katdal/h5datav2_5.py Show resolved Hide resolved

@property
def u(self):
raise NotImplementedError("File is AVN Single-dish format, uv-plane is not applicable.")
Copy link
Contributor

Choose a reason for hiding this comment

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

Or you could just return 0 :-)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Would that be valid? I'm concerned that if a user unwittingly uses this, it may cause unexpected weird results.

Copy link
Contributor

Choose a reason for hiding this comment

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

It should be. That's where single-dish data goes...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okay. Would that be true of u, v and w? Or just u?

Copy link
Contributor

@ludwigschwardt ludwigschwardt Mar 5, 2019

Choose a reason for hiding this comment

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

All of them. Just remember to return an array with the appropriate shape.

Copy link
Contributor Author

@james-smith-za james-smith-za Mar 5, 2019

Choose a reason for hiding this comment

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

Done in ca0e58d. Have I understood correctly? There's only one "baseline", so the array should really only have one dimension I think.

@james-smith-za
Copy link
Contributor Author

@ludwigschwardt I realise this is not a priority right now, but this PR has been dangling for quite a while.

I don't really have an opinion either way - if more work is needed to clean it up, or if it should just be closed. What are your thoughts?

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