Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Voronoi Binning Error: NOISE must be positive and finite #117

Open
NilanjanaNandi opened this issue Jan 3, 2025 · 0 comments
Open

Voronoi Binning Error: NOISE must be positive and finite #117

NilanjanaNandi opened this issue Jan 3, 2025 · 0 comments

Comments

@NilanjanaNandi
Copy link

NilanjanaNandi commented Jan 3, 2025

Hi.

I have generated some datacubes using the SimSpin code using IllustrisTNG50 cutouts. Here is my code for obtaining the datacubes:

ifu = telescope(type="MUSE",filter='g',fov=15,spatial_res = 0.2, signal_to_noise = 100)

obs = observing_strategy(dist_z = 0.05, inc_deg = 60)

filename = system.file("extdata","cutout_gal1.hdf5",package = "SimSpin",mustWork = TRUE)

make_simspin_file(filename = filename, cores = 4, template = "EMILES", write_to_file=TRUE, overwrite=T, output="./EMILES_cutout_gal1.Rdata") 

cube = build_datacube(simspin_file = "./EMILES_cutout_gal1.Rdata", telescope = ifu, observing_strategy = obs,
                      method = "spectral", write_fits= T, output_location = "/home/nilanjana/z0.05_inc60/datacubes",
                      mass_flag=T, object_name="gal1", observer_name="NN", split_save = F, cores = 4,
                      voronoi_bin = T, vorbin_limit = 200) 

While binning the datacubes using the Vorbin package in python, I receive the error "NOISE must be positive and finite".
I guess this could be solved in the above code itself, but not sure how. Could you please help me solving the issue?

Also, I kept the signal_to_noise = 100. I was wondering if this is a good enough value of S/N or there is a suitable range of S/N for generating datacubes used for dynamical studies.

Looking forward to hearing from you soon.
Thanks in advance.

Regrards,
Nilanjana

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant