Skip to content

Commit 67d27e8

Browse files
committed
resize earth science models
1 parent 1ff4350 commit 67d27e8

8 files changed

Lines changed: 85 additions & 85 deletions

File tree

Sample Models/Earth Science/Climate Change.nlogox

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<model version="NetLogo 7.0.0-beta0" snapToGrid="false">
2+
<model version="NetLogo 7.0.0-beta1" snapToGrid="true">
33
<code><![CDATA[globals [
44
sky-top ;; y coordinate of top row of sky
55
earth-top ;; y coordinate of top row of earth
@@ -222,27 +222,27 @@ end
222222
; Copyright 2007 Uri Wilensky.
223223
; See Info tab for full copyright and license.]]></code>
224224
<widgets>
225-
<view x="317" wrappingAllowedX="true" y="12" frameRate="30.0" minPycor="-8" height="345" showTickCounter="true" patchSize="11.0" fontSize="10" wrappingAllowedY="false" width="543" tickCounterLabel="ticks" maxPycor="22" updateMode="1" maxPxcor="24" minPxcor="-24"></view>
226-
<button x="6" y="12" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="setup" width="95" sizeVersion="0">setup</button>
227-
<button x="103" y="12" height="33" disableUntilTicks="true" forever="true" kind="Observer" display="go" width="95" sizeVersion="0">go</button>
228-
<slider x="18" step="0.2" y="47" max="5" display="sun-brightness" height="33" min="0" direction="Horizontal" default="1.0" variable="sun-brightness" width="173" sizeVersion="0"></slider>
229-
<slider x="18" step="0.05" y="82" max="1" display="albedo" height="33" min="0" direction="Horizontal" default="0.6" variable="albedo" width="173" sizeVersion="0"></slider>
230-
<plot x="9" autoPlotX="true" yMax="20.0" autoPlotY="true" y="212" xMin="0.0" height="211" legend="false" xMax="10.0" yMin="10.0" display="Global Temperature" width="269" sizeVersion="0">
225+
<view x="335" wrappingAllowedX="true" y="7" frameRate="30.0" minPycor="-8" height="345" showTickCounter="true" patchSize="11.0" fontSize="10" wrappingAllowedY="false" width="543" tickCounterLabel="ticks" maxPycor="22" updateMode="1" maxPxcor="24" minPxcor="-24"></view>
226+
<button x="5" y="7" height="50" disableUntilTicks="false" forever="false" kind="Observer" width="100" display="setup">setup</button>
227+
<button x="110" y="7" height="50" disableUntilTicks="true" forever="true" kind="Observer" width="95" display="go">go</button>
228+
<slider x="5" step="0.2" y="60" max="5" width="200" display="sun-brightness" height="50" min="0" direction="Horizontal" default="1.0" variable="sun-brightness"></slider>
229+
<slider x="5" step="0.05" y="115" max="1" width="200" display="albedo" height="50" min="0" direction="Horizontal" default="0.6" variable="albedo"></slider>
230+
<button x="5" y="169" height="35" disableUntilTicks="true" forever="false" kind="Observer" width="95" display="add cloud">add-cloud</button>
231+
<button x="110" y="169" height="35" disableUntilTicks="true" forever="false" kind="Observer" width="95" display="remove cloud">remove-cloud</button>
232+
<button x="110" y="210" height="35" disableUntilTicks="true" forever="false" kind="Observer" width="95" display="remove CO2">remove-CO2</button>
233+
<button x="5" y="210" height="35" disableUntilTicks="true" forever="false" kind="Observer" width="95" display="add CO2">add-CO2</button>
234+
<button x="225" y="40" height="35" disableUntilTicks="true" forever="false" kind="Observer" width="101" display="watch a ray">watch one-of rays
235+
ask subject [ pen-down ]</button>
236+
<monitor x="225" precision="1" y="80" height="60" fontSize="11" width="100">temperature</monitor>
237+
<monitor x="225" precision="2" y="145" height="60" fontSize="11" width="100" display="CO2 amount">count CO2s</monitor>
238+
<plot x="10" autoPlotX="true" yMax="20.0" autoPlotY="true" y="250" xMin="0.0" height="211" legend="false" xMax="10.0" yMin="10.0" width="315" display="Global Temperature">
231239
<setup></setup>
232240
<update></update>
233241
<pen interval="1.0" mode="0" display="default" color="-2674135" legend="true">
234242
<setup></setup>
235243
<update>plot temperature</update>
236244
</pen>
237245
</plot>
238-
<button x="7" y="152" height="33" disableUntilTicks="true" forever="false" kind="Observer" display="add CO2" width="95" sizeVersion="0">add-CO2</button>
239-
<button x="104" y="152" height="33" disableUntilTicks="true" forever="false" kind="Observer" display="remove CO2" width="95" sizeVersion="0">remove-CO2</button>
240-
<monitor x="210" precision="1" y="87" height="45" fontSize="11" width="93" sizeVersion="0">temperature</monitor>
241-
<button x="7" y="118" height="33" disableUntilTicks="true" forever="false" kind="Observer" display="add cloud" width="95" sizeVersion="0">add-cloud</button>
242-
<button x="104" y="118" height="33" disableUntilTicks="true" forever="false" kind="Observer" display="remove cloud" width="95" sizeVersion="0">remove-cloud</button>
243-
<monitor x="210" precision="2" y="133" height="45" fontSize="11" display="CO2 amount" width="93" sizeVersion="0">count CO2s</monitor>
244-
<button x="208" y="41" height="34" disableUntilTicks="true" forever="false" kind="Observer" display="watch a ray" width="101" sizeVersion="0">watch one-of rays
245-
ask subject [ pen-down ]</button>
246246
</widgets>
247247
<info><![CDATA[## WHAT IS IT?
248248

Sample Models/Earth Science/Continental Divide.nlogox

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<model version="NetLogo 7.0.0-beta0" snapToGrid="false">
2+
<model version="NetLogo 7.0.0-beta1" snapToGrid="true">
33
<code><![CDATA[patches-own [
44
elevation
55
]
@@ -261,9 +261,9 @@ end
261261
; See Info tab for full copyright and license.]]></code>
262262
<widgets>
263263
<view x="178" wrappingAllowedX="false" y="10" frameRate="30.0" minPycor="0" height="244" showTickCounter="true" patchSize="2.0" fontSize="20" wrappingAllowedY="false" width="480" tickCounterLabel="ticks" maxPycor="119" updateMode="1" maxPxcor="237" minPxcor="0"></view>
264-
<button x="10" y="38" height="42" disableUntilTicks="false" forever="false" kind="Observer" width="71" sizeVersion="0">setup</button>
265-
<button x="95" y="38" height="42" disableUntilTicks="true" forever="true" kind="Observer" width="71" sizeVersion="0">go</button>
266-
<monitor x="26" precision="3" y="97" height="45" fontSize="11" display="water height" width="125" sizeVersion="0">word water-height " meters"</monitor>
264+
<button x="95" y="35" height="42" disableUntilTicks="true" forever="true" kind="Observer" width="71">go</button>
265+
<button x="10" y="35" height="42" disableUntilTicks="false" forever="false" kind="Observer" width="71">setup</button>
266+
<monitor x="30" precision="3" y="85" height="60" fontSize="11" width="125" display="water height">word water-height " meters"</monitor>
267267
</widgets>
268268
<info><![CDATA[## WHAT IS IT?
269269

Sample Models/Earth Science/Erosion.nlogox

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<model version="NetLogo 7.0.0-beta0" snapToGrid="false">
2+
<model version="NetLogo 7.0.0-beta1" snapToGrid="true">
33
<code><![CDATA[globals [
44
show-water? ;; whether the water is visible
55
drains ;; agentset of all edge patches where the water drains off
@@ -102,20 +102,20 @@ end
102102
; Copyright 2004 Uri Wilensky.
103103
; See Info tab for full copyright and license.]]></code>
104104
<widgets>
105-
<view x="263" wrappingAllowedX="false" y="10" frameRate="30.0" minPycor="-50" height="408" showTickCounter="true" patchSize="4.0" fontSize="10" wrappingAllowedY="false" width="408" tickCounterLabel="ticks" maxPycor="50" updateMode="1" maxPxcor="50" minPxcor="-50"></view>
106-
<button x="12" y="185" height="49" disableUntilTicks="false" forever="false" kind="Observer" width="101" sizeVersion="0">setup</button>
107-
<slider x="12" step="1.0" y="118" max="30.0" display="terrain-smoothness" height="33" min="1.0" direction="Horizontal" default="6.0" variable="terrain-smoothness" width="233" sizeVersion="0"></slider>
108-
<slider x="12" step="0.01" y="339" max="0.5" display="rainfall" height="33" min="0.0" direction="Horizontal" default="0.1" variable="rainfall" width="235" sizeVersion="0"></slider>
109-
<button x="119" y="185" height="49" disableUntilTicks="true" forever="true" kind="Observer" width="96" sizeVersion="0">go</button>
110-
<note x="9" y="30" height="28" textColorLight="-16777216" fontSize="11" width="130" markdown="false">Setup parameters:</note>
111-
<note x="8" y="315" height="18" textColorLight="-16777216" fontSize="11" width="225" markdown="false">Environmental parameters:</note>
112-
<switch x="12" y="84" height="33" on="true" variable="bumpy?" display="bumpy?" width="164" sizeVersion="0"></switch>
113-
<slider x="12" step="0.05" y="373" max="1.0" display="soil-hardness" height="33" min="0.0" direction="Horizontal" default="0.8" variable="soil-hardness" width="235" sizeVersion="0"></slider>
114-
<switch x="12" y="50" height="33" on="false" variable="hill?" display="hill?" width="164" sizeVersion="0"></switch>
115-
<button x="21" y="270" height="33" disableUntilTicks="true" forever="false" kind="Observer" width="104" sizeVersion="0">show-water</button>
116-
<button x="127" y="270" height="33" disableUntilTicks="true" forever="false" kind="Observer" width="98" sizeVersion="0">hide-water</button>
117-
<note x="7" y="249" height="18" textColorLight="-16777216" fontSize="11" width="150" markdown="false">Display controls:</note>
118-
<note x="7" y="164" height="18" textColorLight="-16777216" fontSize="11" width="150" markdown="false">Simulation controls:</note>
105+
<view x="260" wrappingAllowedX="false" y="10" frameRate="30.0" minPycor="-50" height="408" showTickCounter="true" patchSize="4.0" fontSize="10" wrappingAllowedY="false" width="408" tickCounterLabel="ticks" maxPycor="50" updateMode="1" maxPxcor="50" minPxcor="-50"></view>
106+
<note x="5" y="7" backgroundDark="0" fontSize="11" width="130" markdown="false" height="28" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">Setup parameters:</note>
107+
<note x="5" y="220" backgroundDark="0" fontSize="11" width="150" markdown="false" height="18" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">Display controls:</note>
108+
<button x="110" y="245" height="35" disableUntilTicks="true" forever="false" kind="Observer" width="98">hide-water</button>
109+
<button x="5" y="245" height="35" disableUntilTicks="true" forever="false" kind="Observer" width="104">show-water</button>
110+
<slider x="25" step="1.0" y="70" max="30.0" width="195" display="terrain-smoothness" height="50" min="1.0" direction="Horizontal" default="6.0" variable="terrain-smoothness"></slider>
111+
<switch x="110" y="30" height="37" on="true" variable="bumpy?" width="90" display="bumpy?"></switch>
112+
<switch x="25" y="30" height="37" on="false" variable="hill?" width="80" display="hill?"></switch>
113+
<button x="25" y="155" height="49" disableUntilTicks="false" forever="false" kind="Observer" width="80">setup</button>
114+
<button x="110" y="155" height="49" disableUntilTicks="true" forever="true" kind="Observer" width="90">go</button>
115+
<note x="5" y="135" backgroundDark="0" fontSize="11" width="150" markdown="false" height="18" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">Simulation controls:</note>
116+
<note x="1" y="291" backgroundDark="0" fontSize="11" width="225" markdown="false" height="18" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">Environmental parameters:</note>
117+
<slider x="5" step="0.05" y="370" max="1.0" width="250" display="soil-hardness" height="50" min="0.0" direction="Horizontal" default="0.8" variable="soil-hardness"></slider>
118+
<slider x="5" step="0.01" y="315" max="0.5" width="250" display="rainfall" height="50" min="0.0" direction="Horizontal" default="0.1" variable="rainfall"></slider>
119119
</widgets>
120120
<info><![CDATA[## WHAT IS IT?
121121

Sample Models/Earth Science/Fire.nlogox

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<model version="NetLogo 7.0.0-beta0" snapToGrid="true">
2+
<model version="NetLogo 7.0.0-beta1" snapToGrid="true">
33
<code><![CDATA[globals [
44
initial-trees ;; how many trees (green patches) we started with
55
burned-trees ;; how many have burned so far

Sample Models/Earth Science/Grand Canyon.nlogox

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<model version="NetLogo 7.0.0-beta0" snapToGrid="false">
2+
<model version="NetLogo 7.0.0-beta1" snapToGrid="true">
33
<code><![CDATA[breed [waters water]
44
breed [raindrops raindrop]
55
@@ -113,22 +113,22 @@ end
113113
; Copyright 2006 Uri Wilensky.
114114
; See Info tab for full copyright and license.]]></code>
115115
<widgets>
116-
<view x="216" wrappingAllowedX="false" y="10" frameRate="30.0" minPycor="-150" height="606" showTickCounter="true" patchSize="2.0" fontSize="10" wrappingAllowedY="false" width="606" tickCounterLabel="ticks" maxPycor="150" updateMode="1" maxPxcor="150" minPxcor="-150"></view>
117-
<button x="113" y="36" height="33" disableUntilTicks="true" forever="true" kind="Observer" width="76" sizeVersion="0">go</button>
118-
<button x="30" y="36" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="75" sizeVersion="0">setup
116+
<view x="230" wrappingAllowedX="false" y="7" frameRate="30.0" minPycor="-150" height="606" showTickCounter="true" patchSize="2.0" fontSize="10" wrappingAllowedY="false" width="606" tickCounterLabel="ticks" maxPycor="150" updateMode="1" maxPxcor="150" minPxcor="-150"></view>
117+
<button x="22" y="20" height="35" disableUntilTicks="false" forever="false" kind="Observer" width="75">setup
119118
</button>
120-
<slider x="15" step="1" y="92" max="10" display="rain-rate" height="33" min="0" direction="Horizontal" default="5.0" variable="rain-rate" units="drops / tick" width="190" sizeVersion="0"></slider>
121-
<note x="36" y="138" height="32" textColorLight="-16777216" fontSize="11" width="154" markdown="false">Click on the map to place
119+
<button x="105" y="20" height="35" disableUntilTicks="true" forever="true" kind="Observer" width="76">go</button>
120+
<slider x="5" step="1" y="80" max="10" width="205" display="rain-rate" height="50" min="0" direction="Horizontal" default="5.0" variable="rain-rate" units="drops / tick"></slider>
121+
<note x="35" y="140" backgroundDark="0" fontSize="11" width="154" markdown="false" height="32" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">Click on the map to place
122122
raindrops manually</note>
123-
<button x="15" y="341" height="33" disableUntilTicks="true" forever="false" kind="Observer" display="watch random raindrop" width="177" sizeVersion="0">watch one-of raindrops</button>
124-
<button x="16" y="409" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="reset-perspective" width="175" sizeVersion="0">rp
125-
</button>
126-
<button x="16" y="375" height="33" disableUntilTicks="true" forever="false" kind="Observer" display="watch my raindrop" width="176" sizeVersion="0">if any? turtles with [ color = red ]
123+
<switch x="10" y="210" height="37" on="false" variable="draw?" width="70" display="draw?"></switch>
124+
<button x="20" y="269" height="35" disableUntilTicks="true" forever="false" kind="Observer" width="177" display="watch random raindrop">watch one-of raindrops</button>
125+
<button x="20" y="312" height="35" disableUntilTicks="true" forever="false" kind="Observer" width="177" display="watch my raindrop">if any? turtles with [ color = red ]
127126
[
128127
watch one-of turtles with [ color = red ]
129128
]</button>
130-
<switch x="54" y="211" height="33" on="false" variable="draw?" display="draw?" width="103" sizeVersion="0"></switch>
131-
<button x="48" y="250" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="clear drawing" width="114" sizeVersion="0">clear-drawing</button>
129+
<button x="20" y="355" height="35" disableUntilTicks="false" forever="false" kind="Observer" width="177" display="reset-perspective">rp
130+
</button>
131+
<button x="85" y="210" height="37" disableUntilTicks="false" forever="false" kind="Observer" width="125" display="clear drawing">clear-drawing</button>
132132
</widgets>
133133
<info><![CDATA[## WHAT IS IT?
134134

Sample Models/Earth Science/Percolation.nlogox

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<model version="NetLogo 7.0.0-beta0" snapToGrid="false">
2+
<model version="NetLogo 7.0.0-beta1" snapToGrid="true">
33
<code><![CDATA[globals [
44
current-row ;; agentset of patches in current row
55
total-oil ;; keeps track of how much ground has been saturated
@@ -73,24 +73,24 @@ end
7373
; Copyright 1998 Uri Wilensky.
7474
; See Info tab for full copyright and license.]]></code>
7575
<widgets>
76-
<view x="233" wrappingAllowedX="false" y="10" frameRate="30.0" minPycor="0" height="446" showTickCounter="true" patchSize="2.0" fontSize="10" wrappingAllowedY="true" width="304" tickCounterLabel="ticks" maxPycor="220" updateMode="1" maxPxcor="149" minPxcor="0"></view>
77-
<button x="42" y="42" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="setup" width="70" sizeVersion="0">setup</button>
78-
<button x="117" y="42" height="33" disableUntilTicks="true" forever="true" kind="Observer" display="go" width="67" sizeVersion="0">go</button>
79-
<slider x="17" step="0.5" y="79" max="99" display="porosity" height="33" min="0" direction="Horizontal" default="60.5" variable="porosity" units="%" width="191" sizeVersion="0"></slider>
80-
<plot x="5" autoPlotX="true" yMax="50.0" autoPlotY="true" yAxis="oil" y="118" xMin="0.0" height="172" legend="false" xMax="30.0" yMin="0.0" xAxis="time" display="Percolating Oil" width="221" sizeVersion="0">
76+
<view x="245" wrappingAllowedX="false" y="10" frameRate="30.0" minPycor="0" height="446" showTickCounter="true" patchSize="2.0" fontSize="10" wrappingAllowedY="true" width="304" tickCounterLabel="ticks" maxPycor="220" updateMode="1" maxPxcor="149" minPxcor="0"></view>
77+
<button x="51" y="11" height="35" disableUntilTicks="false" forever="false" kind="Observer" width="70" display="setup">setup</button>
78+
<button x="126" y="11" height="35" disableUntilTicks="true" forever="true" kind="Observer" width="67" display="go">go</button>
79+
<slider x="9" step="0.5" y="51" max="99" width="226" display="porosity" height="50" min="0" direction="Horizontal" default="60.5" variable="porosity" units="%"></slider>
80+
<plot x="10" autoPlotX="true" yMax="400.0" autoPlotY="true" yAxis="total oil" y="280" xMin="0.0" height="180" legend="false" xMax="30.0" yMin="0.0" width="225" xAxis="time" display="Saturated Soil">
8181
<setup></setup>
8282
<update></update>
83-
<pen interval="1.0" mode="0" display="default" color="-2674135" legend="true">
83+
<pen interval="1.0" mode="0" display="default" color="-16777216" legend="true">
8484
<setup></setup>
85-
<update>plot count current-row with [pcolor = red]</update>
85+
<update>plot total-oil</update>
8686
</pen>
8787
</plot>
88-
<plot x="5" autoPlotX="true" yMax="400.0" autoPlotY="true" yAxis="total oil" y="291" xMin="0.0" height="172" legend="false" xMax="30.0" yMin="0.0" xAxis="time" display="Saturated Soil" width="221" sizeVersion="0">
88+
<plot x="10" autoPlotX="true" yMax="50.0" autoPlotY="true" yAxis="oil" y="110" xMin="0.0" height="165" legend="false" xMax="30.0" yMin="0.0" width="225" xAxis="time" display="Percolating Oil">
8989
<setup></setup>
9090
<update></update>
91-
<pen interval="1.0" mode="0" display="default" color="-16777216" legend="true">
91+
<pen interval="1.0" mode="0" display="default" color="-2674135" legend="true">
9292
<setup></setup>
93-
<update>plot total-oil</update>
93+
<update>plot count current-row with [pcolor = red]</update>
9494
</pen>
9595
</plot>
9696
</widgets>

0 commit comments

Comments
 (0)