<div dir="ltr"><br><br>On Wed, Jun 27, 2018 at 3:06 PM, Roberta Fagandini <<a href="mailto:robifagandini@gmail.com">robifagandini@gmail.com</a>> wrote:<br>><br>><br>><br>> 2018-06-27 14:24 GMT+02:00 Markus Metz <<a href="mailto:markus.metz.giswork@gmail.com">markus.metz.giswork@gmail.com</a>>:<br>>><br>>><br>>><br>>> On Wed, Jun 27, 2018 at 2:16 PM, Roberta Fagandini <<a href="mailto:robifagandini@gmail.com">robifagandini@gmail.com</a>> wrote:<br>>> ><br>>> > I'm trying to create an automatic procedure to retrieve all the input parameters for the control file of i.atcorr.<br>>> > I need py6S because I want to automatically read and compute AOT at 550nm from an AERONET file.<br>>><br>>> With AOT you mean aerosol optical thickness right? This is user input to i.atcorr. There are various sources for AOT at 550nm, e.g. MODIS.<br>><br>><br>> Right!<br>>  <br>>><br>>>  <br>>><br>>><br>>> Anyway, it is probably much easier to to write your own routine to read the AERONET file and get the corresponding formula for AOT than to fight with 51821 lines of Fortran source code that is numerically unstable. Maybe I can help with getting AOT at 550nm from an AERONET file avoiding the Fortran version of 6S.<br>><br>><br><div>> Ok but I'm not able to create this kind of routine on my own. If someone, more expert than me, can help me in translating the 6S/Py6S functions I can go on in this way otherwise for me it's easier to use the fortran source code.</div><div><br></div><div>Apparently the AERONET data are simple CSV files. You can import them with <a href="http://r.in.xyz">r.in.xyz</a> or v.in.ascii.</div><div><br></div><div>Still, I think it is up to the user to decide on the source of AOT values. AERONET is one of many possible sources.<br></div><div><br></div><div>Markus M</div><div><br></div><div><br></div>> Here [0] a link to my Github repository in which you can find the small script that I wrote using the Py6S library to compute AOT at 550nm<br>><br>> Roberta<br>><br>> [0] <a href="https://github.com/RobiFag/GRASS_clouds_and_shadows/blob/master/read_aeronet.py">https://github.com/RobiFag/GRASS_clouds_and_shadows/blob/master/read_aeronet.py</a><br>>  <br>>><br>>><br>>> Markus M<br>>><br>>> ><br>>> > 2018-06-27 14:01 GMT+02:00 Moritz Lennert <<a href="mailto:mlennert@club.worldonline.be">mlennert@club.worldonline.be</a>>:<br>>> >><br>>> >> On 27/06/18 13:54, Roberto Marzocchi wrote:<br>>> >>><br>>> >>><br>>> >>> Il giorno mer 27 giu 2018 alle ore 13:47 Markus Metz <<a href="mailto:markus.metz.giswork@gmail.com">markus.metz.giswork@gmail.com</a> <mailto:<a href="mailto:markus.metz.giswork@gmail.com">markus.metz.giswork@gmail.com</a>>> ha scritto:<br>>> >>><br>>> >>>     Hi Roberta,<br>>> >>><br>>> >>>     On Wed, Jun 27, 2018 at 1:20 PM, Roberta Fagandini<br>>> >>>     <<a href="mailto:robifagandini@gmail.com">robifagandini@gmail.com</a> <mailto:<a href="mailto:robifagandini@gmail.com">robifagandini@gmail.com</a>>> wrote:<br>>> >>>      ><br>>> >>>      > Hi all!<br>>> >>>      > I need to compile the 6S library in GRASS in order to install the<br>>> >>>     python library Py6S [0].<br>>> >>><br>>> >>>     do you really need Py6S? Can't you use i.atcorr instead?<br>>> >>><br>>> >>><br>>> >>> She use Py6S to calculate imput for i.atcorr<br>>> >><br>>> >><br>>> >> That seems a bit overkill: why use Py6S to then use i.atcorr ? What are you trying to get from Py6S ?<br>>> >><br>>> >> Moritz<br>>> >><br>>> ><br>><br>><br></div>