Closed havok2063 closed 1 year ago
Hi @havok2063
So, the size of the fiber is actually included in the configuration files provided with the simulator and it is 35.3". It cannot be changed via the code, but only by modifying the configuration file that contains all the info related to the fiber array. On the other hand, "pixsize" describes the size of the pixel used to produce the observed source field, as described in Tutorial #1. So pixsize=1" does not mean that the fibers have a diameter of 1", but that the source field is produced using a spatial grid with a 1" pixel sampling. Similarly, when you set pxsize=36", you are creating the source field with a sampling of 36". Technically there should not be any problem, but apparently trying to build a source field with a spatial sampling larger than the size of the fiber itself is causing some issues. We probably should add some kind of warning and limit the maximum pxsize that can be used.
What we are doing when we run simulations is using the default 1" sampling if we are simulating small, simple fields, while we use larger pxsize (up to 10") if we are simulating large and complex nebulae that would require a large amount of RAM or long computational time to be produced.
I hope this clarifies the problem! If so, please feel free to close this issue, otherwise, do not hesitate to contact us again!
@cloud182 thanks for the clarification. That helps. In hindsight it makes sense given that pxsize
is on the LVMField
class and not the FiberBundle
class. I certainly didn't want a field pixel size of 36". I will adjust my code accordingly. Thanks again!
I'm trying to simulate a realistic science IFU, with 25 rings and 36 arcsec spaxels. When running the simulation, it currently fails within astropy's kernel convolution, see full traceback below. If I reduce the spaxel size, to e.g. 1", the code runs. Not sure if this is a bug or an issue with my configuration. Is there a recommended setup I should use for simulating a realistic science IFU? I'm using
astropy=5.1
.Traceback