problems in using the task mskregions
Salvato wrote on Mar 27, 2007
hi,
I am trying to use the task mskregion.
I need to create a mask with 1 inside ellipses and 0 outside. the size of the image should be 10857,11925 pixels.
the input file is like the following:
ellipse (5000., 5000., 5., 0.654063., 307.2) || ellipse (6000., 7298., 30., 0.939524., 283.6) || ellipse (208.66391., 2042.9063., 3.1616603., 0.58208., 282.3) || .. etc
the ellipses are about 80000 and it can be that some partially overlap.
what I obtain as output is an pl file that, after be transformed in fits (by imcopy), goes from 0.5 to 1.5 in both directiion. with a scaling from e-38 to e-9.
Any idea about WHAT I am doing wrong?
Thanks,
Mara
I am trying to use the task mskregion.
I need to create a mask with 1 inside ellipses and 0 outside. the size of the image should be 10857,11925 pixels.
the input file is like the following:
ellipse (5000., 5000., 5., 0.654063., 307.2) || ellipse (6000., 7298., 30., 0.939524., 283.6) || ellipse (208.66391., 2042.9063., 3.1616603., 0.58208., 282.3) || .. etc
the ellipses are about 80000 and it can be that some partially overlap.
what I obtain as output is an pl file that, after be transformed in fits (by imcopy), goes from 0.5 to 1.5 in both directiion. with a scaling from e-38 to e-9.
Any idea about WHAT I am doing wrong?
Thanks,
Mara
Mike Fitzpatrick wrote on Mar 27, 2007
Hi Mara,
Does this mean you have 80,000 ellipse specifications all or'd together in one expression? When the task reads the a line from the regions file there's a limit of SZ_LINE chars (1023) allowed for each expression so the whole thing isn't being processed. If indeed you're trying to create this many ellipses then a better approach would be to create one ellipse per line of the file.
I'm not sure what this means, are these image statistics or something else? 0.5 to 1.5 what?
Cheers,
-Mike
the ellipses are about 80000 and it can be that some partially overlap.
Does this mean you have 80,000 ellipse specifications all or'd together in one expression? When the task reads the a line from the regions file there's a limit of SZ_LINE chars (1023) allowed for each expression so the whole thing isn't being processed. If indeed you're trying to create this many ellipses then a better approach would be to create one ellipse per line of the file.
what I obtain as output is an pl file that, after be transformed in fits (by imcopy), goes from 0.5 to 1.5 in both directiion. with a scaling from e-38 to e-9.
I'm not sure what this means, are these image statistics or something else? 0.5 to 1.5 what?
Cheers,
-Mike
Salvato wrote on Mar 27, 2007
Hi Mike,
thanks, I have also found out that it was enough to put one ellipse per line.
But I also found that the task doesn't work properly on the MAC OS X.
The same task (with the same input file and the same reference image) works perfectly on a Linux machine.
Thanks again,
Mara
thanks, I have also found out that it was enough to put one ellipse per line.
But I also found that the task doesn't work properly on the MAC OS X.
The same task (with the same input file and the same reference image) works perfectly on a Linux machine.
Thanks again,
Mara
Last post on Mar 27, 2007