Hi,
I am trying to create a MOC as shown in your example here docs/astropy/examples.ipynb.
If i follow these steps exactly:
region_center = SkyCoord(ra=35.30109, dec=-4.45962, unit='deg')
search_radius = 1*u.deg
from mocpy import MOC
moc_xxl = MOC.from_elliptical_cone(
lon=region_center.ra,
lat=region_center.dec,
a=search_radius,
b=search_radius,
pa=0*u.deg,
max_depth=14
)
I get:
ValueError: Semi-minor axis must be in ]0, a[
If i make a slight modification of a < b :
a_deg=1*u.deg
b_deg = 0.999*u.deg
moc_xxl = MOC.from_elliptical_cone(
lon=region_center.ra,
lat=region_center.dec,
a=a_deg,
b=b_deg,
pa=0*u.deg,
max_depth=14
)
Then it works
Hi,
I am trying to create a MOC as shown in your example here
docs/astropy/examples.ipynb.If i follow these steps exactly:
I get:
ValueError: Semi-minor axis must be in ]0, a[If i make a slight modification of
a<b: