Guest User

Untitled

a guest
Aug 16th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.65 KB | None | 0 0
  1. gdal_merge.py -createonly -separate -co PHOTOMETRIC=RGB -o merged.tif LE07_L1TP_046030_20180810_20180810_01_RT_b3.tif LE07_L1TP_046030_20180810_20180810_01_RT_b2.tif LE07_L1TP_046030_20180810_20180810_01_RT_b1.tif
  2.  
  3. gdalwarp --config GDAL_CACHEMAX 512 -wm 4096 -nomd LE07_L1TP_046030_20180810_20180810_01_RT_b3.tif LE07_L1TP_046030_20180810_20180810_01_RT_b2.tif LE07_L1TP_046030_20180810_20180810_01_RT_b1.tif merged.tif
  4.  
  5. Size is 9930, 9315
  6. Coordinate System is:
  7. PROJCS["Albers",
  8. GEOGCS["NAD83",
  9. DATUM["North_American_Datum_1983",
  10. SPHEROID["GRS 1980",6378137,298.2572221010042,
  11. AUTHORITY["EPSG","7019"]],
  12. AUTHORITY["EPSG","6269"]],
  13. PRIMEM["Greenwich",0],
  14. UNIT["degree",0.0174532925199433],
  15. AUTHORITY["EPSG","4269"]],
  16. PROJECTION["Albers_Conic_Equal_Area"],
  17. PARAMETER["standard_parallel_1",29.5],
  18. PARAMETER["standard_parallel_2",45.5],
  19. PARAMETER["latitude_of_center",23],
  20. PARAMETER["longitude_of_center",-96],
  21. PARAMETER["false_easting",0],
  22. PARAMETER["false_northing",0],
  23. UNIT["metre",1,
  24. AUTHORITY["EPSG","9001"]]]
  25. Origin = (-2336089.094018519900000,2701776.184199890100000)
  26. Pixel Size = (30.000000000000000,-30.000000000000000)
  27. Metadata:
  28. AREA_OR_POINT=Area
  29. Image Structure Metadata:
  30. INTERLEAVE=PIXEL
  31. Corner Coordinates:
  32. Upper Left (-2336089.094, 2701776.184) (125d42'39.19"W, 43d59'36.72"N)
  33. Lower Left (-2336089.094, 2422326.184) (124d40'18.81"W, 41d36'34.34"N)
  34. Upper Right (-2038189.094, 2701776.184) (122d 7'21.46"W, 44d46' 3.96"N)
  35. Lower Right (-2038189.094, 2422326.184) (121d11'45.22"W, 42d21'15.67"N)
  36. Center (-2187139.094, 2562051.184) (123d25'35.42"W, 43d11'34.14"N)
  37. Band 1 Block=9930x1 Type=Byte, ColorInterp=Red
  38. Computed Min/Max=0.000,255.000
  39. Minimum=0.000, Maximum=255.000, Mean=27.268, StdDev=43.782
  40. Metadata:
  41. STATISTICS_MAXIMUM=255
  42. STATISTICS_MEAN=27.267951614063
  43. STATISTICS_MINIMUM=0
  44. STATISTICS_STDDEV=43.781663272236
  45. Band 2 Block=9930x1 Type=Byte, ColorInterp=Green
  46. Computed Min/Max=0.000,0.000
  47. Minimum=0.000, Maximum=0.000, Mean=0.000, StdDev=0.000
  48. Metadata:
  49. STATISTICS_MAXIMUM=0
  50. STATISTICS_MEAN=0
  51. STATISTICS_MINIMUM=0
  52. STATISTICS_STDDEV=0
  53. Band 3 Block=9930x1 Type=Byte, ColorInterp=Blue
  54. Computed Min/Max=0.000,0.000
  55. Minimum=0.000, Maximum=0.000, Mean=0.000, StdDev=0.000
  56. Metadata:
  57. STATISTICS_MAXIMUM=0
  58. STATISTICS_MEAN=0
  59. STATISTICS_MINIMUM=0
  60. STATISTICS_STDDEV=0
  61.  
  62. gdal_merge.py -createonly -separate -co PHOTOMETRIC=RGB -o merged.tif redband.tif greenband.tif blueband.tif
  63.  
  64. gdalbuildvrt -separate merged.vrt redband.tif greenband.tif blueband.tif
  65.  
  66. gdal_translate merged.vrt merged.tif
Add Comment
Please, Sign In to add comment