-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using my data #73
Comments
Hi, this issue seems to be related with the mask setting. Apparently it fails to enlarge the mask. |
yes sir, thanks for you comment. The data is a telescope images and the format is fit. My data only using standard reducing (dark, bias and flat) without mask plan. And the data have gain key. I attach header of my data, thanks sir, chornelis |
Sir, i try to use mask on tutorial 1 proper image to my data and it works. |
But i will sure for the mask that i should use. Have you any suggestion for me? thanks sir |
Sorry, can you send me more info? Maybe I can look at your images/masks and check for details that might be relevant. |
https://colab.research.google.com/drive/1_k6JW3yTu7JqaDwODcX15XbZG7o3LTcz#scrollTo=heY9PZP55q6z |
actually, know, i am still working to get good reference image. So, i haven't done the subtraction process. |
OK, I just checked and I will need access. But whenever you get to the subtraction stage post the results here, then I will look. |
ok sir, i will try |
Sir, can i get your email? |
data.pdf my regards, |
Yes I could access it. |
yes, this is from the observation process. yes, this PSF is quite broad and every star had the same brightness because this project is try to find out variable star from open cluster. And when we using differential photometry, we find that some star as a variable star, so i want to compare the result with same data but using properimage method. the data using counts. |
OK, it appers to me that the mask is quite strange. It seems to be masking out sources. From what I can see, you should have a nice subtraction. |
"It seems to be masking out sources", yes and now, i try to find out another way for masking, do you have paper or something about masking process that should I read? Because, it something new for me. For, flar, bias dark and cosmic ray, its done. |
OK, why don't you just let the mask out. Try subtracting using the paths: result = subtract(
ref=ref_path,
new=new_path,
smooth_psf=False,
fitted_psf=True,
align=False,
iterative=False,
beta=False,
shift=False
) where Or as the readme states: >>> from properimage.operations import subtract
>>> D, P, Scorr, mask = subtract(ref=ref_path, new=new_path, smooth_psf=False, fitted_psf=True,
... align=False, iterative=False, beta=False, shift=False) For the case, why don't you just try with the |
Ok sir, thanks for you suggestion. I will try |
I used this one, But the error shows like thisRuntimeError Traceback (most recent call last) /usr/local/lib/python3.7/dist-packages/properimage/operations.py in subtract(ref, new, align, inf_loss, smooth_psf, beta, shift, iterative, fitted_psf) 6 frames RuntimeError: filter weights array has incorrect shape. During handling of the above exception, another exception occurred: AttributeError Traceback (most recent call last) /usr/local/lib/python3.7/dist-packages/properimage/operations.py in subtract(ref, new, align, inf_loss, smooth_psf, beta, shift, iterative, fitted_psf) AttributeError: 'str' object has no attribute 'data' |
Hello sir, my regards, |
I am very sorry. I just can get back at this. What is the current state? |
Hello sir,
I am chornelis, I hope you are in a good condition. I want to finish my thesis about analysis data photometry using your code with my data. But, when i try the tutorial 3, "img=si.SingleImage(img_path)"
the error shows like this
RuntimeError Traceback (most recent call last)
in ()
----> 1 img=si.SingleImage(img_path)
3 frames
/usr/local/lib/python3.7/dist-packages/properimage/single_image.py in init(self, img, mask, maskthresh, stamp_shape, borders, crop, min_sources, strict_star_pick, smooth_psf, gain)
120 self.maskthresh = maskthresh
121 self.data = img
--> 122 self.mask = mask
123 self._bkg = maskthresh
124 self.stamp_shape = stamp_shape
/usr/local/lib/python3.7/dist-packages/properimage/single_image.py in mask(self, mask)
335 for i_enlarge in range(7):
336 enlarged_mask = convolve_scp(
--> 337 self.__data.mask.astype(int), np.ones((3, 3))
338 )
339 enlarged_mask = enlarged_mask.astype(int) > 2
/usr/local/lib/python3.7/dist-packages/scipy/ndimage/filters.py in convolve(input, weights, output, mode, cval, origin)
753 """
754 return _correlate_or_convolve(input, weights, output, mode, cval,
--> 755 origin, True)
756
757
/usr/local/lib/python3.7/dist-packages/scipy/ndimage/filters.py in _correlate_or_convolve(input, weights, output, mode, cval, origin, convolution)
603 wshape = [ii for ii in weights.shape if ii > 0]
604 if len(wshape) != input.ndim:
--> 605 raise RuntimeError('filter weights array has incorrect shape.')
606 if convolution:
607 weights = weights[tuple([slice(None, None, -1)] * weights.ndim)]
RuntimeError: filter weights array has incorrect shape.
what should i do with that error? Can you help me sir?
my regards, chornelis
The text was updated successfully, but these errors were encountered: