View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

nproto.objmasks

holwerda wrote on Oct 05, 2006

Hello
I have a very peculiar problem with objmasks. As soon as I've applied it once on a fitsfile, it does not allow me to redo it again. 
What do I need to delete in order to redo the objmasks. I need to determine the optimal settings for my data. 
I have tried removing the OBJMASK header keyword and of course the .pl file. 

cheers

Benne
----------------------------------------------------------------------------------------
"My god! Who's flying this thing? Oh right, that would be me..."

Benne Holwerda

home: Office 
3630 Rexmere Road Space Telescope Science Institute
21218 MD Baltimore 3700 San Martin Drive
21218 MD Baltimore
USA USA
tel: 
+1 (410) 467 0785              +1 (410) 516 8698

cell: +1 443 600 3390

email:
holwerda@stsci.edu ([email]holwerda@stsci.edu[/email])
benne.holwerda@gmail.com ([email]benne.holwerda@gmail.com[/email])

URL:
http://www-int.stsci.edu/~holwerda/
----------------------------------------------------------------------------------------

Post generated using Mail2Forum (http://www.mail2forum.com)

Francisco Valdes wrote on Oct 05, 2006

Hi Benne,

The only thing you would need to remove is the object mask that was previously created to avoid "Warning: Object mask already exists (foo[pl,type=mask])".

What happens that makes you think it is not working again? Did you try "unlearn objmasks" and then starting again? Post the parameters and the output and maybe I can see what is happening.

Yours,
Frank Valdes


np> objmasks test
List of output object masks: foo
ACE: NOAO/IRAF V2.12.2a-EXPORT valdes@tucana.tuc.noao.edu Fri 15:24:17 06-Oct-2006
  Image: test - Example artificial galaxy field
  Set sky and sigma:
    Determine sky and sigma by surface fits:
      start line = 51, end line = 462, step = 41.1
      xorder = 2, yorder = 2, xterms = half
      hclip = 2., lclip = 3.
    Determine sky and sigma by block statistics:
      Number of blocks: 5 5
      Number of pixels per block: 100 100
      Number of subblocks: 10 10
      Number of pixels per subblock: 50 50
  Detect objects:
    Convolution:
           1.      1.      1.
           1.      1.      1.
           1.      1.      1.
    401 objects detected
  Grow objects: ngrow = 2, agrow = 2.
  Write object mask: foo[pl]
np> ^obj
objmasks test
List of output object masks (foo): 
Warning: Object mask already exists (foo[pl,type=mask])
np> imdel foo
np> ^objmask
objmasks test
List of output object masks (foo): 
ACE: NOAO/IRAF V2.12.2a-EXPORT valdes@tucana.tuc.noao.edu Fri 15:24:33 06-Oct-2006
  Image: test - Example artificial galaxy field
  Set sky and sigma:
    Determine sky and sigma by surface fits:
      start line = 51, end line = 462, step = 41.1
      xorder = 2, yorder = 2, xterms = half
      hclip = 2., lclip = 3.
    Determine sky and sigma by block statistics:
      Number of blocks: 5 5
      Number of pixels per block: 100 100
      Number of subblocks: 10 10
      Number of pixels per subblock: 50 50
  Detect objects:
    Convolution:
           1.      1.      1.
           1.      1.      1.
           1.      1.      1.
    401 objects detected
  Grow objects: ngrow = 2, agrow = 2.
  Write object mask: foo[pl]

Last post on Oct 05, 2006