pictures/imod_logo.png

iMOD User Manual version 5.2 (html)


9.16LEG-files

Each map file in iMOD (IDFs, IPFs, ISGs, GENs and IFFs) can be displayed by classes that are defined in a legend. The legend is stored internally, but can be saved to, and loaded from disk. The syntax of a *.LEG-file is as follows:

NClass

Number of classes. Bear in mind that legends that have NClass\(<\)=50, behave differently than legends that have 50\(<\)NClass\(<\)=255, see for more information 0.

ColourMarks

In the Legend window (see 3.3.4), these ColourMarks (0-1) define whether the ColourMark is turned on or off in the colour ramp.

Upper BND

Upper Boundary of the class

Lower BND

Lower Boundary of the class

IRED

Red component in RGB-colour model (0-255)

IGREEN

Green component in RGB-colour model (0-255)

IBLUE

Blue component in RGB-colour model (0-255)

Label

Label, make sure the length of the label is less or equal to 50 characters. For Labels that contain more than one word, such as Dunes and Shore, they should be bracketed by quotes, i.e. “Dunes and Shore”.

Example of a LEG-file:

14,1,1,1,1,1,1,1
UPPERBND,LOWERBND,IRED,IGREEN,IBLUE,DOMAIN
2.600000,2.400000,64,0,0,‘2.6’
2.400000,2.200000,148,0,0,‘2.4’
2.200000,2.000000,237,0,0,‘2.2’
2.000000,1.800000,255,0,94,‘2.0’
1.800000,1.600000,255,0,213,‘1.8’
1.600000,1.400000,173,0,255,‘1.6’
1.400000,1.200000,63,0,255,‘1.4’
1.200000,1.000000,0,59,195,‘1.2’
1.000000,0.8000000,0,171,83,‘1.0’
0.8000000,0.6000000,41,255,0,‘0.8’
0.6000000,0.4000000,160,255,0,‘0.6’
0.4000000,0.2000000,243,255,23,‘0.4’
0.2000000,0.0,185,255,139,‘0.2’
0.0,-0.2000000,130,255,249,‘0.0’

or

14,1,1,1,1,1,1,1
UPPERBND,LOWERBND,IRED,IGREEN,IBLUE,DOMAIN
14.00000,13.00000,128,128,0,‘Deponie’
13.00000,12.00000,213,255,255,‘Unknown’
12.00000,11.00000,255,255,0,‘Old Riverbed’
11.00000,10.00000,255,191,255,‘AlFan3’
10.00000,9.000000,255,140,255,‘AlFan2’
9.000000,8.000000,255,0,255,‘AlFan1’
8.000000,7.000000,0,0,255,‘TorrD - Torrential Deposits’
7.000000,6.000000,192,192,192,‘BR - Bedrock’
6.000000,5.000000,128,128,255,‘PalS - Paleosol’
5.000000,4.000000,166,170,85,‘GlaD - Glacial Deposits’
4.000000,3.000000,0,191,0,‘SwaD - Swampy Deposits’
3.000000,2.000000,128,255,255,‘FluvD - Fluvial Deposits’
2.000000,1.000000,0,128,64,‘FloD - Flood Deposits’
1.000000,0.000000,128,64,0,‘Baf - Backfill (artificial)’

Note: Use comma’s and/or space delimiters within LEG-files.