Problems Plotting GeoTIFF

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Problems Plotting GeoTIFF

Rodrigo Aluizio
Hi SIG List. I recently installed the new version of R (2.13.1, updated my
packages and checked the built). After that, I needed "replot" some maps I
had. Well, these maps were ok when plotted using the previous version of R
(2.13.0), but when I ran the same script in the new version the image
quality just get really low, almost incomprehensive (sometimes it doesn't
even appear). I would like to ask you, if this problem is just mine, or if
it's due to some kind of incompatibility between the new R release and some
of the packages I'm using? And, if the problem is local, how can I fix it?
Should I go back to R 2.13.0?

 

Thank you for the attention, bellow is a link to an example of the actual
final output of the image {sp} function (for a SpatialGridDataFrame).

P.s.: The GeoTIFF was imported using the readGDAL {rgdal} function.

 

http://dl.dropbox.com/u/2613625/BaciaPotiguarGE.png

 

sessionInfo()

R version 2.13.1 (2011-07-08)

Platform: x86_64-pc-mingw32/x64 (64-bit)

 

locale:

[1] LC_COLLATE=Portuguese_Brazil.1252

[2] LC_CTYPE=Portuguese_Brazil.1252  

[3] LC_MONETARY=Portuguese_Brazil.1252

[4] LC_NUMERIC=C                      

[5] LC_TIME=Portuguese_Brazil.1252    

 

attached base packages:

[1] grDevices datasets  splines   graphics  stats    

[6] tcltk     utils     methods   base    

 

other attached packages:

[1] rgdal_0.7-1     maptools_0.8-9  lattice_0.19-30

[4] sp_0.9-83       foreign_0.8-44  mapdata_2.1-4  

 [7] maps_2.1-6      RODBC_1.3-2     svSocket_0.9-51

[10] TinnR_1.0.3     R2HTML_2.2      Hmisc_3.8-3    

[13] survival_2.36-9

 

loaded via a namespace (and not attached):

[1] cluster_1.14.0 grid_2.13.1    svMisc_0.9-61

[4] tools_2.13.1  

 

-------------------------------------------------------------------

MSc.  <mailto:[hidden email]> Rodrigo Aluizio

 


        [[alternative HTML version deleted]]

_______________________________________________
R-sig-Geo mailing list
[hidden email]
https://stat.ethz.ch/mailman/listinfo/r-sig-geo
Reply | Threaded
Open this post in threaded view
|

Re: Problems Plotting GeoTIFF

Roman Luštrik
I'm afraid that without seeing the script(s), it will be hard to pinpoint
the problem.

Cheers,
Roman



On Sat, Jul 16, 2011 at 2:55 PM, Rodrigo Aluizio <[hidden email]>wrote:

> Hi SIG List. I recently installed the new version of R (2.13.1, updated my
> packages and checked the built). After that, I needed "replot" some maps I
> had. Well, these maps were ok when plotted using the previous version of R
> (2.13.0), but when I ran the same script in the new version the image
> quality just get really low, almost incomprehensive (sometimes it doesn't
> even appear). I would like to ask you, if this problem is just mine, or if
> it's due to some kind of incompatibility between the new R release and some
> of the packages I'm using? And, if the problem is local, how can I fix it?
> Should I go back to R 2.13.0?
>
>
>
> Thank you for the attention, bellow is a link to an example of the actual
> final output of the image {sp} function (for a SpatialGridDataFrame).
>
> P.s.: The GeoTIFF was imported using the readGDAL {rgdal} function.
>
>
>
> http://dl.dropbox.com/u/2613625/BaciaPotiguarGE.png
>
>
>
> sessionInfo()
>
> R version 2.13.1 (2011-07-08)
>
> Platform: x86_64-pc-mingw32/x64 (64-bit)
>
>
>
> locale:
>
> [1] LC_COLLATE=Portuguese_Brazil.1252
>
> [2] LC_CTYPE=Portuguese_Brazil.1252
>
> [3] LC_MONETARY=Portuguese_Brazil.1252
>
> [4] LC_NUMERIC=C
>
> [5] LC_TIME=Portuguese_Brazil.1252
>
>
>
> attached base packages:
>
> [1] grDevices datasets  splines   graphics  stats
>
> [6] tcltk     utils     methods   base
>
>
>
> other attached packages:
>
> [1] rgdal_0.7-1     maptools_0.8-9  lattice_0.19-30
>
> [4] sp_0.9-83       foreign_0.8-44  mapdata_2.1-4
>
>  [7] maps_2.1-6      RODBC_1.3-2     svSocket_0.9-51
>
> [10] TinnR_1.0.3     R2HTML_2.2      Hmisc_3.8-3
>
> [13] survival_2.36-9
>
>
>
> loaded via a namespace (and not attached):
>
> [1] cluster_1.14.0 grid_2.13.1    svMisc_0.9-61
>
> [4] tools_2.13.1
>
>
>
> -------------------------------------------------------------------
>
> MSc.  <mailto:[hidden email]> Rodrigo Aluizio
>
>
>
>
>        [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-Geo mailing list
> [hidden email]
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>



--
In God we trust, all others bring data.

        [[alternative HTML version deleted]]

_______________________________________________
R-sig-Geo mailing list
[hidden email]
https://stat.ethz.ch/mailman/listinfo/r-sig-geo
Reply | Threaded
Open this post in threaded view
|

Re: Problems Plotting GeoTIFF

edzer
Although I can't reproduce the problem on my Ubuntu laptop,

https://stat.ethz.ch/pipermail/r-help/2011-July/283568.html

suggests 2.13.1 introduced a problem with image(), which is out of "our"
hands (ie. cannot be fixed by the developers of spatial packages)

Let me know if you see this differently,

On 07/16/2011 03:02 PM, Roman Luštrik wrote:

> I'm afraid that without seeing the script(s), it will be hard to pinpoint
> the problem.
>
> Cheers,
> Roman
>
>
>
> On Sat, Jul 16, 2011 at 2:55 PM, Rodrigo Aluizio <[hidden email]>wrote:
>
>> Hi SIG List. I recently installed the new version of R (2.13.1, updated my
>> packages and checked the built). After that, I needed "replot" some maps I
>> had. Well, these maps were ok when plotted using the previous version of R
>> (2.13.0), but when I ran the same script in the new version the image
>> quality just get really low, almost incomprehensive (sometimes it doesn't
>> even appear). I would like to ask you, if this problem is just mine, or if
>> it's due to some kind of incompatibility between the new R release and some
>> of the packages I'm using? And, if the problem is local, how can I fix it?
>> Should I go back to R 2.13.0?
>>
>>
>>
>> Thank you for the attention, bellow is a link to an example of the actual
>> final output of the image {sp} function (for a SpatialGridDataFrame).
>>
>> P.s.: The GeoTIFF was imported using the readGDAL {rgdal} function.
>>
>>
>>
>> http://dl.dropbox.com/u/2613625/BaciaPotiguarGE.png
>>
>>
>>
>> sessionInfo()
>>
>> R version 2.13.1 (2011-07-08)
>>
>> Platform: x86_64-pc-mingw32/x64 (64-bit)
>>
>>
>>
>> locale:
>>
>> [1] LC_COLLATE=Portuguese_Brazil.1252
>>
>> [2] LC_CTYPE=Portuguese_Brazil.1252
>>
>> [3] LC_MONETARY=Portuguese_Brazil.1252
>>
>> [4] LC_NUMERIC=C
>>
>> [5] LC_TIME=Portuguese_Brazil.1252
>>
>>
>>
>> attached base packages:
>>
>> [1] grDevices datasets  splines   graphics  stats
>>
>> [6] tcltk     utils     methods   base
>>
>>
>>
>> other attached packages:
>>
>> [1] rgdal_0.7-1     maptools_0.8-9  lattice_0.19-30
>>
>> [4] sp_0.9-83       foreign_0.8-44  mapdata_2.1-4
>>
>>  [7] maps_2.1-6      RODBC_1.3-2     svSocket_0.9-51
>>
>> [10] TinnR_1.0.3     R2HTML_2.2      Hmisc_3.8-3
>>
>> [13] survival_2.36-9
>>
>>
>>
>> loaded via a namespace (and not attached):
>>
>> [1] cluster_1.14.0 grid_2.13.1    svMisc_0.9-61
>>
>> [4] tools_2.13.1
>>
>>
>>
>> -------------------------------------------------------------------
>>
>> MSc.  <mailto:[hidden email]> Rodrigo Aluizio
>>
>>
>>
>>
>>        [[alternative HTML version deleted]]
>>
>> _______________________________________________
>> R-sig-Geo mailing list
>> [hidden email]
>> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>>
>
>
>

--
Edzer Pebesma
Institute for Geoinformatics (ifgi), University of Münster
Weseler Straße 253, 48151 Münster, Germany. Phone: +49 251
8333081, Fax: +49 251 8339763  http://ifgi.uni-muenster.de
http://www.52north.org/geostatistics      [hidden email]

_______________________________________________
R-sig-Geo mailing list
[hidden email]
https://stat.ethz.ch/mailman/listinfo/r-sig-geo
Reply | Threaded
Open this post in threaded view
|

Re: Problems Plotting GeoTIFF

Robert Hijmans
In reply to this post by Rodrigo Aluizio
>when I ran the same script in the new version the image
>quality just get really low, almost incomprehensive (sometimes it doesn't
>even appear). I would like to ask you, if this problem is just mine, or if
>it's due to some kind of incompatibility between the new R release and some
>of the packages I'm using?

It is a general problem; see the discussion here:

http://r-sig-geo.2731867.n2.nabble.com/Long-time-listener-first-time-caller-td6585078.html


>Should I go back to R 2.13.0?

I think so
Reply | Threaded
Open this post in threaded view
|

Re: Problems Plotting GeoTIFF

Rodrigo Aluizio
In reply to this post by Rodrigo Aluizio
Ok Thank you for the fast return, I'm getting back to 2.13.0 then.

Rodrigo.

2011/7/16 Rodrigo Aluizio <[hidden email]>

> Hi SIG List. I recently installed the new version of R (2.13.1, updated my
> packages and checked the built). After that, I needed “replot” some maps I
> had. Well, these maps were ok when plotted using the previous version of R
> (2.13.0), but when I ran the same script in the new version the image
> quality just get really low, almost incomprehensive (sometimes it doesn’t
> even appear). I would like to ask you, if this problem is just mine, or if
> it’s due to some kind of incompatibility between the new R release and some
> of the packages I’m using? And, if the problem is local, how can I fix it?
> Should I go back to R 2.13.0?****
>
> ** **
>
> Thank you for the attention, bellow is a link to an example of the actual
> final output of the image {sp} function (for a SpatialGridDataFrame).****
>
> P.s.: The GeoTIFF was imported using the readGDAL {rgdal} function.****
>
> ** **
>
> http://dl.dropbox.com/u/2613625/BaciaPotiguarGE.png****
>
> ** **
>
> sessionInfo()****
>
> R version 2.13.1 (2011-07-08)****
>
> Platform: x86_64-pc-mingw32/x64 (64-bit)****
>
> ** **
>
> locale:****
>
> [1] LC_COLLATE=Portuguese_Brazil.1252 ****
>
> [2] LC_CTYPE=Portuguese_Brazil.1252   ****
>
> [3] LC_MONETARY=Portuguese_Brazil.1252****
>
> [4] LC_NUMERIC=C                      ****
>
> [5] LC_TIME=Portuguese_Brazil.1252    ****
>
> ** **
>
> attached base packages:****
>
> [1] grDevices datasets  splines   graphics  stats    ****
>
> [6] tcltk     utils     methods   base     ****
>
> ** **
>
> other attached packages:****
>
> [1] rgdal_0.7-1     maptools_0.8-9  lattice_0.19-30****
>
> [4] sp_0.9-83       foreign_0.8-44  mapdata_2.1-4  ****
>
>  [7] maps_2.1-6      RODBC_1.3-2     svSocket_0.9-51****
>
> [10] TinnR_1.0.3     R2HTML_2.2      Hmisc_3.8-3    ****
>
> [13] survival_2.36-9****
>
> ** **
>
> loaded via a namespace (and not attached):****
>
> [1] cluster_1.14.0 grid_2.13.1    svMisc_0.9-61 ****
>
> [4] tools_2.13.1  ****
>
> ** **
>
> -------------------------------------------------------------------****
>
> *MSc. Rodrigo Aluizio <[hidden email]>*
>
> ** **
>


--
*MSc. *Rodrigo Aluizio <[hidden email]>

        [[alternative HTML version deleted]]


_______________________________________________
R-sig-Geo mailing list
[hidden email]
https://stat.ethz.ch/mailman/listinfo/r-sig-geo
Reply | Threaded
Open this post in threaded view
|

Re: Problems Plotting GeoTIFF

Karl Ove Hufthammer
In reply to this post by Robert Hijmans
Robert Hijmans wrote:

>>when I ran the same script in the new version the image
>>quality just get really low, almost incomprehensive (sometimes it doesn't
>>even appear). I would like to ask you, if this problem is just mine, or if
>>it's due to some kind of incompatibility between the new R release and
>>some of the packages I'm using?
>
> It is a general problem; see the discussion here:
>
> http://r-sig-geo.2731867.n2.nabble.com/Long-time-listener-first-time-caller-td6585078.html

FYI, this is now fixed:
http://developer.r-project.org/blosxom.cgi/R-devel/2011/07/19#c2011-07-19

Quote:
  The fix for PR#14583 caused inconsistent behaviour in other areas,
  e.g. PR#14628, extra lines appearing in image displays, and uneven
  bases on histograms PR#14632.

--
Karl Ove Hufthammer

_______________________________________________
R-sig-Geo mailing list
[hidden email]
https://stat.ethz.ch/mailman/listinfo/r-sig-geo
Reply | Threaded
Open this post in threaded view
|

Re: Problems Plotting GeoTIFF

Roger Bivand
Administrator
In reply to this post by edzer
On Sat, 16 Jul 2011, Edzer Pebesma wrote:

> Although I can't reproduce the problem on my Ubuntu laptop,
>
> https://stat.ethz.ch/pipermail/r-help/2011-July/283568.html
>
> suggests 2.13.1 introduced a problem with image(), which is out of "our"
> hands (ie. cannot be fixed by the developers of spatial packages)

Fixed in 2.13.1 patched (Windows):

https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=14628

Roger

>
> Let me know if you see this differently,
>
> On 07/16/2011 03:02 PM, Roman Luštrik wrote:
>> I'm afraid that without seeing the script(s), it will be hard to pinpoint
>> the problem.
>>
>> Cheers,
>> Roman
>>
>>
>>
>> On Sat, Jul 16, 2011 at 2:55 PM, Rodrigo Aluizio <[hidden email]>wrote:
>>
>>> Hi SIG List. I recently installed the new version of R (2.13.1, updated my
>>> packages and checked the built). After that, I needed "replot" some maps I
>>> had. Well, these maps were ok when plotted using the previous version of R
>>> (2.13.0), but when I ran the same script in the new version the image
>>> quality just get really low, almost incomprehensive (sometimes it doesn't
>>> even appear). I would like to ask you, if this problem is just mine, or if
>>> it's due to some kind of incompatibility between the new R release and some
>>> of the packages I'm using? And, if the problem is local, how can I fix it?
>>> Should I go back to R 2.13.0?
>>>
>>>
>>>
>>> Thank you for the attention, bellow is a link to an example of the actual
>>> final output of the image {sp} function (for a SpatialGridDataFrame).
>>>
>>> P.s.: The GeoTIFF was imported using the readGDAL {rgdal} function.
>>>
>>>
>>>
>>> http://dl.dropbox.com/u/2613625/BaciaPotiguarGE.png
>>>
>>>
>>>
>>> sessionInfo()
>>>
>>> R version 2.13.1 (2011-07-08)
>>>
>>> Platform: x86_64-pc-mingw32/x64 (64-bit)
>>>
>>>
>>>
>>> locale:
>>>
>>> [1] LC_COLLATE=Portuguese_Brazil.1252
>>>
>>> [2] LC_CTYPE=Portuguese_Brazil.1252
>>>
>>> [3] LC_MONETARY=Portuguese_Brazil.1252
>>>
>>> [4] LC_NUMERIC=C
>>>
>>> [5] LC_TIME=Portuguese_Brazil.1252
>>>
>>>
>>>
>>> attached base packages:
>>>
>>> [1] grDevices datasets  splines   graphics  stats
>>>
>>> [6] tcltk     utils     methods   base
>>>
>>>
>>>
>>> other attached packages:
>>>
>>> [1] rgdal_0.7-1     maptools_0.8-9  lattice_0.19-30
>>>
>>> [4] sp_0.9-83       foreign_0.8-44  mapdata_2.1-4
>>>
>>>  [7] maps_2.1-6      RODBC_1.3-2     svSocket_0.9-51
>>>
>>> [10] TinnR_1.0.3     R2HTML_2.2      Hmisc_3.8-3
>>>
>>> [13] survival_2.36-9
>>>
>>>
>>>
>>> loaded via a namespace (and not attached):
>>>
>>> [1] cluster_1.14.0 grid_2.13.1    svMisc_0.9-61
>>>
>>> [4] tools_2.13.1
>>>
>>>
>>>
>>> -------------------------------------------------------------------
>>>
>>> MSc.  <mailto:[hidden email]> Rodrigo Aluizio
>>>
>>>
>>>
>>>
>>>        [[alternative HTML version deleted]]
>>>
>>> _______________________________________________
>>> R-sig-Geo mailing list
>>> [hidden email]
>>> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>>>
>>
>>
>>
>
>
--
Roger Bivand
Department of Economics, NHH Norwegian School of Economics,
Helleveien 30, N-5045 Bergen, Norway.
voice: +47 55 95 93 55; fax +47 55 95 95 43
e-mail: [hidden email]

_______________________________________________
R-sig-Geo mailing list
[hidden email]
https://stat.ethz.ch/mailman/listinfo/r-sig-geo
Roger Bivand
Department of Economics
Norwegian School of Economics
Helleveien 30
N-5045 Bergen, Norway