User Tools

Site Tools


wiki:gdalpktools_kenya

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
wiki:gdalpktools_kenya [2018/08/17 13:14]
127.0.0.1 external edit
wiki:gdalpktools_kenya [2019/09/26 18:58] (current)
ost4sem_giu [In the Ubuntu VM]
Line 1: Line 1:
 ====== Use GDAL/OGR and PKTOOLS for raster/​vector operations ====== ====== Use GDAL/OGR and PKTOOLS for raster/​vector operations ======
  
 +==== Enter in the AWS Ubuntu Machine ​ ====
 \\ \\
-Data Directory: /​home/​user/​ost4sem/​exercise/​geodata\_SDM/​ \\ 
-Script: /​home/​user/​ost4sem/​exercise/​geodata_SDM/​gdal\_pktools.sh \\ 
  
-  ​cd /home/​user/​ost4sem/​exercise/​geodata_SDM+On **Linux or Mac**: 
 +   
 +  wget -N http://​www.spatial-ecology.net/​ost4sem/​exercise/​hydromatics-workshop.key 
 +  # Mac user can use this 
 +  # curl -o hydromatics-workshop.key ​  ​http://www.spatial-ecology.net/​ost4sem/​exercise/​hydromatics-workshop.key 
 +  chmod 600 hydromatics-workshop.key 
 +  # login using the ssh. Change ​user???? in accordance to your user ID  
 +  ssh -i hydromatics-workshop.key user?????​@hydromatics-workshop.cuahsi.org  
 + 
 + 
 +On **Windows**:​\\ 
 + 
 +Download [[ https://​www.puttygen.com/​ | PuTTYgen ]] - copy the key in a text file and save as hydromatics-workshop.key - and import the [[  http://​www.spatial-ecology.net/​ost4sem/​exercise/​hydromatics-workshop.key | hydromatics-workshop.key ]] file.\\ 
 +Use [[ https://​putty.org | PuTTY ]]  to ssh to user???​@hydromatics-workshop.cuahsi.org. 
 + 
 +==== In the Ubuntu VM ==== 
 +Data Directory: $HOME/​ost4sem/​exercise/​geodata\_SDM/​ \\ 
 + 
 + 
 +  cd $HOME/​ost4sem/​exercise/​geodata_SDM
   wget -N http://​spatial-ecology.net/​ost4sem/​exercise/​geodata_SDM/​gdal-ogr-pktools.sh   wget -N http://​spatial-ecology.net/​ost4sem/​exercise/​geodata_SDM/​gdal-ogr-pktools.sh
-  rstudio ​/home/user/​ost4sem/​exercise/​geodata_SDM/​gdal-ogr-pktools.sh & +  rstudio ​$HOME/​ost4sem/​exercise/​geodata_SDM/​gdal-ogr-pktools.sh &
  
 ===== GDAL Commands ===== ===== GDAL Commands =====
Line 14: Line 32:
  
 <code bash> <code bash>
-cd /home/user/​ost4sem/​exercise/​geodata_SDM+cd $HOME/​ost4sem/​exercise/​geodata_SDM
 ls */​*.tif ​ # list all the files with the extension .tif ls */​*.tif ​ # list all the files with the extension .tif
 gdalinfo vegetation/​ETmean08-11.tif gdalinfo vegetation/​ETmean08-11.tif
Line 39: Line 57:
   Float32, CFloat32 ​     -3.4E38 ​          ​3.4E38 ​       155M   Float32, CFloat32 ​     -3.4E38 ​          ​3.4E38 ​       155M
   Float64, CFloat64 ​   -1.79E308 ​        ​1.79E308 ​       309M   Float64, CFloat64 ​   -1.79E308 ​        ​1.79E308 ​       309M
 +
  
 === Understand NoData Value === === Understand NoData Value ===
Line 49: Line 68:
 </​code>​ </​code>​
  
 +  ​
 === Calculate minimum and maximum values for all the images === === Calculate minimum and maximum values for all the images ===
 <code bash> <code bash>
wiki/gdalpktools_kenya.1534511646.txt.gz · Last modified: 2018/08/17 13:14 by 127.0.0.1