Skip to content

Instantly share code, notes, and snippets.

View vincentsarago's full-sized avatar

Vincent Sarago vincentsarago

View GitHub Profile
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@vincentsarago
vincentsarago / list_of_lib64_files.txt
Created January 24, 2018 19:19
list of files in `/usr/lib64` on AWS Lambda python3.6
libglib-2.0.so.0.3600.3
libxcb-dri2.so.0
libcups.so.2
libwmflite-0.2.so.7
libssl.so.1.0.1k
libicudata.so.50.1.2
libsasl2.so.2
libgmp.so.3.5.2
liblua-5.1.so
libstdc++.so.6.0.19
<GDAL_WMS>
<Service name="TMS">
<ServerUrl>http://elevation-tiles-prod.s3.amazonaws.com/geotiff/${z}/${x}/${y}.tif</ServerUrl>
</Service>
<DataWindow>
<UpperLeftX>-20037508.34</UpperLeftX>
<UpperLeftY>20037508.34</UpperLeftY>
<LowerRightX>20037508.34</LowerRightX>
<LowerRightY>-20037508.34</LowerRightY>
<TileLevel>14</TileLevel>
'use strict';
const moment = require('moment');
const AWS = require('aws-sdk');
const generate_year_range = (start, end) => {
const years = [];
for(var year = start; year <= end; year++){
years.push(year);
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.
from osgeo import gdal
from boto3.session import Session
#Do something with the array
def myFunction(arr):
return np.where(arr > 0, (arr * 10000).astype(np.uint16), 0)
session = Session(region_name='us-west-2')
s3 = session.resource('s3')