Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
import datacube as dc | |
import ctypes | |
from contextlib import closing | |
import numpy as np | |
from datacube.helpers import ga_pq_fuser | |
from datacube.storage import masking | |
import xarray as xr | |
import multiprocessing as mp | |
#N = 1001*1001 |
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
import datacube as dc | |
class BurnCube(dc.Datacube): | |
def __init__(self): | |
super(BurnCube, self).__init__(app='TreeMapping.getLandsatStack') | |
self.measurements = ['red','green','blue','nir','swir1','swir2'] | |
self.res = (-100,100) | |
def load_cube(self, lon, lat, period): | |
query = { |
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 main | |
import ( | |
"fmt" | |
"image" | |
"image/color" | |
"image/png" | |
"os" | |
) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
import gdal | |
from osgeo import osr | |
import numpy as np | |
ras = np.load("/Users/pablo/Downloads/test.npy") | |
drv = gdal.GetDriverByName("GTiff") | |
ds = drv.Create("/Users/pablo/Downloads/gbdx.tif", 8765, 10000, 1, gdal.GDT_Float32) | |
proj = osr.SpatialReference() | |
proj.ImportFromEPSG(4326) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 main | |
import ( | |
"github.com/terrascope/gocog" | |
"fmt" | |
"image" | |
"image/png" | |
"net/http" | |
"os" | |
) |
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 main | |
import ( | |
"encoding/gob" | |
"fmt" | |
"net/http" | |
"strconv" | |
itsk "github.com/prl900/intersekt" | |
"google.golang.org/appengine" |