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

Large array size with synfast_flat #165

Open
ajcukierman opened this issue Nov 4, 2022 · 2 comments
Open

Large array size with synfast_flat #165

ajcukierman opened this issue Nov 4, 2022 · 2 comments

Comments

@ajcukierman
Copy link

When using synfast_flat with a large number of pixels, e.g., 50e4 x 50e4, I encounter a ValueError in _nmtlib.synfast_new_flat that reads negative dimensions are not allowed. The inputs are definitely all positive, and I have no issues with smaller array sizes. The threshold is approximately at 50e4 x 50e4.

@damonge
Copy link
Collaborator

damonge commented Nov 7, 2022

Just checking, are these really the dimensions of the maps you're trying to generate? A map this size would take up ~1.8 TB of memory, which makes this very difficult to reproduce.

@ajcukierman
Copy link
Author

I'm sorry. I meant 5e4, not 50e4! It should be more like 20 GB. I was able to make a map with 4.3e4 on a side, and I can store it in FITS format with 15 GB.

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

2 participants