def spts(latlon_list): # Convert a list of latlons (in degrees) to SphPoints return [sph.sph_point(p, in_degrees=True) for p in latlon_list]
def spt(*args, **kwargs): # Wrap sph.sph_point, but default to in_degrees=True in_degrees = kwargs.pop('in_degrees', True) kwargs['in_degrees'] = in_degrees return sph.sph_point(*args, **kwargs)