USRA-STI / gdt-core

Gamma-ray Data Tools - Core Components
Apache License 2.0
6 stars 9 forks source link

Add the ability to change the NSIDE of a HealPix object #59

Open AdamGoldstein-USRA opened 1 month ago

AdamGoldstein-USRA commented 1 month ago

Propose to add an object method HealPix.to_nside(nside), that will change the resolution of an existing HealPix object and return a new HealPix object with the requested nside. This would be called in the following way:

# convert a NSIDE=64 HealPix object to NSIDE=128
hpx128 = hpx64.to_nside(128)