astronomy-commons / axs

Astronomy eXtensions for Spark: Fast, Scalable, Analytics of Billion+ row catalogs
https://axs.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
23 stars 12 forks source link

dec_to_zone should use AxsFrame zone height rather than the default value #24

Open ebellm opened 4 years ago

ebellm commented 4 years ago

The current dec_to_zone function hard-codes defaults the zone height to Constants.ONE_AMIN. When called in AxsFrame.region and AxsFrame.cone, it should used the zone height stored in metadata (at _table_info['zone_height']), otherwise region and cone-search function calls will fail for tables stored with other zone heights.