astrofrog / sedfitter

Python version of the SED fitter from Robitaille et al., 2007, ApJS 169 328
http://sedfitter.readthedocs.org
BSD 2-Clause "Simplified" License
20 stars 22 forks source link

Convolving new filters #47

Open sagastar128 opened 7 years ago

sagastar128 commented 7 years ago

Hey,

I’m trying to convolve some more filters without much success at least in case of WISE/ALLWISE. For IPHAS data I just pulled the throughput of the filters from http://catserver.ing.iac.es/filter/list.php?instrument=WFC&filtersystem=BroadAndNarrowBand&availability=Yes This appeared to have worked fine, assuming the idea of using them was correct. For WISE I only found the relative spectral response according to section v. of: http://wise2.ipac.caltech.edu/docs/release/prelim/expsup/sec4_3g.html

If I plug them into f = Filter() f.name = ... f.central_wavelength = ... f.nu = ... f.response = ...

The result of the convolution is a fits containing 0’s. I don’t know how to fix that problem so I’d appreciate a little hint or help. Thank you Heim

astrofrog commented 7 years ago

@sagastar128 - sorry for the delay in getting back to you. Are you still having this issue? If so, could you give me the actual values you used for the filter?

sagastar128 commented 7 years ago

I think I found a rather crude workaround for my problem. I used the downloadable ASCII files of the late online fitting tool and sort of transplanted that data into the empty fits-file (I used the existing 2MASS filter/ascii file as reference for reordering).

There was no issue for the three iphas filters. There I basically used the above mentioned webpage and took the txt-file of which I defined f.nu = first column, and f.response as the second column. Still not sure if that's ok. If added the Halpha filter as an example file: halpha.txt

KainRasleafar commented 7 years ago

I have the same problem with Wise and Herschel filters. @astrofrog Yesterday I sent You an email with my way of thinking in jupyter notebook.