Apply rayleigh correction using snappy

Yes, this is possible.
You can invoke the rayleigh operator from snappy.
Please have a look at my post here:

The two lines:

HashMap = snappy.jpy.get_type('java.util.HashMap')    

Are not needed anymore with the current version.
So basically you need to create a map with the parameters and then invoke GPF.createProduct() with the operator name, the parameters and the input product to process.

The operator name is ‘Rayleigh’ and you get the names of the parameters from the menu by clicking on “File / Display Parameters…”.