Advertisement
Guest User

Untitled

a guest
Jul 18th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. Building internal Index for 1 tile(s) ... finished
  2. Filename: test_sum.vrt
  3. File Size: 1178083x2179667x1
  4. Pixel Size: 0.780877 x -0.780877
  5. UL:(10841319.553138,2329047.665115) LR:(11761257.511933,626995.763142)
  6. tileWidth: 2048
  7. tileHeight: 2048
  8. countTilesX: 576
  9. countTilesY: 1065
  10. overlap: 0
  11. Killed
  12.  
  13. mkdir pyramid
  14. gdal_retile.py -v -r bilinear -levels 5 -ps 2048 2048 -co "TILED=YES" -co "COMPRESS=JPEG" -targetDir pyramid test_sum.vrt
  15.  
  16. <VRTDataset rasterXSize="1178083" rasterYSize="2179667">
  17. <SRS>...</SRS>
  18. <GeoTransform>...</GeoTransform>
  19. <VRTRasterBand dataType="Byte" band="1" subClass="VRTDerivedRasterBand">
  20. <PixelFunctionType>max</PixelFunctionType>
  21. <PixelFunctionLanguage>Python</PixelFunctionLanguage>
  22. <PixelFunctionCode><![CDATA[
  23. import numpy as np
  24. def max(in_ar, out_ar, xoff, yoff, xsize, ysize, raster_xsize, raster_ysize, buf_radius, gt, **kwargs):
  25. np.round_(np.clip(np.max(in_ar, axis = 0),0,255), out = out_ar)
  26. ]]>
  27. </PixelFunctionCode>
  28. <ColorInterp>Gray</ColorInterp>
  29. <SimpleSource>...</SimpleSource>
  30. ...
  31. </VRTRasterBand>
  32. </VRTDataset>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement