m.neteler's picture

6 Comments

  1.  Advanced users may be interested in getting the development versions of GRASS 6 (version 6.5) and GRASS 7. This is only possible if you have installed the Apple Developer Tools on your machine, and the KingChaos frameworks required for the GRASS 6 binary (http://www.kyngchaos.com/software/frameworks). Once these are installed, get the GRASS source code (http://trac.osgeo.org/grass/wiki/DownloadSource) and open a terminal window.

    Source configuration can be initialized like this: (from the command line)

    export NAD2BIN=/Library/Frameworks/PROJ.framework/Programs/nad2bin

    ./configure \
    --without-motif --without-glw --without-odbc --without-cairo --without-readline --without-postgres \
    --with-opengl=aqua --enable-sysv --with-x --with-cxx \
    --with-freetype --enable-largefile --with-wxwidgets \
    --prefix=/Applications --enable-macosx-app --with-macosx-archs=i386 \
    --with-includes=/usr/include \
    --with-libs=/usr/lib \
    --with-proj-includes=/Library/Frameworks/PROJ.framework/unix/include \
    --with-proj-libs=/Library/Frameworks/PROJ.framework/unix/lib \
    --with-proj-share=/Library/Frameworks/PROJ.framework/Versions/4/Resources/proj \
    --with-tiff-includes=/Library/Frameworks/UnixImageIO.framework/Versions/C/unix/include \
    --with-tiff-libs=/Library/Frameworks/UnixImageIO.framework/Versions/C/unix/lib \
    --with-png-includes=/Library/Frameworks/UnixImageIO.framework/Versions/C/unix/include \
    --with-png-libs=/Library/Frameworks/UnixImageIO.framework/Versions/C/unix/lib \
    --with-sqlite \
    --with-sqlite-includes=/Library/Frameworks/SQLite3.framework/Versions/3/unix/include \
    --with-sqlite-libs=/Library/Frameworks/SQLite3.framework/Versions/3/unix/lib 

     

    Adjust the configuration above to taylor GRASS to your needs, i.e. add postgresql support etc.

     
    If configure finished without error, compile and install the software with:
    make && sudo make install
     
    See the macos specific README within the GRASS source code for further discussion of the process.

     

  2. Thank you for bringing more information to this topic for me. Im truly grateful and really impressed. Shop Vac

  3. Put all AST*.zip files into one directory.  
    Then, in the GRASS GIS shell terminal, cd into this directory and run:
     
    # unzip all files in a loop:
    for map in `ls A*.zip` ; do unzip $map ; done
     
    # import and set elevation color table
    for map in `ls AST*/AST*num.tif` ; do
         r.in.gdal input=$map out=`basename $map .tif` -o
         r.colors `basename $map .tif` color=elevation
    done
     
    # set computational region to include all imported maps (the list of DEM names we retrieve automatically):
    g.region rast=`g.mlist rast pattern="AST*"` -p
     
    Now you can display and analyse the ASTER GDEM maps. If you want to mosaik the DEM tiles into one single map, use r.patch:
    r.patch input=`g.mlist rast pattern="AST*"` output=complete_ASTER_GDEM
    r.colors complete_ASTER_GDEM color=elevation