Skip to content

Commit

Permalink
Version 0.2
Browse files Browse the repository at this point in the history
added slope, getcoverage, allresources
  • Loading branch information
GER-Space committed Jul 23, 2016
1 parent 3426453 commit 1034f1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions KOS-Scansat/Addon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -227,13 +227,13 @@ The north-south gradient is calculated by
double dEW = ((z[0] + z[3] + z[6]) - (z[2] + z[5] + z[8])) / (8*offsetm);
double dNS = ((z[6] + z[7] + z[8]) - (z[0] + z[1] + z[2])) / (8*offsetm);

slope = Math.Abs(Math.Atan(Math.Sqrt(Math.Pow(dEW,2) + Math.Pow(dNS,2))));
slope = 100* Math.Abs(Math.Sqrt(Math.Pow(dEW,2) + Math.Pow(dNS,2)));

if (SCANUtil.isCovered(coordinate.Longitude, coordinate.Latitude, body.Body, SCANUtil.GetSCANtype("AltimetryLoRes")))
{

}
return slope;
return Math.Round(slope,2);
}


Expand Down

0 comments on commit 1034f1b

Please sign in to comment.