41
Week of Jan. 15 • Today’s agenda: – Announcements & reminders – MFworks operations – Give out assignment#2 – Continue work on assignment#1

Week of Jan. 15 Today’s agenda: –Announcements & reminders –MFworks operations –Give out assignment#2 –Continue work on assignment#1

Embed Size (px)

Citation preview

Page 1: Week of Jan. 15 Today’s agenda: –Announcements & reminders –MFworks operations –Give out assignment#2 –Continue work on assignment#1

Week of Jan. 15

• Today’s agenda:– Announcements & reminders– MFworks operations– Give out assignment#2– Continue work on assignment#1

Page 2: Week of Jan. 15 Today’s agenda: –Announcements & reminders –MFworks operations –Give out assignment#2 –Continue work on assignment#1

Announcements & Reminders

• Still working on the printers

• Assignment #1 is due next week at the beginning of the lab

• Assignment #2 will be due week of Feb.5

• Lab Supervisor orientation meeting this Thursday afternoon (Jan. 18)

Page 3: Week of Jan. 15 Today’s agenda: –Announcements & reminders –MFworks operations –Give out assignment#2 –Continue work on assignment#1

Does anyone need help formating a PC Zip disk for the Mac?

Page 4: Week of Jan. 15 Today’s agenda: –Announcements & reminders –MFworks operations –Give out assignment#2 –Continue work on assignment#1

Important raster GIS concept

• Data is numeric

• Operations work on the data not the map colours

Page 5: Week of Jan. 15 Today’s agenda: –Announcements & reminders –MFworks operations –Give out assignment#2 –Continue work on assignment#1

MFworks operations and functions

• Cover

• Recode

• Slice

• Spread

• Clump

• Count function

Page 6: Week of Jan. 15 Today’s agenda: –Announcements & reminders –MFworks operations –Give out assignment#2 –Continue work on assignment#1

Operation Taxonomy

• Group 1: Basic operations on 1 Layer– Explicit renumbering (= Recode)

– Automatic renumbering (=Slice)

– Basic measurement (=Spread)

– Adjacency assessment (=Clump)

• Group 2: Basic operations on n layers– Layer superimposition (=Cover)

Page 7: Week of Jan. 15 Today’s agenda: –Announcements & reminders –MFworks operations –Give out assignment#2 –Continue work on assignment#1

Cover operation

• A Group2 operation: Layer Superimposition

• The Cover operation is used for two main purpose:1) overlaying map layers

2) for mosaicking map layers

Page 8: Week of Jan. 15 Today’s agenda: –Announcements & reminders –MFworks operations –Give out assignment#2 –Continue work on assignment#1

Cover operation overlay statement format

Newmap = Cover maplayer1with maplayer2with maplayer3 ;

Page 9: Week of Jan. 15 Today’s agenda: –Announcements & reminders –MFworks operations –Give out assignment#2 –Continue work on assignment#1

Cover1

2

3

Newmap

Newmap = Cover maplayer1with maplayer2with maplayer3 ;

Page 10: Week of Jan. 15 Today’s agenda: –Announcements & reminders –MFworks operations –Give out assignment#2 –Continue work on assignment#1

Cover operationmosaic statement format

Newmap = Cover maplayer1with maplayer2mosaic ;

Page 11: Week of Jan. 15 Today’s agenda: –Announcements & reminders –MFworks operations –Give out assignment#2 –Continue work on assignment#1

1

2

Cover mosaic

Newmap

Newmap = Cover maplayer1with maplayer2mosaic ;

Page 12: Week of Jan. 15 Today’s agenda: –Announcements & reminders –MFworks operations –Give out assignment#2 –Continue work on assignment#1

Recode operation

• A Group 1 operation: Explicit Renumbering

• Generates a new map layer

• You specify the zones from the input map that will appear in the output map

• Use the “…” operator for specifying number ranges (from the keypad menu in the script window)

Page 13: Week of Jan. 15 Today’s agenda: –Announcements & reminders –MFworks operations –Give out assignment#2 –Continue work on assignment#1

Recode statement format

newmap = Recode oldmap Assigning newvalue To

existingvalue ;Existingvalue is a number from the legend of the oldmap

Page 14: Week of Jan. 15 Today’s agenda: –Announcements & reminders –MFworks operations –Give out assignment#2 –Continue work on assignment#1

Recode modifiersnewmap = Recode oldmap

Assigning newval To existvalAssigning newval2 To existval2…

existval3Assigning newval3 To existval4 …Assigning newval4 To … existval5

Assigning newval5 To …CarryOver ;

Page 15: Week of Jan. 15 Today’s agenda: –Announcements & reminders –MFworks operations –Give out assignment#2 –Continue work on assignment#1

Slice operation

• A group 1 operation: Automatic Renumbering

• Slice may be thought of as an “automatic” recode

Page 16: Week of Jan. 15 Today’s agenda: –Announcements & reminders –MFworks operations –Give out assignment#2 –Continue work on assignment#1

The concept of “Slice”

• It divides the range of values in an input map into equal sized groups

• Each group becomes a zone in the output map

Page 17: Week of Jan. 15 Today’s agenda: –Announcements & reminders –MFworks operations –Give out assignment#2 –Continue work on assignment#1

An example of the Slice in action Here is a map

Page 18: Week of Jan. 15 Today’s agenda: –Announcements & reminders –MFworks operations –Give out assignment#2 –Continue work on assignment#1

The legend for this map looks like this

Page 19: Week of Jan. 15 Today’s agenda: –Announcements & reminders –MFworks operations –Give out assignment#2 –Continue work on assignment#1

The same map after being sliced into 5

Page 20: Week of Jan. 15 Today’s agenda: –Announcements & reminders –MFworks operations –Give out assignment#2 –Continue work on assignment#1

The resulting legend has only 5 zones

Page 21: Week of Jan. 15 Today’s agenda: –Announcements & reminders –MFworks operations –Give out assignment#2 –Continue work on assignment#1

Slice operationstatement format

Newmap = Slice inputmap into value ;

Page 22: Week of Jan. 15 Today’s agenda: –Announcements & reminders –MFworks operations –Give out assignment#2 –Continue work on assignment#1

modifiers of Slice

Newmap = Slice inputmap into value

by value range

value range use topvalue use middlevalue

use bottomvaluemakerangelabels ;

Page 23: Week of Jan. 15 Today’s agenda: –Announcements & reminders –MFworks operations –Give out assignment#2 –Continue work on assignment#1

Spread operation

• A Group 1 operation: Basic Measurement

• Measures distances from specified cells

Page 24: Week of Jan. 15 Today’s agenda: –Announcements & reminders –MFworks operations –Give out assignment#2 –Continue work on assignment#1

Spread statement format

newmap = Spread oldmap To maximum distance ;

Spread will measure the distances starting from any non-void cells in the input map.

Page 25: Week of Jan. 15 Today’s agenda: –Announcements & reminders –MFworks operations –Give out assignment#2 –Continue work on assignment#1

Clump

• A Group 1 operation: Adjacency Assessment• “Clump” is used to group together or join together

cells

From the MFworks guide: “The Clump operation creates a map layer in which cells with the same value, within a specified distance of each other, are assigned a common unique value.”

Page 26: Week of Jan. 15 Today’s agenda: –Announcements & reminders –MFworks operations –Give out assignment#2 –Continue work on assignment#1

Format of the Clump operation

NewMap = Clump inputmap at Distance ;

Page 27: Week of Jan. 15 Today’s agenda: –Announcements & reminders –MFworks operations –Give out assignment#2 –Continue work on assignment#1

The Clump in actionWhat will be grouped if we run clump at a distance of …

1 ?

1.5 ?

3 ?

Page 28: Week of Jan. 15 Today’s agenda: –Announcements & reminders –MFworks operations –Give out assignment#2 –Continue work on assignment#1

Clumped at distance 1

Before After

Page 29: Week of Jan. 15 Today’s agenda: –Announcements & reminders –MFworks operations –Give out assignment#2 –Continue work on assignment#1

Clumped at distance 1.5

Before After

Page 30: Week of Jan. 15 Today’s agenda: –Announcements & reminders –MFworks operations –Give out assignment#2 –Continue work on assignment#1

Clumped at distance 3

Before After

Page 31: Week of Jan. 15 Today’s agenda: –Announcements & reminders –MFworks operations –Give out assignment#2 –Continue work on assignment#1

Another new item:The Count function

Valuefield

Areafield

This function produces a new map where the number of cells in each zone in the old map becomes the value for that zone in the new map. It measures Zone Area

Page 32: Week of Jan. 15 Today’s agenda: –Announcements & reminders –MFworks operations –Give out assignment#2 –Continue work on assignment#1

The Count in action

NewMap = Count (inputmap) ;

Inputmap Legend New Map Legend

Page 33: Week of Jan. 15 Today’s agenda: –Announcements & reminders –MFworks operations –Give out assignment#2 –Continue work on assignment#1

• The binary number system is commonly used in computer science applications. We often use it in GIS.

• Map examples:– Rural or Urban zones– Man made or Natural– Land or Water areas

Binary Maps

Page 34: Week of Jan. 15 Today’s agenda: –Announcements & reminders –MFworks operations –Give out assignment#2 –Continue work on assignment#1

• Both mask maps and binary maps have only 2 zones.

• Binary maps are typically something and something else

• Mask maps are something and VOID

A mask map is a special type of binary map

Page 35: Week of Jan. 15 Today’s agenda: –Announcements & reminders –MFworks operations –Give out assignment#2 –Continue work on assignment#1

When to use masks

• Masks are used to restrict GIS operations to a specific area

• Masks are used to ‘blot’ out areas or regions in a map

Page 36: Week of Jan. 15 Today’s agenda: –Announcements & reminders –MFworks operations –Give out assignment#2 –Continue work on assignment#1

Assignment #2

• Gain experience working with Basic Operations (I and II) as they are implemented in MFworks

• Also develop– Scripting skills– Spatial processing– Cartographic layout and design– Problem solving

Page 37: Week of Jan. 15 Today’s agenda: –Announcements & reminders –MFworks operations –Give out assignment#2 –Continue work on assignment#1

• 2 part assignment– Part 1 - work on Spatial Relations. Measuring

distances and areas– Part 2 - concept of Competing Distances and

cartographic visualization.

Page 38: Week of Jan. 15 Today’s agenda: –Announcements & reminders –MFworks operations –Give out assignment#2 –Continue work on assignment#1

Advice

• Work on this assignment on your own– You will get more out of it if you try to develop

your problem solving skills– You will need the experience with writing

scripts and the concepts of the operations when it comes to exam time

Page 39: Week of Jan. 15 Today’s agenda: –Announcements & reminders –MFworks operations –Give out assignment#2 –Continue work on assignment#1

Read over the entire assignment before beginning it

• Familiarize yourself with the structure of it

• Note the section at the back on output tips and try to apply them to your layouts

Page 40: Week of Jan. 15 Today’s agenda: –Announcements & reminders –MFworks operations –Give out assignment#2 –Continue work on assignment#1

Things to remember from last week

• Keep your files organized - make an Assignment#2-yourname folder for this assignment

Page 41: Week of Jan. 15 Today’s agenda: –Announcements & reminders –MFworks operations –Give out assignment#2 –Continue work on assignment#1

That’s all

• Use the time to finish up Assignment #1 and maybe start Assignment #2

• The lab should be open starting next week for drop in work sessions