So there is a GitHub code by Sam Murphy for doing this: https://github.com/samsammurphy/gee-atmcorr-S2
But I have written all my codes in Java and I don't know python. Is there a way to implement the same code in java? Otherwise, is there a way to run my Java code on the atmospherically corrected images.
Best Answer
I've been looking for a way to correct S2 L1C datasets directly in the GEE code editor. I found this thread that can be of use: https://www.researchgate.net/post/Atmospheric_correction_code_in_Google_Earth_Engine_GEE
The direct link to the code editor from Elias Berra is: https://code.earthengine.google.com/096e7e851a50551463341bf64744324f
Then you can export the images and run your Java code.