I am looking for options of GEE JavaScript code to perform atmospheric correction of Landsat 7-8 and Sentinel-2 directly within the GEE Code Editor.
I intend to use harmonized Landsat 7-8 and Sentinel-2 bottom of atmosphere (BOA) reflectance data across some locations in Brazil during 2017-2018. While Landsat 7-8 BOA data are readily available in GEE (at least for my region and date), Sentinel-2 BOA data are not always available in GEE (yet), depending on the region and date. Therefore, I may need to apply my own atmospheric correction on the Sentinel-2 TOA data - preferably within the GEE Code Editor in order to perform as many processes as possible inside GEE.
To improve harmonization among the different satellite data, the same atmospheric correction method could be applied to Landsat 7-8 TOA data as well.
In summary, it would be great to apply the same atmospheric correction method on Landsat 7-8 and Sentinel-2 data directly within the GEE Code Editor.