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

Add HealpixNested.getNHash() method for easy access to number of 'cells'? #19

Open
BerryHoll opened this issue Nov 25, 2024 · 1 comment

Comments

@BerryHoll
Copy link

BerryHoll commented Nov 25, 2024

If I understand correctly the way to get the number of cells, for a given depth is using:

Healpix.nHash(depth)

However, it would make sense to be able to get access to this value also from the HealpixNested object after construction, especially since it is already available as internal variable 'nHash'.
Could you add a simple accessor to the value by adding:

public long HealpixNested.getNHash() {
   return this.nHash;
}
@BerryHoll BerryHoll changed the title Add HealpixNested.getNHash() method for easy access to number of 'pixel'? Add HealpixNested.getNHash() method for easy access to number of 'cells'? Nov 25, 2024
@fxpineau
Copy link
Member

Done.
Do you have other similar requests (before I make a new release)?

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

No branches or pull requests

2 participants