NCEAS / datateam-training

Training and reference materials for ADC and SASAP data team members
https://nceas.github.io/datateam-training/training/
Apache License 2.0
7 stars 22 forks source link

add more info on working with (geo)tif files #200

Closed laijasmine closed 3 years ago

laijasmine commented 4 years ago

Add some information on how to use the rgdal functions mentioned here to get the horizontal coord from tif files https://www.earthdatascience.org/courses/earth-analytics/lidar-raster-data-r/introduction-to-spatial-metadata-r/

 rgdal::GDALinfo("../visitor/Loranty/RU_ALN_TR1_FL007_RGB.tif")

rows        18258 
columns     17105 
bands       3 
lower left origin.x        2197389 
lower left origin.y        2446583 
res.x       0.0328462 
res.y       0.0328462 
ysign       -1 
oblique.x   0 
oblique.y   0 
driver      GTiff 
projection  +proj=aea +lat_0=56 +lon_0=100 +lat_1=50 +lat_2=70 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs 
file        ../visitor/Loranty/RU_ALN_TR1_FL007_RGB.tif 
apparent band summary:
   GDType hasNoDataValue NoDataValue blockSize1 blockSize2
1 Float32           TRUE    -3.4e+38          1      17105
2 Float32           TRUE    -3.4e+38          1      17105
3 Float32           TRUE    -3.4e+38          1      17105
apparent band statistics:
         Bmin Bmax Bmean Bsd
1 0.000000000  255   NaN NaN
2 0.004153079  255   NaN NaN
3 0.000000000  255   NaN NaN
Metadata:
AREA_OR_POINT=Area