Nothing fancy. Just a scratchboard for Open Source Geospatial manipulations. Involves (although not limited to) Linux, R, gdal, Quantum GIS, Geoserver etc.
Saturday, November 24, 2012
Tuesday, October 2, 2012
.htaccess redirect
To redirect from abc.com to blog.abc.com, create a .htaccess at the root directory of abc.com with the following line in it :
Redirect /index.html http://blog.abc.com
Redirect /index.html http://blog.abc.com
Sunday, September 2, 2012
Tuesday, July 31, 2012
Changing system locale in R for locale dependent time string readings
lct <- Sys.getlocale("LC_TIME")
lct
[1] "French_Canada.1252"
strptime(" 27 Jun 2011 19:57:18","%d %b %Y %H:%M:%S") #Does not work
[1] NA
Sys.setlocale("LC_TIME", "C") #Change the locale to C
[1] "C"
strptime(" 27 Jun 2011 19:57:18","%d %b %Y %H:%M:%S") #Now it works
[1] "2011-06-27 19:57:18"
Sys.setlocale("LC_TIME", lct)
[1] "French_Canada.1252"
lct
[1] "French_Canada.1252"
strptime(" 27 Jun 2011 19:57:18","%d %b %Y %H:%M:%S") #Does not work
[1] NA
Sys.setlocale("LC_TIME", "C") #Change the locale to C
[1] "C"
strptime(" 27 Jun 2011 19:57:18","%d %b %Y %H:%M:%S") #Now it works
[1] "2011-06-27 19:57:18"
Sys.setlocale("LC_TIME", lct)
[1] "French_Canada.1252"
Sunday, July 29, 2012
Debugging R : Catching warnings
withCallingHandlers(HL<-IDP_Read_Hydrolight512_Mfile(infile), warning=function(c) recover())
Accessing the contents of the special argument "..." in R
names(match.call())
also try ..1, ..2 etc
also try
dots <-match .call=".call" expand.dots="F)$...<!-----">-match>
also try ..1, ..2 etc
also try
dots <-match .call=".call" expand.dots="F)$...<!-----">-match>
Friday, July 27, 2012
Multiple Y-axis in a R plot
Good and simple tutorial :
http://www.r-bloggers.com/multiple-y-axis-in-a-r-plot/
Subscribe to:
Posts (Atom)