//--------------------------------------------------------------------- private IOutputRaster <AgePixel> CreateMap(string species, int currentTime) { string path = MapNames.ReplaceTemplateVars(mapNameTemplate, species, currentTime); UI.WriteLine("Writing age map to {0} ...", path); return(Util.Raster.Create <AgePixel>(path, Model.LandscapeMapDims, Model.LandscapeMapMetadata)); }
//--------------------------------------------------------------------- private IOutputRaster <AgePixel> CreateMap(string species) { string path = MapNames.ReplaceTemplateVars(mapNameTemplate, species, modelCore.CurrentTime); UI.WriteLine("Writing age map to {0} ...", path); return(modelCore.CreateRaster <AgePixel>(path, modelCore.Landscape.Dimensions, modelCore.LandscapeMapMetadata)); }