WSL/SLF GitLab Repository

Commit 51a8e652 authored by Mathias Bavay's avatar Mathias Bavay
Browse files

Oups, the sun example had not been updated...

By the way, the last changes to the code made it slightly faster for a 1 year data_converter (less than 3%) all while being much safer (not relying on copying pointers verbatim and hoping they remain valid).
parent 5bf0f221
......@@ -11,7 +11,7 @@ int main(int /*argc*/, char** argv) {
mio::Date d1;
d1.setTimeZone(TZ);
mio::IOUtils::convertString(d1,argv[1], TZ); //get date and time
Sun.setDate(d1.getJulianDate(), d1.getTimeZone()); //local julian date and timezone
Sun.setDate(d1.getJulian(), d1.getTimeZone()); //local julian date and timezone
double iswr_ref;
mio::IOUtils::convertString(iswr_ref,argv[2]); //get measured global incoming radiation
......@@ -45,6 +45,6 @@ int main(int /*argc*/, char** argv) {
printf("Beam Splitting coefficient=%g\n",Md_beam);
printf("Horizontal Splitting coefficient=%g\n",Md_horizontal);
printf("Slope Splitting coefficient=%g\n",Md_slope);
return 0;
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment