http://www.statmethods.net
http://graphpad.com/quickcalcs/posttestintro.cfm
Nothing fancy. Just a scratchboard for Open Source Geospatial manipulations. Involves (although not limited to) Linux, R, gdal, Quantum GIS, Geoserver etc.
Monday, December 13, 2010
Friday, December 3, 2010
Line to polygon conversion in GRASS
http://osgeo-org.1803224.n2.nabble.com/converting-lines-to-polygons-td5557002.html
v.in.ogr -o dsn=C:\path\to\shapefile\or\dxf.file output=circles1 type=line
v.clean input=circles1 output=circles2 tool=snap,break,rmdupl thresh=0.2,0,0
v.type input=circles2 output=circles3 type=line,boundary
v.centroids input=circles3 output=circles4 option=add
Be sure to play with the treshold parameter of v.clean
v.in.ogr -o dsn=C:\path\to\shapefile\or\dxf.file output=circles1 type=line
v.clean input=circles1 output=circles2 tool=snap,break,rmdupl thresh=0.2,0,0
v.type input=circles2 output=circles3 type=line,boundary
v.centroids input=circles3 output=circles4 option=add
Be sure to play with the treshold parameter of v.clean
Tuesday, November 16, 2010
Launching linux programs with a specific locale
To launch a program in Linux with a different locale, use the syntax :
LANG=en_US.UTF-8 R
if it does not work, use
LANGUAGE=en_US.utf8 R
This command launches R with the en_US.UTF-8 locale.
LANG=en_US.UTF-8 R
if it does not work, use
LANGUAGE=en_US.utf8 R
This command launches R with the en_US.UTF-8 locale.
Friday, October 22, 2010
Subversion in Debian server/Ubuntu client
#In the debian server :
#Create an empty data repository
cd /data/aaworks/
svnadmin create R_repository
#Import already existing source files into it
svn import SeaWiFS_bio/Rfiles/Ekumen_R/ file:///data/aaworks/R_repository/Ekumen_R/
#List the imported files
svn list file:///data/aaworks/R_repository/Ekumen_R
#Create a working directory and checkout
cd ~
mkdir Ekumen_R/
svn checkout file:///data/aaworks/R_repository/Ekumen_R
cd Ekumen_R/
svn list
#After modifiying a source file, one can commit :
svn commit
#You can checkout files in the ubuntu client through ssh :
svn checkout svn+ssh://ekumen/data/aaworks/R_repository/Ekumen_R
#Create an empty data repository
cd /data/aaworks/
svnadmin create R_repository
#Import already existing source files into it
svn import SeaWiFS_bio/Rfiles/Ekumen_R/ file:///data/aaworks/R_repository/Ekumen_R/
#List the imported files
svn list file:///data/aaworks/R_repository/Ekumen_R
#Create a working directory and checkout
cd ~
mkdir Ekumen_R/
svn checkout file:///data/aaworks/R_repository/Ekumen_R
cd Ekumen_R/
svn list
#After modifiying a source file, one can commit :
svn commit
#You can checkout files in the ubuntu client through ssh :
svn checkout svn+ssh://ekumen/data/aaworks/R_repository/Ekumen_R
Friday, October 1, 2010
Julian date conversion in R
Convert the Julian day into Date format
strptime("180", "%j")
or
strptime("1998249", "%Y%j")
[1] "1998-09-06"
strptime("180", "%j")
or
strptime("1998249", "%Y%j")
[1] "1998-09-06"
Friday, September 24, 2010
Compiling Orfeo on Ubuntu Lucid
For OTB, install the following ubuntu packages :
libfltk1.1-dev libcurl3-dev libfftw3-dev libgdal1-1.7.0 mercurial fluid cmake-curses-gui libglu1-mesa-dev libgeotiff-dev uuid-dev libexpat1-dev
libfltk1.1-dev libcurl3-dev libfftw3-dev libgdal1-1.7.0 mercurial fluid cmake-curses-gui libglu1-mesa-dev libgeotiff-dev uuid-dev libexpat1-dev
Thursday, September 23, 2010
Subscribe to:
Posts (Atom)