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
Taking an SHT of a higher-res map that was upsampled from a lower-res map is throwing an error. The difference is apparently the crval value in the WCS, being different from what it is if I just make the higher-res map from the start.
What I Did
frompixellimportenmap, curvedskyimportnumpyasnp#Check that we can take an SHT of a full-sky map at 5-arcmin resolutionsmall_resolution_arcmin=5.shape_small, wcs_small=enmap.fullsky_geometry(res=small_resolution_arcmin/60*np.pi/180.)
mymap_small=enmap.ndmap( (np.zeros(shape_small)), wcs_small)
#This SHT works fine:mysht_small=curvedsky.map2alm(mymap_small, lmax=3000)
#Now start with a low-res map, then upsample it to the shape of the high-res map, and try the SHTbig_resolution_arcmin=60shape_big, wcs_big=enmap.fullsky_geometry(res=big_resolution_arcmin/60*np.pi/180.)
mymap_big=enmap.ndmap( (np.zeros(shape_big)), wcs_big)
mymap_resampled=enmap.resample(mymap_big, oshape=shape_small, method='spline')
#This SHT throws an error:mysht_resampled=curvedsky.map2alm(mymap_resampled, lmax=3000)
Here is the error report:
Here is the difference in WCS values:
The text was updated successfully, but these errors were encountered:
Description
Taking an SHT of a higher-res map that was upsampled from a lower-res map is throwing an error. The difference is apparently the
crval
value in the WCS, being different from what it is if I just make the higher-res map from the start.What I Did
Here is the error report:
Here is the difference in WCS values:
The text was updated successfully, but these errors were encountered: