Skip to content

Commit

Permalink
Merge 9ed3325 into 664852d
Browse files Browse the repository at this point in the history
  • Loading branch information
dnidever committed Oct 7, 2020
2 parents 664852d + 9ed3325 commit a4899f3
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions python/sdss_access/path/path.py
Expand Up @@ -1112,6 +1112,26 @@ def definitiondir(self, filetype, **kwargs):
subdir = "{:0>4d}".format(designid100) + "XX"
return subdir

def healpixgrp(self, filetype, **kwargs):
''' Returns HEALPIX group subdirectory
Parameters
----------
filetype : str
File type parameter.
healpix : int or str
HEALPix number. Will be converted to int internally.
Returns
-------
healpixgrp : str
HEALPix group directory, HEALPix//100.
'''

healpix = int(kwargs['healpix'])
subdir = "{:d}".format(healpix//100)
return subdir

class AccessError(Exception):
pass

0 comments on commit a4899f3

Please sign in to comment.