Closed zonca closed 4 years ago
I am not sure why these keywords are not XSTART,YSTART,XSIZE,YSIZE. maybe it's an old file. Also yes you are correct, the start should be 0. XSTART=0,YSTART=0
On Mon, 20 Jan 2020 at 10:36, Andrea Zonca notifications@github.com wrote:
@nils-erik https://github.com/nils-erik @arunsurya77 https://github.com/arunsurya77
I see that the default subarray parameters coming from the simulator are:
SUBSTRT1=1, SUBSTRT2=1, SUBSIZE1=4096, SUBSIZE2=4096
for a full array, shouldn't we have the SUBSTRT keywords be 0? or do you have any convention I don't know about arrays starting at 0 or 1?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/oirlab/iris_pipeline/issues/13?email_source=notifications&email_token=AKB37LQSYLQRCGCFJJNJMG3Q6XVJVA5CNFSM4KJILW72YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IHNZJXA, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKB37LS5MY7C2WHK5VY2ZOTQ6XVJVANCNFSM4KJILW7Q .
@nils-erik could it be due to IDL being 1-based instead of 0-based? I'll change all the files to have xstart and ystart at 0, but we should make sure to propagate it back to the simulator.
actually I take it back, checking JWST code [1], the default xstart
and ystart
is supposed to be 1,
I think that is due to the fact that the FITS file format defaults to 1-based indexing.
So let's use the same default in IRIS.
@nils-erik @arunsurya77
I see that the default subarray parameters coming from the simulator are:
for a full array, shouldn't we have the
SUBSTRT
keywords be 0? or do you have any convention I don't know about arrays starting at 0 or 1?