Jump to content

Banner.jpg.b83b14cd4142fe10848741bb2a14c66b.jpg

Time well spent?


andrew s

Recommended Posts

Just to prove I don't spend all my time in the SGL lounge here is some work I am doing on filtering spectra. Its using Python so I can batch process 10s of spectra.

Currently I am comparing Wavelet an Gaussian filtering. Still very much a work in progress. 

1799271944_FilterSpectra.thumb.png.d67b914e8a26dbd354d333e63473ed77.png

Regards Andrew

  • Like 5
Link to comment
Share on other sites

How do you know if particular feature is noise peak vs regular peak?

Could you apply both on reference spectrum polluted with noise to see which one fares better?

How about adaptive smoothing? I guess you extract spectrum from series of images that you probably stack or maybe you stack spectra extracted from multiple images. Could you use standard deviation of samples and intensity itself to estimate SNR at particular point and then apply smoothing based on SNR (lower SNR - more smoothing, better SNR less smoothing)?

 

  • Like 1
Link to comment
Share on other sites

Yes  @vlaiv, I will try test spectra and I also know the instrumental resolution from high signal to noise spectra. I just happen to be using a real spectrum here as I had to program the various .fits related actions using astropy and get to grips with matplotlib.

I am still researching various methods of estimating the optimal wavelet coefficients.

I am primarily interested in changes in the continuum and the H alpha and H beta lines.

All the details in the TiO2 bands are way below the low resolution R ~ 90 of this spectrograph. 

Regards Andrew 

  • Like 1
Link to comment
Share on other sites

Rain this morning so playing with "Algorithme a trous" still to implement a scientific approach to filtering the wavelet coefficients but making progress.

You imaging boys and girls have it so easy! 

586298298_FilterSpectra1.thumb.png.a080f6b87462948304bbc53c63c3b186.png

Regards Andrew

Edited by andrew s
Link to comment
Share on other sites

29 minutes ago, andrew s said:

Rain this morning so playing with "Algorithme a trous" still to implement a scientific approach to filtering the wavelet coefficients but making progress.

You imaging boys and girls have it so easy! 

Regards Andrew

Sounds exotic. Will you be having vin blanc or vin rouge?

  • Haha 1
Link to comment
Share on other sites

5 minutes ago, ollypenrice said:

There's a thought. I wonder if Andrew considers shirt wrinkles as a form of noise? Even worse in the case of sheets when you're trying to get to sleep.

Olly

Let's not go down the ironing route again please 😆

  • Like 1
  • Haha 1
Link to comment
Share on other sites

10 minutes ago, Paul M said:

@andrew s So this is from data aquired with your remote observatory?

No real idea what, if anything, it tells me but it looks impessive!

Yes, I take low resolution, high cadence spectra of flare stars. Maybe 1000 to 2000 a night. Once in a while I catch a flare when the stars output can more than double in a few 10s of seconds. The data is necessarily noise hence the need to filter it.

Regards Andrew 

  • Like 1
Link to comment
Share on other sites

10 minutes ago, Seelive said:

Not exactly sure what you are trying to achieve but there's an old article on a simple method to the determine spectra noise published in the STECF Newsletter #42 back in 2007 that can be downloaded from https://www.spacetelescope.org/about/further_information/stecfnewsletters/hst_stecf_0042/

Thanks I am trying to follow best modern practice from zanumber of references. Will follow up on yours.

Regards Andrew 

PS The paper is about measurement rather than filtering. 

Edited by andrew s
Link to comment
Share on other sites

16 minutes ago, andrew s said:

Here is the result of the filtering. Still working on how best to display the data. On this 3D plot you can see the H alpha decaying slowly back after the flare.

1894945808_FilterSpectra3d.png.b39528eb391fc137936d5fbd64eceb52.png

Regards Andrew

Interesting representation and result Andrew. I was just wondering if displaying as a single surface rather than stacked spectra might make the gross changes more obvious?

Link to comment
Share on other sites

4 minutes ago, JeremyS said:

Interesting representation and result Andrew. I was just wondering if displaying as a single surface rather than stacked spectra might make the gross changes more obvious?

Yes I am looking at surface plots now but  matplotlib is a challenging beast a d I have to fumble my way forward. Regards Andrew 

  • Thanks 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. By using this site, you agree to our Terms of Use.