GetNonzeroCount


This tool will return the number of patches per year of the simulation that have an abundance greater than zero.

Arguments

MPFile Start_Year Delimiter

MPFile is the metapop file to process
Start_Year is the first year of the simulation. Each subsequent time-step is assumed to be one year after this
Delimiter is the character used to delimit the fields in the outputs

Outputs

The outputs are the number of patches loaded, a header, and a time-series of the year, number of patches with abundance greater than zero, and the percentage of patches with greater than zero abundance.

Example

The command:

getnonzerocount example.mp 2000 ,

yields the following output:

Patches,358
Year,Count,%
2000,124,34.6369
2001,127,35.4749
2002,135,37.7095
2003,131,36.5922
2004,128,35.7542
2005,133,37.1508
2006,140,39.1061
2007,143,39.9441
2008,150,41.8994
2009,148,41.3408
2010,146,40.7821
2011,155,43.2961
2012,153,42.7374
2013,155,43.2961
2014,151,42.1788
2015,145,40.5028
2016,143,39.9441
2017,139,38.8268
2018,156,43.5754
2019,149,41.6201




Back to RAMAS Metapop Tools main page.


Maintained by Dr Michael J. Watts