Нефть и песок О стали Компрессор - подбор и ошибки Из истории стандартизации резьб Соперник ксерокса - гектограф Новые технологии производства стали Экспорт проволоки из России Прогрессивная технологическая оснастка Цитадель сварки с полувековой историей Упрочнение пружин Способы обогрева Назначение, структура, характеристики анализаторов Промышленные пылесосы Штампованные гайки из пружинной стали Консервация САУ Стандарты и качество Технология производства Водород Выбор материала для крепежных деталей Токарный резец в миниатюре Производство проволоки Адгезия резины к металлокорду Электролитическое фосфатирование проволоки Восстановление корпусных деталей двигателей Новая бескислотная технология производства проката Синие кристаллы Автоклав Нормирование шумов связи Газосварочный аппарат для тугоплавких припоев
Главная --> Промиздат -->  Map principle 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 ( 23 ) 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127

your east and north coordinates and import your value as a floating point attribute, so your data in GRASS sites format will look like this:

namemygrasssites

descIs.in.ascii sites=mygrasssites input=myasciisites fs=space 3246000 I 5877000 I #1 %23 3246012.515877012.5#2 %24.4 3246025 I 5877025#3 %22.3

If the input point data include a third dimension (depth, elevation) and the values are separated by commas (CSV format), you can import them with s.in.ascii, using the parameter d for setting the number of dimensions and fs for a delimiter as follows:

s.in.ascii sites=grasssites3d input=myasciisites3d d=3 fs=,

Depending on application, elevation z can be handled either as a third dimension or as a floating point attribute

As we have shown in the Section 5.1.6, UNIX provides an effective tool for working with ASCII data called awk. You can use it to modify your ASCII data to conform to the GRASS site format. For example, if your data in points.dat are organized as:

ID north east elevation

you can remove the ID and change the order of coordinates as required by

GRASS using:

cat points.dat awk Iprint $3, $2, $4} s.in.ascii mysites

which writes the values from the third (east), second (north) and fourth (elevation) column and then imports this file by s.in.ascii. You will find more detailed explanation of awk and related examples in Appendix A which describes the use of UNIX text editing tools.

Importing site data in geographical coordinates. Latitude-longitude data can be imported either in DD format (decimal degree, see Section 2.2.2) with longitude given in the first and latitude in the second column:

8.314824 54.921730 sitel 8.897605 54.872353 site2 9.549371 54.834080 site3

or in DMS (degree, minutes, seconds) format:

18:53.3664E 54:55:18.228N sitel 53:51.378E 54 : 52:20.471N site2 32:57.7356E 54:50:02.688N site3

The module s.in.ascii will accept point data written in any of these two formats.



NOTES

1 GDAL library, http: www.remotesensing.org/gdal/

2 Spearfish 10 m LatLong/NAD83 DEM ArcGRID coverage file, section data sets, http: mpa.itc.it/grasstutor/

3 Netpbm tools, http: sourceforge.net/projects/netpbm/

4 The RMS error represents the distance of the set matching point towards the ideal placed matching point. It is calculated through:

rms= {x-XorigY + [y-yohgf-

5 GSHHS shoreline data Web site, http: www.soest.hawaii.edu/wessel/gshhs/gshhs.html

4.3.3 Export of sites data

Site data can be exported to an external ASCII file by s.out.ascii. The s.out.eOQ program is designed to create an ARC/INFO E00 ASCII points file. Alternatively, point data can be converted to raster data by s.to.rast and exported to ARC/INFO ASCII GRID by r.out.arc or other GIS raster formats.



Chapter 5

WORKING WITH RASTER DATA

In this chapter we explain the processing of raster data within GRASS, including some examples of spatial analysis. The raster data model, especially when combined with map algebra, provides wide range of capabilities for spatial modeling, all of which would be impossible to cover within a single chapter. Therefore, this chapter provides the basic description of the tools; more can be learned from the manual pages, tutorials and publications provided on

the GRASS Web site.

For a description of the GRASS raster data model, as well as raster data import and export, please refer to Section 4.1.3.

5.1. VIEWING AND MANAGING RASTER MAP LAYERS

In this section we continue to use the Spearfish data set to illustrate our examples. Please refer to Section 3.1.3 on how to start GRASS with the Spearfish LOCATION.

5.1.1 Displaying raster data and assigning a color table

Raster map layers can be displayed using the d.rast module. First open the GRASS monitor, then run the display module:

d.mon xO

d.rast elevation.dem

The map will be displayed in the GRASS monitor. The module d.rast offers two useful optional parameters, catlist and vallist. When us-



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 ( 23 ) 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127