Skip to content

Instantly share code, notes, and snippets.

@Kalimaha
Created November 6, 2014 10:09
Show Gist options
  • Save Kalimaha/a8a99433c75cad51bd08 to your computer and use it in GitHub Desktop.
Save Kalimaha/a8a99433c75cad51bd08 to your computer and use it in GitHub Desktop.
"processing": [
{
"band": 1,
"process": [
{
"extract_bands": ""
}
]
},
{
"band": 1,
"output_file_name": "merge",
"process": [
{
"gdal_merge": {
"prefix": "gdal_merge_",
"extension": "tif"
}
}
]
},
{
"band": 1,
"output_file_name": "final",
"process": [
{
"get_pixel_size" : "{{PIXEL_SIZE}}"
},
{
"gdalwarp": {
"opt": {
"-multi": "",
"-overwrite": "",
"-of": "GTiff",
"-s_srs": "'+proj=sinu +R=6371007.181 +nadgrids=@null +wktext'",
"-co": "'TILED=YES'",
"-t_srs": "EPSG:3857",
"-srcnodata": -3000,
"-dstnodata": -3000
},
"prefix": "gdalwarp_",
"extension": "tif"
}
}
]
},
{
"band": 1,
"process": [
{
"gdaladdo": {
"parameters": {
"-r": "average"
},
"overviews_levels": "2 4 8 16"
}
}
]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment