Welcome to iraf.net Saturday, April 20 2024 @ 05:06 AM GMT


 Forum Index > Help Desk > Applications New Topic Post Reply
 fit1d and pixel mask with bad pixels at first/last lines or columns
   
gbhw
 03/06/2015 04:20PM (Read 1110 times)  
+----
Newbie

Status: offline


Registered: 03/23/2011
Posts: 2
Dear Frank Valdes,

With fit1d, I would like to fit and subtract the background of images, using during the fit a pixel mask masking both sources within the images and pixel regions at borders (the latter usually set at extreme high or low values in the images).

Apparently, the routine fit1d does not work when using bad pixel masks having bad pixels at the first/last lines or columns.

fit1d (input='test2', output='test3', type="difference", bpm="mnoda-b_an_a_bp2.pl", axis=1, interactive=no, sample="*", naverage=1, function="legendre", order=3, low_reject=2., high_reject=2., niterate=1, grow=0., graphics="stdgraph", cursor="", mode="ql"Wink

Singular solution
Singular solution
Singular solution
Singular solution
Singular solution
Singular solution
Singular solution
Singular solution
Singular solution
Singular solution
Singular solution
Singular solution
Singular solution

The output image displays an incorrect subtraction, due to the masked values at the borders interfering with the fit.

Using a mask without such flags at the borders, as mnoda-b_an_a_bp.pl, produces a good result:

fit1d (input='test2', output='test3', type="difference", bpm="mnoda-b_an_a_bp.pl", axis=1, interactive=no, sample="*", naverage=1, function="legendre", order=3, low_reject=2., high_reject=2., niterate=1, grow=0., graphics="stdgraph", cursor="", mode="ql"Wink

I already sent you the files.

Cheers,

Gab

 
Profile Email
 Quote
   
Content generated in: 0.04 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
Filtered HTML Allowed 
Censored Content 
dog allergies remedies cialis 20 mg chilblain remedies


Privacy Policy
Terms of Use

User Functions

Login