# HG changeset patch
# User ecology
# Date 1551199809 18000
# Node ID c59d7204b3ced3dc7f18a00e1b8fca6a030f5cc2
planemo upload for repository https://github.com/galaxyecology/tools-ecology/tools/gdal commit b964e8f7d7bb076d63a1c7bdfbbdba0f9074d517
diff -r 000000000000 -r c59d7204b3ce gdal_macros.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/gdal_macros.xml Tue Feb 26 11:50:09 2019 -0500
@@ -0,0 +1,164 @@
+
+ 2.4.0
+
+
+ gdal
+ geos
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ @Manual{,
+ title = {{GDAL/OGR} Geospatial Data Abstraction software Library},
+ author = {{GDAL/OGR contributors}},
+ organization = {Open Source Geospatial Foundation},
+ year = {2018},
+ url = {http://gdal.org},
+ }
+
+
+
+
diff -r 000000000000 -r c59d7204b3ce gdalinfo.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/gdalinfo.xml Tue Feb 26 11:50:09 2019 -0500
@@ -0,0 +1,150 @@
+
+ lists information about a raster dataset
+
+ gdal_macros.xml
+
+
+ '$outputJson';
+ #if $subdataset=='subd_y'
+ cat '$outputJson' | grep -A 1 "\"SUBDATASET_._NAME\":\".*\"," | cut -d "\"" -f4- | sed 's/..$//' | sed 's/\t//' | sed -e 'N; s/\n/\t/' > Subdatasets.tabular
+ #end if
+ #else
+ > '$outputDefault';
+ #if $subdataset=='subd_y'
+ cat '$outputDefault' | grep -A 1 "SUBDATASET_._NAME=.*:.*$" | cut -d "=" -f 2 | sed 's/\t//' | sed -e 'N; s/\n/\t/' > Subdatasets.tabular
+ #end if
+ #end if
+ ]]>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ value.strip()
+
+
+
+
+
+
+
+ format == "default"
+
+
+ format == "json"
+
+
+ subdataset == "subd_y"
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff -r 000000000000 -r c59d7204b3ce test-data/stere.tif
Binary file test-data/stere.tif has changed
diff -r 000000000000 -r c59d7204b3ce test-data/stere_advanced_info.txt
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/stere_advanced_info.txt Tue Feb 26 11:50:09 2019 -0500
@@ -0,0 +1,79 @@
+Driver: GTiff/GeoTIFF
+Files: /tmp/tmpdWKpSn/files/000/dataset_1.dat
+ /tmp/tmpdWKpSn/files/000/dataset_1.dat.aux.xml
+Size is 273, 265
+Coordinate System is:
+PROJCS["unnamed",
+ GEOGCS["WGS 84",
+ DATUM["unknown",
+ SPHEROID["WGS84",6378137,298.257223563]],
+ PRIMEM["Greenwich",0],
+ UNIT["degree",0.0174532925199433]],
+ PROJECTION["Stereographic"],
+ PARAMETER["latitude_of_origin",71.4],
+ PARAMETER["central_meridian",28.9],
+ PARAMETER["scale_factor",1],
+ PARAMETER["false_easting",0],
+ PARAMETER["false_northing",0],
+ UNIT["metre",1,
+ AUTHORITY["EPSG","9001"]]]
+Origin = (-64455.359436834092776,72521.133364936860744)
+Pixel Size = (500.000000000000000,-500.000000000000000)
+Metadata:
+ AREA_OR_POINT=Area
+Image Structure Metadata:
+ INTERLEAVE=PIXEL
+Corner Coordinates:
+Upper Left ( -64455.359, 72521.133) ( 27d 1'39.57"E, 72d 2'27.45"N)
+Lower Left ( -64455.359, -59978.867) ( 27d 8'22.71"E, 70d51'14.56"N)
+Upper Right ( 72044.641, 72521.133) ( 30d59'33.46"E, 72d 2'19.42"N)
+Lower Right ( 72044.641, -59978.867) ( 30d52' 2.96"E, 70d51' 7.03"N)
+Center ( 3794.641, 6271.133) ( 29d 0'24.70"E, 71d27'22.22"N)
+Band 1 Block=273x10 Type=Byte, ColorInterp=Red
+ Min=38.000 Max=255.000
+ Minimum=38.000, Maximum=255.000, Mean=55.724, StdDev=24.243
+0...10...20...30...40...50...60...70...80...90...100 - done.
+ 256 buckets from -0.5 to 255.5:
+ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 97 756 3183 3769 3090 1830 1941 1604 1335 2161 3912 3621 4286 5892 7093 6602 4849 4004 2714 1442 559 237 212 138 193 105 108 90 51 132 60 63 40 80 59 54 61 106 59 66 59 86 72 57 64 31 28 57 42 41 92 138 81 31 39 95 103 86 170 119 185 91 108 127 105 152 45 101 63 97 97 57 74 20 78 50 60 94 87 32 122 83 69 57 67 88 51 51 77 60 32 26 63 38 40 18 20 56 13 33 6 21 14 10 20 40 7 31 17 0 25 21 40 36 23 10 32 11 23 25 0 17 21 18 11 28 0 10 6 17 0 34 24 10 10 5 9 10 5 0 31 5 5 14 21 5 16 21 15 12 14 0 5 10 22 5 10 10 10 13 11 3 6 10 20 29 13 16 11 0 5 12 8 10 0 0 10 27 6 3 0 0 10 0 5 23 0 5 0 0 0 10 0 6 0 10 0 5 10 23 0 0 21 0 10 0 0 16 0 0 0 0 15 2 0 0 0 151
+ Checksum=48927
+ Metadata:
+ dataType=1
+ name=L_645
+ ScaleRatio=0.203921568627
+ standard_name=surface_upwelling_spectral_radiance_in_air_emerging_from_sea_water
+ STATISTICS_MAXIMUM=255
+ STATISTICS_MEAN=55.723519248048
+ STATISTICS_MINIMUM=38
+ STATISTICS_STDDEV=24.242663554615
+Band 2 Block=273x10 Type=Byte, ColorInterp=Green
+ Min=77.000 Max=255.000
+ Minimum=77.000, Maximum=255.000, Mean=136.201, StdDev=29.298
+0...10...20...30...40...50...60...70...80...90...100 - done.
+ 256 buckets from -0.5 to 255.5:
+ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 37 27 178 821 914 862 507 415 398 526 647 758 623 488 510 532 509 409 385 423 294 476 404 426 414 546 390 455 280 368 344 284 302 261 336 358 213 395 291 230 330 314 599 637 577 946 884 755 690 755 808 679 826 921 833 673 626 805 593 746 653 879 961 856 863 891 1015 1292 1349 1287 1383 1716 1634 1540 1770 1543 1437 1578 1259 1149 1260 949 1217 1220 1050 877 997 724 809 573 684 777 583 608 494 586 360 255 211 207 180 27 55 52 12 52 10 20 21 5 44 25 30 40 36 10 10 30 25 25 21 16 5 15 14 7 0 26 5 0 0 5 11 0 5 27 0 16 0 10 49 26 6 15 5 16 18 0 15 0 8 31 0 15 0 10 0 3 0 0 5 21 5 24 6 6 19 0 4 0 36 12 5 11 21 27 45 23 437
+ Checksum=3855
+ Metadata:
+ dataType=1
+ name=L_555
+ ScaleRatio=0.227450980392
+ standard_name=surface_upwelling_spectral_radiance_in_air_emerging_from_sea_water
+ STATISTICS_MAXIMUM=255
+ STATISTICS_MEAN=136.20124403898
+ STATISTICS_MINIMUM=77
+ STATISTICS_STDDEV=29.297914270598
+Band 3 Block=273x10 Type=Byte, ColorInterp=Blue
+ Min=111.000 Max=255.000
+ Minimum=111.000, Maximum=255.000, Mean=171.703, StdDev=31.001
+0...10...20...30...40...50...60...70...80...90...100 - done.
+ 256 buckets from -0.5 to 255.5:
+ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 12 26 55 119 400 478 620 825 808 823 1163 998 843 1093 974 882 801 780 548 568 474 671 574 487 316 593 493 522 431 389 308 382 338 325 322 381 380 331 256 281 285 228 221 218 219 214 198 231 205 221 192 229 263 185 258 355 440 492 580 495 821 700 1104 794 980 1168 924 870 1091 935 998 1197 1257 1061 1082 1136 1395 1261 1239 1321 1492 1485 1135 1236 1120 1098 1026 1057 1197 970 1172 1107 1152 1073 852 934 764 663 678 481 518 523 390 437 196 173 103 65 65 45 25 62 46 22 22 10 24 11 5 24 14 9 12 23 25 26 15 6 0 20 16 0 11 24 26 10 15 0 17 33 31 16 14 48 343
+ Checksum=62386
+ Metadata:
+ dataType=1
+ name=L_469
+ ScaleRatio=0.329411764706
+ standard_name=surface_upwelling_spectral_radiance_in_air_emerging_from_sea_water
+ STATISTICS_MAXIMUM=255
+ STATISTICS_MEAN=171.70326905799
+ STATISTICS_MINIMUM=111
+ STATISTICS_STDDEV=31.000562281985
diff -r 000000000000 -r c59d7204b3ce test-data/stere_info.json
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/stere_info.json Tue Feb 26 11:50:09 2019 -0500
@@ -0,0 +1,133 @@
+{
+ "description":"\/tmp\/tmpKGvDAC\/files\/000\/dataset_1.dat",
+ "driverShortName":"GTiff",
+ "driverLongName":"GeoTIFF",
+ "files":[
+ "\/tmp\/tmpKGvDAC\/files\/000\/dataset_1.dat"
+ ],
+ "size":[
+ 273,
+ 265
+ ],
+ "coordinateSystem":{
+ "wkt":"PROJCS[\"unnamed\",\n GEOGCS[\"WGS 84\",\n DATUM[\"unknown\",\n SPHEROID[\"WGS84\",6378137,298.257223563]],\n PRIMEM[\"Greenwich\",0],\n UNIT[\"degree\",0.0174532925199433]],\n PROJECTION[\"Stereographic\"],\n PARAMETER[\"latitude_of_origin\",71.4],\n PARAMETER[\"central_meridian\",28.9],\n PARAMETER[\"scale_factor\",1],\n PARAMETER[\"false_easting\",0],\n PARAMETER[\"false_northing\",0],\n UNIT[\"metre\",1,\n AUTHORITY[\"EPSG\",\"9001\"]]]"
+ },
+ "geoTransform":[
+ -64455.3594368340927758,
+ 500.0,
+ 0.0,
+ 72521.1333649368607439,
+ 0.0,
+ -500.0
+ ],
+ "metadata":{
+ "":{
+ "AREA_OR_POINT":"Area"
+ },
+ "IMAGE_STRUCTURE":{
+ "INTERLEAVE":"PIXEL"
+ }
+ },
+ "cornerCoordinates":{
+ "upperLeft":[
+ -64455.359,
+ 72521.133
+ ],
+ "lowerLeft":[
+ -64455.359,
+ -59978.867
+ ],
+ "upperRight":[
+ 72044.641,
+ 72521.133
+ ],
+ "lowerRight":[
+ 72044.641,
+ -59978.867
+ ],
+ "center":[
+ 3794.641,
+ 6271.133
+ ]
+ },
+ "wgs84Extent":{
+ "type":"Polygon",
+ "coordinates":[
+ [
+ [
+ 27.0276591,
+ 72.0409591
+ ],
+ [
+ 27.1396419,
+ 70.8540458
+ ],
+ [
+ 30.9926275,
+ 72.0387266
+ ],
+ [
+ 30.867489,
+ 70.8519537
+ ],
+ [
+ 27.0276591,
+ 72.0409591
+ ]
+ ]
+ ]
+ },
+ "bands":[
+ {
+ "band":1,
+ "block":[
+ 273,
+ 10
+ ],
+ "type":"Byte",
+ "colorInterpretation":"Red",
+ "metadata":{
+ "":{
+ "dataType":"1",
+ "name":"L_645",
+ "ScaleRatio":"0.203921568627",
+ "standard_name":"surface_upwelling_spectral_radiance_in_air_emerging_from_sea_water"
+ }
+ }
+ },
+ {
+ "band":2,
+ "block":[
+ 273,
+ 10
+ ],
+ "type":"Byte",
+ "colorInterpretation":"Green",
+ "metadata":{
+ "":{
+ "dataType":"1",
+ "name":"L_555",
+ "ScaleRatio":"0.227450980392",
+ "standard_name":"surface_upwelling_spectral_radiance_in_air_emerging_from_sea_water"
+ }
+ }
+ },
+ {
+ "band":3,
+ "block":[
+ 273,
+ 10
+ ],
+ "type":"Byte",
+ "colorInterpretation":"Blue",
+ "metadata":{
+ "":{
+ "dataType":"1",
+ "name":"L_469",
+ "ScaleRatio":"0.329411764706",
+ "standard_name":"surface_upwelling_spectral_radiance_in_air_emerging_from_sea_water"
+ }
+ }
+ }
+ ]
+}
\ No newline at end of file