<folder version="37" creator="Apsim 7.9-r4044" name="simulations">
  <simulation name="Maize-soybean">
    <metfile name="met">
      <filename name="filename" input="yes">C:\Users\femiguez\Dropbox\csm\labs\06_lab\apsim\Iowa C.met</filename>
    </metfile>
    <clock>
      <start_date type="date" description="Enter the start date of the simulation">01/01/2011</start_date>
      <end_date type="date" description="Enter the end date of the simulation">31/12/2012</end_date>
    </clock>
    <summaryfile />
    <area name="paddock">
      <surfaceom name="SurfaceOrganicMatter">
        <PoolName type="text" description="Organic Matter pool name">maize</PoolName>
        <type type="text" description="Organic Matter type">maize</type>
        <mass type="text" description="Initial surface residue (kg/ha)">1250</mass>
        <cnr type="text" description="C:N ratio of initial residue">27</cnr>
        <standing_fraction type="text" description="Fraction of residue standing">0.0</standing_fraction>
      </surfaceom>
      <fertiliser />
      <folder name="Manager folder">
        <manager name="Sow on a fixed date - maize">
          <ui>
            <category type="category" description="Sowing criteria" />
            <date type="text" description="Enter sowing date (dd-mmm) : ">1-may</date>
            <category type="category" description="Sowing parameters" />
            <crop type="crop" description="Enter name of crop to sow : ">maize</crop>
            <density type="text" description="Enter sowing density  (plants/m2) : ">7.5</density>
            <depth type="text" description="Enter sowing depth  (mm) : ">50</depth>
            <cultivar type="cultivars" description="Enter cultivar : ">B_110</cultivar>
            <class type="classes" description="Enter crop growth class : ">maize</class>
            <row_spacing type="text" description="Enter row spacing (mm) : ">760</row_spacing>
          </ui>
          <script>
            <text>
        if (today = date('[date]') then
              [crop] sow plants =[density], sowing_depth = [depth], cultivar = [cultivar], row_spacing = [row_spacing], crop_class = [class]
         endif
               </text>
            <event>start_of_day</event>
          </script>
        </manager>
        <manager name="Sow on a fixed date - soybean">
          <ui>
            <category type="category" description="Sowing criteria" />
            <date type="text" description="Enter sowing date (dd-mmm) : ">15-may</date>
            <category type="category" description="Sowing parameters" />
            <crop type="crop" description="Enter name of crop to sow : ">soybean</crop>
            <density type="text" description="Enter sowing density  (plants/m2) : ">35</density>
            <depth type="text" description="Enter sowing depth  (mm) : ">50</depth>
            <cultivar type="cultivars" description="Enter cultivar : ">MG_2</cultivar>
            <class type="classes" description="Enter crop growth class : ">plant</class>
            <row_spacing type="text" description="Enter row spacing (mm) : ">500</row_spacing>
          </ui>
          <script>
            <text>
        if (today = date('[date]') then
              [crop] sow plants =[density], sowing_depth = [depth], cultivar = [cultivar], row_spacing = [row_spacing], crop_class = [class]
         endif
				</text>
            <event>start_of_day</event>
          </script>
        </manager>
        <manager name="Tillage on fixed date">
          <ui>
            <category type="category" description="When should tillage be done" />
            <tillage_date type="ddmmmdate" description="Enter tillage date (dd-mmm) : ">10-apr</tillage_date>
            <category type="category" description="Tillage application details" />
            <surfaceommodule type="modulename" description="Module used to apply the tillage : ">SurfaceOrganicMatter</surfaceommodule>
            <tillage_type type="list" listvalues="user_defined, chisel, disc, planter, burn, burn_90, graze, scarifier, rip, blade, tine" description="Tillage type : "> disc</tillage_type>
            <tillage_depth type="text" description="User_defined depth of seedbed preparation (mm) : ">110</tillage_depth>
            <tillage_f_incorp type="text" description="User_defined fraction of surface residues to incorporate (0-1): ">0.4</tillage_f_incorp>
          </ui>
          <script>
            <text>
         if (today = date('[tillage_date]') then
            if ('[tillage_type]' = 'user_defined') then
                '[surfaceommodule]' tillage type = [tillage_type], f_incorp = [tillage_f_incorp] (), tillage_depth = [tillage_depth]
            else
                '[surfaceommodule]' tillage type = [tillage_type]
            endif
            ready_to_till_pre_sow = 0
            till_day_pre_sow = 0
         endif
      </text>
            <event>start_of_day</event>
          </script>
        </manager>
        <manager name="Fertilise on fixed date">
          <ui>
            <category type="category" description="When should fertiliser be applied" />
            <fert_date type="ddmmmdate" description="Enter fertiliser date (dd-mmm) : ">5-may</fert_date>
            <fert_criteria type="text" description="Don't add fertiliser if N in top 2 layers exceeds (kg/ha) : ">1000</fert_criteria>
            <category type="category" description="Fertiliser application details" />
            <fertmodule type="modulename" description="Module used to apply the fertiliser : ">fertiliser</fertmodule>
            <fert_amount type="text" description="Amount of fertiliser to apply (kg/ha) : ">150</fert_amount>
            <fert_type type="list" listvalues="NO3_N, NH4_N, NH4NO3, urea_N, urea_no3, urea, nh4so4_n, rock_p, banded_p, broadcast_p" description="Fertiliser type : ">urea_N</fert_type>
          </ui>
          <script>
            <text>
         if (today = date('[fert_date]') then
            N_topsoil = no3(1) + nh4(1) + no3(2) + nh4(2)
            if (N_topsoil &lt; [fert_criteria]) then
               [fertmodule] apply amount = [fert_amount] (kg/ha), depth = 50 (mm), type = [fert_type] ()
            endif
         endif </text>
            <event>start_of_day</event>
          </script>
        </manager>
        <manager name="UnitConversion">
          <script>
            <text>
            </text>
            <event>init</event>
          </script>
          <script>
            <text>corn_buac   = maize_yield * 0.0159/0.85  ! corn yield in bushels/acre @15% moisture  

</text>
            <event>start_of_day</event>
          </script>
          <script>
            <text>
            </text>
            <event>end_of_day</event>
          </script>
        </manager>
        <manager name="Harvesting rule - maize">
          <ui>
            <category type="category" description="Harvesting criteria" />
            <crop type="crop" description="Enter name of crop to harvest when ripe : ">maize</crop>
          </ui>
          <script>
            <text>
           if ('[crop]' = 'cotton') then
              if ([crop].ozcot_status &gt; 0) then
                  [crop] harvest
              endif
           elseif ([crop].StageName = 'harvest_ripe' or [crop].plant_status = 'dead') then
              [crop]  harvest
              [crop]  end_crop
           endif
</text>
            <event>end_of_day</event>
          </script>
        </manager>
        <manager name="Harvesting rule - soybean">
          <ui>
            <category type="category" description="Harvesting criteria" />
            <crop type="crop" description="Enter name of crop to harvest when ripe : ">soybean</crop>
          </ui>
          <script>
            <text>
           if ([crop].StageName = 'harvest_ripe' or [crop].plant_status = 'dead') then
              [crop]  harvest
              [crop]  end_crop
           endif
        </text>
            <event>end_of_day</event>
          </script>
        </manager>
        <manager name="Rotations">
          <ui>
            <category type="category" description="Fallow options" />
            <SummerFallowName type="text" description="Enter summer fallow name : ">sf</SummerFallowName>
            <SummerFallowEndDate type="text" description="Enter summer fallow END date (dd-mmm) : ">15-nov</SummerFallowEndDate>
            <WinterFallowName type="text" description="Enter winter fallow name : ">wf</WinterFallowName>
            <WinterFallowEndDate type="text" description="Enter winter fallow END date (dd-mmm) : ">23-mar</WinterFallowEndDate>
            <category type="category" description="Crop rotation sequence" />
            <crop1 type="crop" description="Enter 1st crop : ">maize</crop1>
            <crop2 type="crop" description="Enter 2nd crop : ">soybean</crop2>
            <crop3 type="crop" description="Enter 3rd crop : ">nil</crop3>
            <crop4 type="crop" description="Enter 4th crop : ">nil</crop4>
            <crop5 type="crop" description="Enter 5th crop : ">nil</crop5>
            <crop6 type="crop" description="Enter 6th crop : ">nil</crop6>
            <crop7 type="crop" description="Enter 7th crop : ">nil</crop7>
            <crop8 type="crop" description="Enter 8th crop : ">nil</crop8>
            <crop9 type="crop" description="Enter 9th crop : ">nil</crop9>
            <crop10 type="crop" description="Enter 10th crop : ">nil</crop10>
            <crop11 type="crop" description="Enter 11th crop : ">nil</crop11>
            <crop12 type="crop" description="Enter 12th crop : ">nil</crop12>
            <crop13 type="crop" description="Enter 13th crop : ">nil</crop13>
            <crop14 type="crop" description="Enter 14th crop : ">nil</crop14>
            <crop15 type="crop" description="Enter 15th crop : ">nil</crop15>
            <crop16 type="crop" description="Enter 16th crop : ">nil</crop16>
            <crop17 type="crop" description="Enter 17th crop : ">nil</crop17>
            <crop18 type="crop" description="Enter 18th crop : ">nil</crop18>
            <crop19 type="crop" description="Enter 19th crop : ">nil</crop19>
            <crop20 type="crop" description="Enter 20th crop : ">nil</crop20>
          </ui>
          <script>
            <text>
         NextCropIndex = 1
         NextCrop = ' '
         ChooseNextCrop = 'yes'
         SummerFallowIn = 'no'
         WinterFallowIn = 'no'
         FallowIn = 'no'
				</text>
            <event>init</event>
          </script>
          <script>
            <text>
      if (ChooseNextCrop = 'yes') then
         if (NextCropIndex = 1) then
            NextCrop = '[crop1]'
         elseif (NextCropIndex = 2) then
            NextCrop = '[crop2]'
         elseif (NextCropIndex = 3) then
            NextCrop = '[crop3]'
         elseif (NextCropIndex = 4) then
            NextCrop = '[crop4]'
         elseif (NextCropIndex = 5) then
            NextCrop = '[crop5]'
         elseif (NextCropIndex = 6) then
            NextCrop = '[crop6]'
         elseif (NextCropIndex = 7) then
            NextCrop = '[crop7]'
         elseif (NextCropIndex = 8) then
            NextCrop = '[crop8]'
         elseif (NextCropIndex = 9) then
            NextCrop = '[crop9]'
         elseif (NextCropIndex = 10) then
            NextCrop = '[crop10]'
         elseif (NextCropIndex = 11) then
            NextCrop = '[crop11]'
         elseif (NextCropIndex = 12) then
            NextCrop = '[crop12]'
         elseif (NextCropIndex = 13) then
            NextCrop = '[crop13]'
         elseif (NextCropIndex = 14) then
            NextCrop = '[crop14]'
         elseif (NextCropIndex = 15) then
            NextCrop = '[crop15]'
         elseif (NextCropIndex = 16) then
            NextCrop = '[crop16]'
         elseif (NextCropIndex = 17) then
            NextCrop = '[crop17]'
         elseif (NextCropIndex = 18) then
            NextCrop = '[crop18]'
         elseif (NextCropIndex = 19) then
            NextCrop = '[crop19]'
         elseif (NextCropIndex = 20) then
            NextCrop = '[crop20]'
         endif
         if (NextCrop = 'nil' or NextCrop = ' ') then
            NextCrop = '[crop1]'
            NextCropIndex = 1
         endif
         NextCropIndex = NextCropIndex + 1
         ChooseNextCrop = 'no'
      endif
      ! if the next crop is due to be a fallow and we're within the
      ! correct date range then put a fallow in.
      if (NextCrop = '[WinterFallowName]') then
         if (paddock_is_fallow() = 1 and FallowIn = 'no') then
            if (date_within('[SummerFallowEndDate], [WinterFallowEndDate]') then
               WinterFallowIn = 'yes'
               FallowIn = 'yes'
               ChooseNextCrop = 'yes'
            endif
         endif
      elseif (NextCrop = '[SummerFallowName]') then
         if (paddock_is_fallow() = 1 and FallowIn = 'no') then
            if (date_within('[WinterFallowEndDate], [SummerFallowEndDate]') then
               SummerFallowIn = 'yes'
               FallowIn = 'yes'
               ChooseNextCrop = 'yes'
            endif
         endif
      endif

      ! if we currently have a fallow in and we're at the end of the fallow window
      ! then remove the fallow.
      if (WinterFallowIn = 'yes' and today = date('[WinterFallowEndDate]')+1) then
         WinterFallowIn = 'no'
         FallowIn = 'no'
      endif
      if (SummerFallowIn = 'yes' and today = date('[SummerFallowEndDate]')+1) then
         SummerFallowIn = 'no'
         FallowIn = 'no'
      endif
				</text>
            <event>start_of_day</event>
          </script>
        </manager>
      </folder>
      <maize />
      <soybean />
      <Soil name="Loam (Nicollet, No1)">
        <RecordNumber>0</RecordNumber>
        <SoilType>Nicollet</SoilType>
        <Region>Story</Region>
        <State>Iowa</State>
        <Country>US</Country>
        <ApsoilNumber>1</ApsoilNumber>
        <Latitude>42.049</Latitude>
        <Longitude>-93.4345</Longitude>
        <YearOfSampling>2015</YearOfSampling>
        <DataSource>Original data by http://websoilsurvey.sc.egov.usda.gov/App/HomePage.htm 
Profile developed by Integrated Cropping Systems Lab, Department of Agronomy, ISU
                           </DataSource>
        <Comments>The Nicollet series consists of very deep, somewhat poorly drained soils that formed in calcareous loamy glacial till on till plains and moraines. Slopes range from 0 to 5 percent. Mean annual air temperature is about 9 degrees C (48 degrees F). Mean annual precipitation is about 660 mm (28 inches).
TAXONOMIC CLASS: Fine-loamy, mixed, superactive, mesic Aquic Hapludolls
TYPICAL PEDON: Nicollet clay loam on a 2 percent plane slope in a cultivated field. (Colors are for moist soil unless otherwise stated.)
Ap--0 to 25 cm (0 to 10 inches); black (10YR 2/1) clay loam; weak fine subangular blocky structure; friable; about 2 percent gravel; slightly acid; abrupt smooth boundary. [18 to 28 cm (7 to 12 inches thick)]
A--25 to 43 cm (10 to 17 inches); very dark gray (10YR 3/1) clay loam; moderate fine subangular blocky structure; friable; about 5 percent gravel; common black (10YR 2/1) worm casts; slightly acid; gradual irregular boundary. [8 to 38 cm (3 to 15 inches thick)]
Bw--43 to 53 cm (17 to 21 inches); dark grayish brown (10YR 4/2) clay loam; moderate fine subangular blocky structure; friable; common very dark gray (10YR 3/1) worm casts; about 5 percent gravel; moderately acid; clear smooth boundary.
Bg1--53 to 74 cm (21 to 29 inches); dark grayish brown (2.5Y 4/2) clay loam; moderate fine prismatic structure parting to moderate fine subangular blocky; friable; few very dark gray (10YR 3/1) worm casts; about 5 percent gravel; common fine distinct olive brown (2.5Y 4/4) Fe concentrations; moderately acid; abrupt wavy boundary.
Bg2--74 to 84 cm (29 to 33 inches); dark grayish brown (2.5Y 4/2) clay loam; weak medium prismatic structure parting to moderate fine and medium subangular blocky; friable; few very dark gray (10YR 3/1) worm casts; about 5 percent gravel; few fine faint grayish brown (2.5Y 5/2) Fe depletions and a few fine distinct light olive brown (2.5Y 5/4) and prominent brown (7.5YR 5/4) Fe concentrations; slightly acid; abrupt wavy boundary. [Combined thickness of the B horizon is 15 to 51 cm (6 to 20 inches.)
BCg--84 to 91 cm (33 to 36 inches); grayish brown (2.5Y 5/2) clay loam; weak fine and medium subangular blocky structure; friable; few very dark gray (10YR 3/1) worm casts; about 5 percent gravel; many fine distinct light olive brown (2.5Y 5/4) Fe concentrations; slightly effervescent in parts; slightly alkaline; abrupt wavy boundary.[0 to 20 cm (0 to 8 inches thick) ]
BCkg--91 to 152 cm (36 to 60 inches); grayish brown (2.5Y 5/2) loam; massive in place breaking to angular fragments with greater horizontal than vertical dimensions; friable; about 5 percent gravel; common lime masses; many fine distinct light olive brown (2.5Y 5/4) and few fine prominent yellowish brown (10YR 5/8) Fe concentrations; few black (N 2/0) Fe-Mn concretions; strongly effervescent; slightly alkaline.
</Comments>
        <Water>
          <Thickness>
            <double>220</double>
            <double>220</double>
            <double>240</double>
            <double>240</double>
            <double>310</double>
            <double>310</double>
          </Thickness>
          <BD>
            <double>1.2</double>
            <double>1.2</double>
            <double>1.3</double>
            <double>1.3</double>
            <double>1.45</double>
            <double>1.45</double>
          </BD>
          <AirDry>
            <double>0.1431</double>
            <double>0.159</double>
            <double>0.159</double>
            <double>0.159</double>
            <double>0.159</double>
            <double>0.159</double>
          </AirDry>
          <LL15>
            <double>0.159</double>
            <double>0.159</double>
            <double>0.159</double>
            <double>0.159</double>
            <double>0.159</double>
            <double>0.159</double>
          </LL15>
          <DUL>
            <double>0.305</double>
            <double>0.305</double>
            <double>0.292</double>
            <double>0.292</double>
            <double>0.289</double>
            <double>0.289</double>
          </DUL>
          <SAT>
            <double>0.497169811320755</double>
            <double>0.497169811320755</double>
            <double>0.459433962264151</double>
            <double>0.459433962264151</double>
            <double>0.402830188679245</double>
            <double>0.402830188679245</double>
          </SAT>
          <KS>
            <double>613.656006914434</double>
            <double>613.656006914434</double>
            <double>613.656006914434</double>
            <double>613.656006914434</double>
            <double>613.656006914434</double>
            <double>613.656006914434</double>
          </KS>
          <BDMetadata>
            <string>Field measured and checked for sensibility</string>
            <string>Field measured and checked for sensibility</string>
            <string>Field measured and checked for sensibility</string>
            <string>Field measured and checked for sensibility</string>
            <string>Field measured and checked for sensibility</string>
            <string>Field measured and checked for sensibility</string>
          </BDMetadata>
          <AirDryMetadata>
            <string>Estimated based on local knowledge</string>
            <string>Estimated based on local knowledge</string>
            <string>Estimated based on local knowledge</string>
            <string>Estimated based on local knowledge</string>
            <string>Estimated based on local knowledge</string>
            <string>Estimated based on local knowledge</string>
          </AirDryMetadata>
          <LL15Metadata>
            <string>Estimated based on local knowledge</string>
            <string>Estimated based on local knowledge</string>
            <string>Estimated based on local knowledge</string>
            <string>Estimated based on local knowledge</string>
            <string>Estimated based on local knowledge</string>
            <string>Estimated based on local knowledge</string>
          </LL15Metadata>
          <DULMetadata>
            <string>Field measured and checked for sensibility</string>
            <string>Field measured and checked for sensibility</string>
            <string>Field measured and checked for sensibility</string>
            <string>Field measured and checked for sensibility</string>
            <string>Field measured and checked for sensibility</string>
            <string>Field measured and checked for sensibility</string>
          </DULMetadata>
          <SATMetadata>
            <string>Calculated from measured, estimated or calculated BD</string>
            <string>Calculated from measured, estimated or calculated BD</string>
            <string>Calculated from measured, estimated or calculated BD</string>
            <string>Calculated from measured, estimated or calculated BD</string>
            <string>Calculated from measured, estimated or calculated BD</string>
            <string>Calculated from measured, estimated or calculated BD</string>
          </SATMetadata>
          <SoilCrop name="maize">
            <Thickness>
              <double>220</double>
              <double>220</double>
              <double>240</double>
              <double>240</double>
              <double>310</double>
              <double>310</double>
            </Thickness>
            <LL>
              <double>0.159</double>
              <double>0.159</double>
              <double>0.159</double>
              <double>0.159</double>
              <double>0.159</double>
              <double>0.159</double>
            </LL>
            <KL>
              <double>0.08</double>
              <double>0.0718125712966553</double>
              <double>0.0612405445265024</double>
              <double>0.0517699244570876</double>
              <double>0.0427795108156789</double>
              <double>0.0345552382876754</double>
            </KL>
            <XF>
              <double>1</double>
              <double>1</double>
              <double>1</double>
              <double>1</double>
              <double>1</double>
              <double>1</double>
            </XF>
            <LLMetadata>
              <string>Estimated based on local knowledge</string>
              <string>Estimated based on local knowledge</string>
              <string>Estimated based on local knowledge</string>
              <string>Estimated based on local knowledge</string>
              <string>Estimated based on local knowledge</string>
              <string>Estimated based on local knowledge</string>
            </LLMetadata>
          </SoilCrop>
          <SoilCrop name="soybean">
            <Thickness>
              <double>220</double>
              <double>220</double>
              <double>240</double>
              <double>240</double>
              <double>310</double>
              <double>310</double>
            </Thickness>
            <LL>
              <double>0.159</double>
              <double>0.159</double>
              <double>0.159</double>
              <double>0.159</double>
              <double>0.159</double>
              <double>0.159</double>
            </LL>
            <KL>
              <double>0.08</double>
              <double>0.0718125712966553</double>
              <double>0.0612405445265024</double>
              <double>0.0517699244570876</double>
              <double>0.0427795108156789</double>
              <double>0.0345552382876754</double>
            </KL>
            <XF>
              <double>1</double>
              <double>1</double>
              <double>1</double>
              <double>1</double>
              <double>1</double>
              <double>1</double>
            </XF>
            <LLMetadata>
              <string>Estimated based on local knowledge</string>
              <string>Estimated based on local knowledge</string>
              <string>Estimated based on local knowledge</string>
              <string>Estimated based on local knowledge</string>
              <string>Estimated based on local knowledge</string>
              <string>Estimated based on local knowledge</string>
            </LLMetadata>
          </SoilCrop>
        </Water>
        <SoilWater>
          <SummerCona>3.9</SummerCona>
          <SummerU>8.8</SummerU>
          <SummerDate>1-jun</SummerDate>
          <WinterCona>3.9</WinterCona>
          <WinterU>8.8</WinterU>
          <WinterDate>1-nov</WinterDate>
          <DiffusConst>40</DiffusConst>
          <DiffusSlope>16</DiffusSlope>
          <Salb>0.13</Salb>
          <CN2Bare>73</CN2Bare>
          <CNRed>20</CNRed>
          <CNCov>0.8</CNCov>
          <Slope>NaN</Slope>
          <DischargeWidth>NaN</DischargeWidth>
          <CatchmentArea>NaN</CatchmentArea>
          <MaxPond>NaN</MaxPond>
          <Thickness>
            <double>220</double>
            <double>220</double>
            <double>240</double>
            <double>240</double>
            <double>310</double>
            <double>310</double>
          </Thickness>
          <SWCON>
            <double>0.442586206896552</double>
            <double>0.442586206896552</double>
            <double>0.426814814814815</double>
            <double>0.426814814814815</double>
            <double>0.361791666666667</double>
            <double>0.361791666666667</double>
          </SWCON>
        </SoilWater>
        <SoilOrganicMatter>
          <RootCN>45</RootCN>
          <RootWt>1000</RootWt>
          <SoilCN>13</SoilCN>
          <EnrACoeff>7.4</EnrACoeff>
          <EnrBCoeff>0.2</EnrBCoeff>
          <Thickness>
            <double>220</double>
            <double>220</double>
            <double>240</double>
            <double>240</double>
            <double>310</double>
            <double>310</double>
          </Thickness>
          <OC>
            <double>3.19767441860465</double>
            <double>3.19767441860465</double>
            <double>0.436046511627907</double>
            <double>0.436046511627907</double>
            <double>0.145348837209302</double>
            <double>0.145348837209302</double>
          </OC>
          <OCMetadata>
            <string>Estimated based on local knowledge</string>
            <string>Estimated based on local knowledge</string>
            <string>Estimated based on local knowledge</string>
            <string>Estimated based on local knowledge</string>
            <string>Estimated based on local knowledge</string>
            <string>Estimated based on local knowledge</string>
          </OCMetadata>
          <FBiom>
            <double>0.0388749912925</double>
            <double>0.015149996517</double>
            <double>0.01059999406</double>
            <double>0.01</double>
            <double>0.01</double>
            <double>0.01</double>
          </FBiom>
          <FInert>
            <double>0.40600004644</double>
            <double>0.57800013932</double>
            <double>0.7600002376</double>
            <double>0.8</double>
            <double>0.8</double>
            <double>0.857600236304</double>
          </FInert>
          <OCUnits>Total</OCUnits>
        </SoilOrganicMatter>
        <Analysis>
          <Thickness>
            <double>220</double>
            <double>220</double>
            <double>240</double>
            <double>240</double>
            <double>310</double>
            <double>310</double>
          </Thickness>
          <Texture>
            <string>L</string>
            <string>L</string>
            <string>L</string>
            <string>L</string>
            <string>L</string>
            <string>L</string>
          </Texture>
          <MunsellColour>
            <string />
            <string />
            <string />
            <string />
            <string />
            <string />
          </MunsellColour>
          <PH>
            <double>5.532</double>
            <double>5.532</double>
            <double>5.532</double>
            <double>5.532</double>
            <double>6.804</double>
            <double>6.804</double>
          </PH>
          <PHMetadata>
            <string>Estimated based on local knowledge</string>
            <string>Estimated based on local knowledge</string>
            <string>Estimated based on local knowledge</string>
            <string>Estimated based on local knowledge</string>
            <string>Estimated based on local knowledge</string>
            <string>Estimated based on local knowledge</string>
          </PHMetadata>
          <CEC>
            <double>20.5</double>
            <double>20.5</double>
            <double>20.5</double>
            <double>20.5</double>
            <double>20.5</double>
            <double>20.5</double>
          </CEC>
          <CECMetadata>
            <string>Measured</string>
            <string>Measured</string>
            <string>Measured</string>
            <string>Measured</string>
            <string>Measured</string>
            <string>Measured</string>
          </CECMetadata>
          <ParticleSizeSand>
            <double>38</double>
            <double>38</double>
            <double>34</double>
            <double>34</double>
            <double>37</double>
            <double>37</double>
          </ParticleSizeSand>
          <ParticleSizeSandMetadata>
            <string>Measured</string>
            <string>Measured</string>
            <string>Measured</string>
            <string>Measured</string>
            <string>Measured</string>
            <string>Measured</string>
          </ParticleSizeSandMetadata>
          <ParticleSizeSilt>
            <double>36</double>
            <double>36</double>
            <double>37</double>
            <double>37</double>
            <double>36</double>
            <double>36</double>
          </ParticleSizeSilt>
          <ParticleSizeSiltMetadata>
            <string>Measured</string>
            <string>Measured</string>
            <string>Measured</string>
            <string>Measured</string>
            <string>Measured</string>
            <string>Measured</string>
          </ParticleSizeSiltMetadata>
          <ParticleSizeClay>
            <double>26</double>
            <double>26</double>
            <double>29</double>
            <double>29</double>
            <double>27</double>
            <double>27</double>
          </ParticleSizeClay>
          <ParticleSizeClayMetadata>
            <string>Measured</string>
            <string>Measured</string>
            <string>Measured</string>
            <string>Measured</string>
            <string>Measured</string>
            <string>Measured</string>
          </ParticleSizeClayMetadata>
          <PHUnits>Water</PHUnits>
          <BoronUnits>HotWater</BoronUnits>
        </Analysis>
        <InitialWater>
          <FractionFull>1</FractionFull>
          <DepthWetSoil>NaN</DepthWetSoil>
          <PercentMethod>FilledFromTop</PercentMethod>
        </InitialWater>
        <Sample name="InitialNitrogen">
          <Thickness>
            <double>220</double>
            <double>220</double>
            <double>240</double>
            <double>240</double>
            <double>310</double>
            <double>310</double>
          </Thickness>
          <NO3>
            <double>10</double>
            <double>7</double>
            <double>5</double>
            <double>4</double>
            <double>2</double>
            <double>1</double>
          </NO3>
          <NH4>
            <double>5</double>
            <double>4</double>
            <double>3</double>
            <double>2</double>
            <double>1</double>
            <double>0</double>
          </NH4>
          <NO3Units>kgha</NO3Units>
          <NH4Units>kgha</NH4Units>
          <SWUnits>Volumetric</SWUnits>
          <OCUnits>Total</OCUnits>
          <PHUnits>Water</PHUnits>
        </Sample>
        <SoilTemperature>
          <BoundaryLayerConductance>20</BoundaryLayerConductance>
          <Thickness>
            <double>100</double>
            <double>200</double>
            <double>300</double>
            <double>600</double>
          </Thickness>
          <InitialSoilTemperature>
            <double>20</double>
            <double>22</double>
            <double>25</double>
            <double>25</double>
          </InitialSoilTemperature>
        </SoilTemperature>
      </Soil>
      <outputfile>
        <filename name="filename" output="yes">Maize-soybean.out</filename>
        <title>Maize-soybean</title>
        <variables name="My Variables">
          <variable>dd/mm/yyyy as Date</variable>
          <variable>sw</variable>
          <variable>ave_soil_temp</variable>
        </variables>
        <events name="My Variables Events">
          <event>daily</event>
        </events>
      </outputfile>
      <Graph name="biomass-yield-stover">
        <Legend>
          <CheckedTitles> Maize-soybean</CheckedTitles>
        </Legend>
        <Plot>
          <SeriesType>Solid line</SeriesType>
          <PointType>Circle</PointType>
          <colour>
          </colour>
          <X>Date</X>
          <Y>paddock.maize.biomass</Y>
          <GDApsimFileReader name="ApsimFileReader" />
        </Plot>
      </Graph>
      <Graph name="leaf_no">
        <Legend>
        </Legend>
        <Plot>
          <SeriesType>Solid line</SeriesType>
          <PointType>Circle</PointType>
          <colour>
          </colour>
          <X>Date</X>
          <Y>leaf_no</Y>
          <GDApsimFileReader name="ApsimFileReader" />
        </Plot>
      </Graph>
      <Graph name="leaf_area">
        <Legend>
          <CheckedTitles> Maize</CheckedTitles>
        </Legend>
        <Plot>
          <SeriesType>Solid line</SeriesType>
          <PointType>Circle</PointType>
          <colour>
          </colour>
          <X>Date</X>
          <Y>lai_sum</Y>
          <GDApsimFileReader name="ApsimFileReader" />
        </Plot>
      </Graph>
      <Graph name="individual-leaf-area">
        <Legend>
          <CheckedTitles> leaf_area(1)</CheckedTitles>
          <CheckedTitles> leaf_area(2)</CheckedTitles>
          <CheckedTitles> leaf_area(3)</CheckedTitles>
          <CheckedTitles> leaf_area(4)</CheckedTitles>
          <CheckedTitles> leaf_area(5)</CheckedTitles>
          <CheckedTitles> leaf_area(6)</CheckedTitles>
          <CheckedTitles> leaf_area(7)</CheckedTitles>
          <CheckedTitles> leaf_area(8)</CheckedTitles>
          <CheckedTitles> leaf_area(9)</CheckedTitles>
          <CheckedTitles> leaf_area(10)</CheckedTitles>
          <CheckedTitles> leaf_area(11)</CheckedTitles>
          <CheckedTitles> leaf_area(12)</CheckedTitles>
          <CheckedTitles> leaf_area(13)</CheckedTitles>
          <CheckedTitles> leaf_area(14)</CheckedTitles>
          <CheckedTitles> leaf_area(15)</CheckedTitles>
          <CheckedTitles> leaf_area(16)</CheckedTitles>
          <CheckedTitles> leaf_area(17)</CheckedTitles>
          <CheckedTitles> leaf_area(18)</CheckedTitles>
        </Legend>
        <Format>[encoded data, 23776 characters]</Format>
        <Plot>
          <SeriesType>Solid line</SeriesType>
          <PointType>Circle</PointType>
          <colour>
          </colour>
          <X>Date</X>
          <Y>leaf_area(1)</Y>
          <Y>leaf_area(2)</Y>
          <Y>leaf_area(3)</Y>
          <Y>leaf_area(4)</Y>
          <Y>leaf_area(5)</Y>
          <Y>leaf_area(6)</Y>
          <Y>leaf_area(7)</Y>
          <Y>leaf_area(8)</Y>
          <Y>leaf_area(9)</Y>
          <Y>leaf_area(10)</Y>
          <Y>leaf_area(11)</Y>
          <Y>leaf_area(12)</Y>
          <Y>leaf_area(13)</Y>
          <Y>leaf_area(14)</Y>
          <Y>leaf_area(15)</Y>
          <Y>leaf_area(16)</Y>
          <Y>leaf_area(17)</Y>
          <Y>leaf_area(18)</Y>
          <GDApsimFileReader name="ApsimFileReader" />
        </Plot>
      </Graph>
      <Graph name="Crop Nitrogen">
        <Legend>
          <CheckedTitles> n_conc_leaf_crit</CheckedTitles>
          <CheckedTitles> n_conc_leaf_max</CheckedTitles>
          <CheckedTitles> n_conc_leaf_min</CheckedTitles>
        </Legend>
        <Plot>
          <SeriesType>Solid line</SeriesType>
          <PointType>Circle</PointType>
          <colour>
          </colour>
          <X>Date</X>
          <Y>n_conc_leaf_crit</Y>
          <Y>n_conc_leaf_max</Y>
          <Y>n_conc_leaf_min</Y>
          <GDApsimFileReader name="ApsimFileReader" />
        </Plot>
      </Graph>
      <Graph name="Water stress">
        <Legend>
          <CheckedTitles> sw_stress_expan</CheckedTitles>
          <CheckedTitles> sw_stress_pheno</CheckedTitles>
          <CheckedTitles> sw_stress_photo</CheckedTitles>
        </Legend>
        <Plot>
          <SeriesType>Solid line</SeriesType>
          <PointType>Circle</PointType>
          <colour>
          </colour>
          <X>Date</X>
          <Y>sw_stress_expan</Y>
          <Y>sw_stress_pheno</Y>
          <Y>sw_stress_photo</Y>
          <GDApsimFileReader name="ApsimFileReader" />
        </Plot>
      </Graph>
    </area>
  </simulation>
  <factorial name="Factorials">
    <active>0</active>
    <settings />
    <factor name="sowing">
      <targets>
        <Target>/simulations/Maize-soybean/paddock/Manager folder/Sow on a fixed date</Target>
      </targets>
      <vars>
      </vars>
      <manager name="Sow on a fixed date">
        <ui>
          <category type="category" description="Sowing criteria" />
          <date type="text" description="Enter sowing date (dd-mmm) : ">1-may</date>
          <category type="category" description="Sowing parameters" />
          <crop type="crop" description="Enter name of crop to sow : ">maize</crop>
          <density type="text" description="Enter sowing density  (plants/m2) : ">7.5</density>
          <depth type="text" description="Enter sowing depth  (mm) : ">50</depth>
          <cultivar type="cultivars" description="Enter cultivar : ">B_110</cultivar>
          <class type="classes" description="Enter crop growth class : ">plant</class>
          <row_spacing type="text" description="Enter row spacing (mm) : ">760</row_spacing>
        </ui>
        <script>
          <text>
        if (today = date('[date]') then
              [crop] sow plants =[density], sowing_depth = [depth], cultivar = [cultivar], row_spacing = [row_spacing], crop_class = [class]
         endif
               </text>
          <event>start_of_day</event>
        </script>
      </manager>
      <manager name="Sow on a fixed date1">
        <ui>
          <category type="category" description="Sowing criteria" />
          <date type="text" description="Enter sowing date (dd-mmm) : ">15-may</date>
          <category type="category" description="Sowing parameters" />
          <crop type="crop" description="Enter name of crop to sow : ">maize</crop>
          <density type="text" description="Enter sowing density  (plants/m2) : ">7.5</density>
          <depth type="text" description="Enter sowing depth  (mm) : ">50</depth>
          <cultivar type="cultivars" description="Enter cultivar : ">B_110</cultivar>
          <class type="classes" description="Enter crop growth class : ">plant</class>
          <row_spacing type="text" description="Enter row spacing (mm) : ">760</row_spacing>
        </ui>
        <script>
          <text>
        if (today = date('[date]') then
              [crop] sow plants =[density], sowing_depth = [depth], cultivar = [cultivar], row_spacing = [row_spacing], crop_class = [class]
         endif
               </text>
          <event>start_of_day</event>
        </script>
      </manager>
      <manager name="Sow on a fixed date2">
        <ui>
          <category type="category" description="Sowing criteria" />
          <date type="text" description="Enter sowing date (dd-mmm) : ">20-may</date>
          <category type="category" description="Sowing parameters" />
          <crop type="crop" description="Enter name of crop to sow : ">maize</crop>
          <density type="text" description="Enter sowing density  (plants/m2) : ">7.5</density>
          <depth type="text" description="Enter sowing depth  (mm) : ">50</depth>
          <cultivar type="cultivars" description="Enter cultivar : ">B_110</cultivar>
          <class type="classes" description="Enter crop growth class : ">plant</class>
          <row_spacing type="text" description="Enter row spacing (mm) : ">760</row_spacing>
        </ui>
        <script>
          <text>
        if (today = date('[date]') then
              [crop] sow plants =[density], sowing_depth = [depth], cultivar = [cultivar], row_spacing = [row_spacing], crop_class = [class]
         endif
               </text>
          <event>start_of_day</event>
        </script>
      </manager>
    </factor>
    <factor name="nitrogen">
      <targets>
        <Target>/simulations/Maize-soybean/paddock/Manager folder/Fertilise on fixed date</Target>
      </targets>
      <vars>
      </vars>
      <manager name="Fertilise on fixed date">
        <ui>
          <category type="category" description="When should fertiliser be applied" />
          <fert_date type="ddmmmdate" description="Enter fertiliser date (dd-mmm) : ">5-may</fert_date>
          <fert_criteria type="text" description="Don't add fertiliser if N in top 2 layers exceeds (kg/ha) : ">1000</fert_criteria>
          <category type="category" description="Fertiliser application details" />
          <fertmodule type="modulename" description="Module used to apply the fertiliser : ">fertiliser</fertmodule>
          <fert_amount type="text" description="Amount of fertiliser to apply (kg/ha) : ">150</fert_amount>
          <fert_type type="list" listvalues="NO3_N, NH4_N, NH4NO3, urea_N, urea_no3, urea, nh4so4_n, rock_p, banded_p, broadcast_p" description="Fertiliser type : ">urea_N</fert_type>
        </ui>
        <script>
          <text>
         if (today = date('[fert_date]') then
            N_topsoil = no3(1) + nh4(1) + no3(2) + nh4(2)
            if (N_topsoil &lt; [fert_criteria]) then
               [fertmodule] apply amount = [fert_amount] (kg/ha), depth = 50 (mm), type = [fert_type] ()
            endif
         endif </text>
          <event>start_of_day</event>
        </script>
      </manager>
      <manager name="Fertilise on fixed date1">
        <ui>
          <category type="category" description="When should fertiliser be applied" />
          <fert_date type="ddmmmdate" description="Enter fertiliser date (dd-mmm) : ">5-may</fert_date>
          <fert_criteria type="text" description="Don't add fertiliser if N in top 2 layers exceeds (kg/ha) : ">1000</fert_criteria>
          <category type="category" description="Fertiliser application details" />
          <fertmodule type="modulename" description="Module used to apply the fertiliser : ">fertiliser</fertmodule>
          <fert_amount type="text" description="Amount of fertiliser to apply (kg/ha) : ">100</fert_amount>
          <fert_type type="list" listvalues="NO3_N, NH4_N, NH4NO3, urea_N, urea_no3, urea, nh4so4_n, rock_p, banded_p, broadcast_p" description="Fertiliser type : ">urea_N</fert_type>
        </ui>
        <script>
          <text>
         if (today = date('[fert_date]') then
            N_topsoil = no3(1) + nh4(1) + no3(2) + nh4(2)
            if (N_topsoil &lt; [fert_criteria]) then
               [fertmodule] apply amount = [fert_amount] (kg/ha), depth = 50 (mm), type = [fert_type] ()
            endif
         endif </text>
          <event>start_of_day</event>
        </script>
      </manager>
      <manager name="Fertilise on fixed date2">
        <ui>
          <category type="category" description="When should fertiliser be applied" />
          <fert_date type="ddmmmdate" description="Enter fertiliser date (dd-mmm) : ">5-may</fert_date>
          <fert_criteria type="text" description="Don't add fertiliser if N in top 2 layers exceeds (kg/ha) : ">1000</fert_criteria>
          <category type="category" description="Fertiliser application details" />
          <fertmodule type="modulename" description="Module used to apply the fertiliser : ">fertiliser</fertmodule>
          <fert_amount type="text" description="Amount of fertiliser to apply (kg/ha) : ">50</fert_amount>
          <fert_type type="list" listvalues="NO3_N, NH4_N, NH4NO3, urea_N, urea_no3, urea, nh4so4_n, rock_p, banded_p, broadcast_p" description="Fertiliser type : ">urea_N</fert_type>
        </ui>
        <script>
          <text>
         if (today = date('[fert_date]') then
            N_topsoil = no3(1) + nh4(1) + no3(2) + nh4(2)
            if (N_topsoil &lt; [fert_criteria]) then
               [fertmodule] apply amount = [fert_amount] (kg/ha), depth = 50 (mm), type = [fert_type] ()
            endif
         endif </text>
          <event>start_of_day</event>
        </script>
      </manager>
    </factor>
    <factor name="cultivar">
      <targets>
        <Target>/simulations/Maize-soybean/paddock/Manager folder/Sow on a fixed date</Target>
        <Target>/simulations/Maize-soybean/paddock/Manager folder/Sow on a fixed date</Target>
      </targets>
      <vars>
        <cultivar>B_110, B_130</cultivar>
      </vars>
      <manager name="Sow on a fixed date">
        <ui>
          <category type="category" description="Sowing criteria" />
          <date type="text" description="Enter sowing date (dd-mmm) : ">1-may</date>
          <category type="category" description="Sowing parameters" />
          <crop type="crop" description="Enter name of crop to sow : ">maize</crop>
          <density type="text" description="Enter sowing density  (plants/m2) : ">7.5</density>
          <depth type="text" description="Enter sowing depth  (mm) : ">50</depth>
          <cultivar type="cultivars" description="Enter cultivar : ">B_110</cultivar>
          <class type="classes" description="Enter crop growth class : ">plant</class>
          <row_spacing type="text" description="Enter row spacing (mm) : ">760</row_spacing>
        </ui>
        <script>
          <text>
        if (today = date('[date]') then
              [crop] sow plants =[density], sowing_depth = [depth], cultivar = [cultivar], row_spacing = [row_spacing], crop_class = [class]
         endif
               </text>
          <event>start_of_day</event>
        </script>
      </manager>
    </factor>
  </factorial>
</folder>