You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've trying to build large plots based on DeCAPS color images available at Aladin and the displayed plots show an unwanted grid-diamond structure. The code is very plain, based in a "hips" example:
from astropy.coordinates import SkyCoord
from hips import WCSGeometry, make_sky_image
# Compute the sky image
geometry = WCSGeometry.create(
skydir=SkyCoord(330., 3.000, unit='deg', frame='galactic'),
width=2000, height=2000, fov="2.0 deg",
coordsys='galactic', projection='AIT',
)
hips_survey = 'CDS/P/DECaPS/DR1/color'
result = make_sky_image(geometry=geometry, hips_survey=hips_survey,
precise='yes', tile_format='png')
# Draw the sky image
import matplotlib.pyplot as plt
ax = plt.subplot(projection=geometry.wcs)
ax.imshow(result.image, origin='lower')
ax.set_xlabel("Gal. longitude [deg]")
ax.set_ylabel("Gal. latitude [deg]")
plt.savefig('zzz.png', dpi=600)
plt.show()
The image result is attached. Depending of the resolution of the image or the size, the grid is not the same, even changing color from white to red, etc. The diamonds look like healpix tesselation. I've added the "precise=yes" in make_sky_image, without improvements. I'm using Python 3.6 with fresh Anaconda3-5.3, in Mac Mojave. Thank you very much in advance. All the best.
The text was updated successfully, but these errors were encountered:
The grid structure you observe is not actually HEALPix tessellation, but a bug in our drawing algorithm. Currently, we sum up all the tiles which leads to bright lines around the edges.
@cdeil - If you have time, we can continue the discussion in (#79) and I will try to get this fixed.
Hola, hola,
I've trying to build large plots based on DeCAPS color images available at Aladin and the displayed plots show an unwanted grid-diamond structure. The code is very plain, based in a "hips" example:
The image result is attached. Depending of the resolution of the image or the size, the grid is not the same, even changing color from white to red, etc. The diamonds look like healpix tesselation. I've added the "precise=yes" in make_sky_image, without improvements. I'm using Python 3.6 with fresh Anaconda3-5.3, in Mac Mojave. Thank you very much in advance. All the best.
The text was updated successfully, but these errors were encountered: