Re: Скрипты Grass применительно к Landsat
Добавлено: 18 фев 2011, 08:08
kryl, покажите, пожалуйста, как вы вызываете скрипт импорта. Есть подозрение, что вы создаете новый mapset в который и импортируете ваши ландсаты....
Геоинформационные системы (ГИС) и Дистанционное зондирование Земли
https://gis-lab.info/forum/
Код: Выделить всё
CFLAGS="-g -Wall" ./configure \
Ubuntu 10.10amuriy писал(а):озвучьте уже наконец вашу прекрасную систему-незнакомку
Код: Выделить всё
--prefix=/home/user/bin/grass-6.4.0RC6/grass-6.4.0
Зашел в грасс, создал location по кадру landsat (из GUI) перешел в папку с landsat запустил ./import.pyKolesovDmitry писал(а):kryl, покажите, пожалуйста, как вы вызываете скрипт импорта. Есть подозрение, что вы создаете новый mapset в который и импортируете ваши ландсаты....
Эти флаги были изначально взяты со этой страницы GRASS-Wiki, вот я их и использую везде..alexkarta писал(а): что делает флаг CFLAGS="-g -Wall"?
Там на вики-странице так и сказано: For each image creates its own mapset and imports bands as B<id>, e.g. B10, B20, ..., B80.KolesovDmitry писал(а):kryl, покажите, пожалуйста, как вы вызываете скрипт импорта. Есть подозрение, что вы создаете новый mapset в который и импортируете ваши ландсаты....
Код: Выделить всё
# ./configure --host=i486-linux-gnu --build=i486-linux-gnu --prefix=/usr/lib...
Вот это название и наталкивает на мысль, что они импортировались в mapset под названием L7116601901919990815.alexkarta писал(а):странный у вас получается растр B10@L7116601901919990815.
Код: Выделить всё
g.mlist rast
Код: Выделить всё
CFLAGS="-g -Wall" ./configure \
--prefix=/home/kryl/grass641 \
--enable-largefile --enable-shared --with-readline --with-cairo \
--with-sqlite --with-postgres \
--with-postgres-includes=/usr/include/postgresql/ --with-freetype \
--with-freetype-includes=/usr/include/freetype2 --with-cxx \
--with-tcltk --with-tcltk-includes=/usr/include/ \
--with-python=/usr/bin/python2.6-config \
--with-wxwidgets=/usr/bin/wx-config --with-proj-share=/usr/share/proj \
--with-mysql --with-mysql-includes=/usr/include/mysql --with-odbc \
--with-blas --with-blas-includes=/usr/lib/grass64/include/grass/ \
--with-blas-libs=/usr/lib/ --with-lapack \
--with-lapack-includes=/usr/lib/grass64/include/grass/ \
--with-lapack-libs=/usr/lib/
Код: Выделить всё
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler (gcc -g -Wall ) works... yes
checking whether the C compiler (gcc -g -Wall ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for executable suffix... no
checking for full floating-point support... yes
checking for pwd... /bin/pwd
checking for source directory... /home/kryl/grass-6.4.1RC1
checking for build directory... /home/kryl/grass-6.4.1RC1
checking for MacOSX App... no
checking for MacOSX architectures... no
checking for MacOSX SDK... no
checking how to build libraries... shared
checking for ranlib... ranlib
checking how to run the C preprocessor... gcc -E
checking if 64bit support is requested... no
checking if 64bit Sparc VIS support is requested... no
checking system version (for dynamic loading)... Linux-2.6.35-25-generic-pae
checking for dlopen in -ldl... yes
checking for ar... ar
checking for additional include dirs...
checking for additional library dirs...
checking for a BSD compatible install... /usr/bin/install -c
checking for flex... flex
checking for yywrap in -lfl... yes
checking for bison... bison -y
checking for ranlib... ranlib
checking for ar... ar
checking for env... env
checking for perl... /usr/bin/perl
checking for ANSI C header files... yes
checking for limits.h... yes
checking for termio.h... yes
checking for termios.h... yes
checking for unistd.h... yes
checking for values.h... yes
checking for f2c.h... no
checking for g2c.h... no
checking for sys/ioctl.h... yes
checking for sys/mtio.h... yes
checking for sys/resource.h... yes
checking for sys/time.h... yes
checking for sys/timeb.h... yes
checking for sys/types.h... yes
checking for sys/utsname.h... yes
checking for libintl.h... yes
checking for iconv.h... yes
checking for langinfo.h... yes
checking whether time.h and sys/time.h may both be included... yes
checking for off_t... yes
checking for uid_t in sys/types.h... yes
checking return type of signal handlers... void
checking for Cygwin environment... no
checking for ftime... yes
checking for gethostname... yes
checking for gettimeofday... yes
checking for lseek... yes
checking for nice... yes
checking for time... yes
checking for uname... yes
checking for seteuid... yes
checking for setpriority... yes
checking for setreuid... yes
checking for setruid... no
checking for drand48... yes
checking for putenv... yes
checking for setenv... yes
checking for nanosleep... yes
checking whether setpgrp takes no argument... yes
checking for long long int... yes
checking for W11... no
checking for X... libraries , headers
checking for dnet_ntoa in -ldnet... no
checking for dnet_ntoa in -ldnet_stub... no
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking whether to use Curses... yes
checking for curses.h... yes
checking curses.h WINDOW structure component... _maxy
checking for initscr in -lncurses... yes
checking for keypad in -lncurses... yes
checking for gtty in -lcompat... no
checking for gtty in -lbsd-compat... yes
checking for library containing cuserid... none required
checking for xdrmem_create... yes
checking for asprintf... yes
checking for atan... no
checking for atan in -lm... yes
checking for dlsym... no
checking for dlsym in -ldl... yes
checking for iconv... yes
checking for socket... yes
checking for location of zlib includes...
checking for zlib.h... yes
checking for location of zlib library...
checking for deflate in -lz... yes
checking for location of External PROJ.4 includes...
checking for proj_api.h... no
configure: error: *** Unable to locate External PROJ.4 includes.
Все директории, которые указываются, должны уже существовать. Из них скрипт-конфигуратор берёт нужные файлы.kryl писал(а):--with-lapack-includes=/usr/lib/grass64/include/grass/ \ Папка должна существовать или он ее создаст и что то туда положит?
Ещё как, что за ГИС без координатных преобразований?kryl писал(а):Критична ли ошибка с PROJ.4?
Код: Выделить всё
locate proj_api.h
Код: Выделить всё
/usr/include/proj_api.h
Код: Выделить всё
--with-lapack-includes=/usr/include/grass/
--with-blas-includes=/usr/include/grass/