Skip to content

Significant round trip error when using the method = "jax" and sampling = "healpix" #291

Open
@sijil-jose

Description

@sijil-jose

Hi , I was checking the round trip errors in a similar manner to that of the tutorial notebooks with method =" jax" and sampling= 'healpix.' I noticed that the mean absolute error was around 0.02. I have noticed a similar range while using method =" numpy" with sampling = "healpix". Is this expected? I would like to use the method = ''jax" to use vmap and jit. Is there a work around for this?

Thanks
Sijil

L = 128
nside = 64
method = "jax"
sampling = "healpix"
rng = np.random.default_rng(23457801234570)
flm = s2fft.utils.signal_generator.generate_flm(rng, L,)

f = s2fft.inverse(flm, L, nside=nside, sampling = sampling, method=method)

flm = s2fft.forward(f, L, nside=nside, sampling=sampling, method=method)
f_recov = s2fft.inverse(flm, L, nside=nside, sampling=sampling,  method=method)

print(f"Mean absolute error = {np.nanmean(np.abs(f_recov - f))}")
Mean absolute error = 0.019590334447510353

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions