-
Notifications
You must be signed in to change notification settings - Fork 0
/
1. shellCode
17 lines (13 loc) · 835 Bytes
/
1. shellCode
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Decrease the Corona image file size to load to the GEE
// Open the OSGeo4W Shell (usually under QGIS folder in "Start")
// To change the drive to z: (where our images are located) type the following
pushd z:
// press Enter
// find Corona file location
// in our case:
cd Z:\mnita\Caucaz\export\2_5m_export
// then type the following, adjusting the file name
// both LZW and JPEG compressions work equally well
gdal_translate -of GTiff -ot Byte -co "COMPRESS=JPEG" -co "BIGTIFF=YES" -co "TILED=YES" -co "BLOCKXSIZE=256" -co "BLOCKYSIZE=256" -b 1 DS1023-2087_DF.tif DS1023-2087_DF_1band_JPEGcomp.tif
gdal_translate -of GTiff -ot Byte -co "COMPRESS=LZW" -co "BIGTIFF=YES" -co "TILED=YES" -co "BLOCKXSIZE=256" -co "BLOCKYSIZE=256" -b 1 DS1023-2087_DF.tif DS1023-2087_DF_1band_LZWcomp.tif
// You can import the resulting file in GEE