[R] Rgdal package - get information
    Michael Sumner 
    mdsumner at gmail.com
       
    Wed Mar 28 02:47:06 CEST 2012
    
    
  
There is a mailing list R-Sig-Geo which is more appropriate for
questions about the rgdal and related packages.
If by "read the information GDType" you mean to get that "Int16"
description you can get it by delving into the attributes of the
GDALinfo return value, for example:
f <- system.file("pictures/erdas_spnad83.tif", package = "rgdal")[1]
attr(GDALinfo(f), "df")["GDType"]
  GDType
1   Byte
In your case that would be
attr(GDALinfo("MOD13Q1.A2001049.h13v11.005.2007002215512.250m_16_days_EVI.tif"),
"df")["GDType"]
If you just mean to read the data into R, then use readGDAL from the
rgdal package.  Extensions to this support that simplify some matters
are available in the raster package.
Cheers, Mike.
On Wed, Mar 28, 2012 at 3:40 AM, julio cesar oliveira <oliveirajc at ufv.br> wrote:
>>
>> Hi,
>>
>> I used
>> GDALinfo("MOD13Q1.A2001049.h13v11.005.2007002215512.250m_16_days_EVI.tif")  and
>> got the results:
>>
>> rows        10
>> columns     11
>> bands       1
>> origin.x        150701.4
>> origin.y        7744897
>> res.x       250
>> res.y       250
>> ysign       -1
>> oblique.x   0
>> oblique.y   0
>> driver      GTiff
>> projection  +proj=utm +zone=23 +south +datum=WGS84 +units=m +no_defs
>> file
>>  /MOD13Q1.A2001049.h13v11.005.2007002215512.250m_16_days_EVI.tif
>> apparent band summary:
>>   *GDType*   Bmin  Bmax Bmean Bsd hasNoDataValue NoDataValue
>> 1  *Int16* -32768 32767     0   0          FALSE           0
>> Metadata:
>> AREA_OR_POINT=Point
>> TIFFTAG_SOFTWARE=MODIS Reprojection Tool  v4.1 March 2009
>>
>>
>>
>> *How to read the information GDType?*
>>
>
> Thanks,
>
> julio
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
-- 
Michael Sumner
Institute for Marine and Antarctic Studies, University of Tasmania
Hobart, Australia
e-mail: mdsumner at gmail.com
    
    
More information about the R-help
mailing list