mapattr¶
mapattr [options] PCRmap1 PCRmap2....PCRmapN
- PCRmap
boolean, nominal, ordinal, scalar, directional, ldd spatial
Options¶
Options that apply to all modes of operations¶
Set default attribute values with existing map
- --clone
--clone PCRclone
. PCRclone is taken as clone map. This option can be set in the command line or as a global option. If a map attribute is not specified by the user (in the menu or with options) the attribute value of PCRclone is assigned to the map that is generated. If clone is not set the following defaults are used: data type: boolean; cell representation: small integer; projection: y increases from bottom to top, upper left corner (xUL, yUL): (0,0), cell length 1 and angle 0.
Print information for all maps
- -p
gives information for all maps PCRmap1, PCRmap2,…PCRmapn (from top to bottom): n number of rows, number of columns, cell length, data type, cell representation, projection, angle in degrees, upper left corner (xUL, yUL), minimum value, maximum value, PCRaster version number, file_id (i.e. the number of the file, used internally by PCRaster), native/not native (specifies whether the byte order of the file is native (‘y’ is printed) or not native (‘n’ is printed): big endian or little endian), attribute table (specifies whether the file contains additional attributes (‘y’ is printed) like for example a legend or a colour palette or not (‘n’).
Operation¶
The mapattr application generates a new PCRaster map with map attributes specified by the user, changes the location attributes of an existing map or prints map attribute information.
See Also¶
Examples¶
Generation of a new map that is stored under the filename ‘mask.map’; invokes the menu:
mapattr mask.map
Changing the location attributes of an existing map clone.map; invokes the menu:
mapattr -e clone.map
Copying the location attributes of clone1.map to dem.map and ldd.map; does not invoke the menu:
mapattr -c clone1.map dem.map ldd.map
Printing (on the screen) the map info for clone1.map, dem.map and ldd.map:
mapattr -p clone1.map dem.map ldd.map
Generation of a new map that is stored under the filename mask2.map; does not invoke the menu (here, the option -a is not set so the angle of the map is assigned the default value 0):
mapattr -s -R 19 -C 68 -B -P yb2t -x 12 -y -14.02 -l 0.8 mask2.map