Skip to content

Instantly share code, notes, and snippets.

@lossyrob
lossyrob / objectsize.scala
Created November 21, 2017 04:47
Measure object size
// "com.madhukaraphatak" %% "java-sizeof" % "0.1"
import geotrellis.vector._
import com.madhukaraphatak.sizeof.SizeEstimator
import com.vividsolutions.jts.{geom => jts}
object Main {
def sbytes(bytes: Long, si: Boolean = false): String = {
val unit = if(si) { 1000 } else { 1024 }
if (bytes < unit) {
@lossyrob
lossyrob / PyramidTobler.scala
Last active November 28, 2017 18:14
SRTM/Tobler
package ingest
import geotrellis.proj4._
import geotrellis.raster._
import geotrellis.raster.io._
import geotrellis.spark._
import geotrellis.spark.io._
import geotrellis.spark.io.kryo._
import geotrellis.spark.io.s3._
import geotrellis.spark.io.index._
@lossyrob
lossyrob / research-papers-anomaly-detection-09-2017.md
Last active March 7, 2018 12:31
Some research papers/blogs/posts on Anomaly Detection, Auto encoders, and GANs that I've come across

Anomoly detection images over time

@lossyrob
lossyrob / landsat-ingets.ipynb
Created August 7, 2017 21:12
Example landsat geopyspark ingest
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lossyrob
lossyrob / example-nlcd-broken.ipynb
Created August 6, 2017 05:48
NLCD example notebook - currently broken, needs fix
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lossyrob
lossyrob / continental-usa.geojson
Last active August 21, 2020 09:47
Rough continental USA single polygon GeoJSON
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lossyrob
lossyrob / Main.scala
Created July 18, 2017 15:50
ImageIO to MultibandTile
package whocares
import geotrellis.raster._
import geotrellis.raster.io.geotiff._
import geotrellis.proj4._
import geotrellis.vector._
import com.twelvemonkeys.image.ResampleOp
import com.twelvemonkeys.imageio.AbstractMetadata
import com.twelvemonkeys.imageio.AbstractMetadata
import spire.syntax.cfor._
@lossyrob
lossyrob / foss4g-na-2018-call-for-chair.md
Created June 15, 2017 21:10
Request for Conference Committee Chairperson for FOSS4G NA 2018

Dear FOSS4G Community,

We, the FOSS4G NA Core Committee, are looking for a volunteer to chair the conference committee for the FOSS4G North America 2018 conference. The Conference Committee Chair (CCC) will be responsible for working with the Logistical Organizer (LO) to run a successful conference in 2018. The CCC ultimately shapes the conference, and the success of the conference largely relies on his or her passion and hard work. The North America geospatial community needs someone who is willing to commit themselves to making this FOSS4G NA the best ever, for the benefit of and with the gratitude of all of us. If this sounds like you or someone you know, please get in touch!

Some details:

The CCC chooses, organizes and leads the conference committee. The conference committee will work with the LO to run the conference. The FOSS4G NA core committee, as part of our responsibilities, have chosen the Eclipse Foundation/LocationTech as the Logistical Organizer. The Eclipse Foundation was the LO for past

@lossyrob
lossyrob / utm-zone-18N.geojson
Last active June 15, 2017 02:25
Reprojection Blog: Philadelphia UTM zone 18N
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lossyrob
lossyrob / process-normalized-dsm-gt.scala
Created May 21, 2017 02:38
Hacky preprocessing of DSM tiles w/ normalization against mapzen dem tiles using geotrellis for raster vision 5-20-17 experiment
val b = "/Users/rob/proj/az/deepml/data/geotrellis-dsm-tiles/"
val b2 = "/Users/rob/proj/az/deepml/data/"
val b3 = "/Users/rob/data/datasets/isprs/potsdam/DSM_normalisation_with_geotrellis_byte/"
val l = Seq(
"dsm_potsdam_02_10.tff",
"dsm_potsdam_02_11.tff",
"dsm_potsdam_02_12.tff",
"dsm_potsdam_03_10.tff",
"dsm_potsdam_03_11.tff",