This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package geotrellis.statistics | |
/** | |
* Data object for sharing the basic statistics about a raster or region. | |
*/ | |
case class Statistics(val mean:Double = Double.NaN, val median:Int = geotrellis.NODATA, | |
val mode:Int = geotrellis.NODATA, val stddev:Double = Double.NaN, | |
val zmin:Int = geotrellis.NODATA, val zmax:Int = geotrellis.NODATA) | |
object Statistics extends Statistics { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val maxOp = Histogram(tileSet, polygon, tile) | |
Demo.server.getResult(maxOp) match { | |
case Complete(median, stats) => { | |
(id,median.getMedian,stats.stopTime - stats.startTime) | |
} | |
case _ => (-1,geotrellis.NODATA,0L) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In filterTiles (RasterDataSourceLike.scala) the rasterExtent is: | |
Extent(652857.510560436,5252505.693414056,660537.2741164577,5260185.59803197) | |
But in foreachCellByPolygon (PolygonRasterizer.scala) it is: | |
Extent(675896.8012285009,5321624.834975283,683576.5647845225,5329304.739593197) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val results = months.flatMap { | |
month => { | |
val raster = RasterSource(store, s"${month}${year}NDVI_TOA_UTM14") | |
val mask = RasterSource(store, s"${month}${year}ACCA_State_UTM14") | |
val masked = raster.localMask(mask, 1, NODATA) | |
valid.map { | |
g => | |
val polygon = Polygon(g.geom, 0) | |
val coords = Demo.server.get(GetCentroid(polygon)).geom.getCoordinate |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val valid = geotrellis.data.geojson.GeoJsonReader.parse(geoJson).get.filter(node => node.geom.isValid && node.geom.getGeometryType == "Polygon").map { | |
g => (Polygon(g.geom,0), g.geom.getCentroid.getCoordinate) | |
} | |
val results = months.flatMap { | |
month => { | |
val raster = RasterSource(store, s"${month}${year}NDVI_TOA_UTM14") | |
val mask = RasterSource(store, s"${month}${year}ACCA_State_UTM14") | |
val masked = raster.localMask(mask, 1, NODATA).cached | |
val sources = valid.map { | |
case (poly, coord) => |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/usr/lib/jvm/java-8-oracle/bin/java -Didea.launcher.port=7536 -Didea.launcher.bin.path=/home/ejc/idea-IC-143.380.20/bin -Dfile.encoding=UTF-8 -classpath /usr/lib/jvm/java-8-oracle/jre/lib/charsets.jar:/usr/lib/jvm/java-8-oracle/jre/lib/deploy.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/cldrdata.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/dnsns.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/jaccess.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/jfxrt.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/localedata.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/nashorn.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/sunec.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/sunjce_provider.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/sunpkcs11.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/zipfs.jar:/usr/lib/jvm/java-8-oracle/jre/lib/javaws.jar:/usr/lib/jvm/java-8-oracle/jre/lib/jce.jar:/usr/lib/jvm/java-8-oracle/jre/lib/jfr.jar:/usr/lib/jvm/java-8-oracle/jre/lib/jfxswt.jar:/usr/lib/jvm/java-8-oracle/jre/lib/jsse.jar:/usr/lib/jvm/java-8-oracle/jre/lib/mana |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>org.deeplearning4j</groupId> | |
<artifactId>deeplearning4j-examples</artifactId> | |
<version>0.4-rc0-SNAPSHOT</version> | |
<name>DeepLearning4j Examples</name> | |
<description>Examples of training different data sets</description> | |
<properties> |