• Documentation
  • Core API
  • SmartOpenHamburg API
  • Model Components API
  • Common API

    Show / Hide Table of Contents
    • MARS DSL Language
    • MARS Runtime System
      • Getting started with MARS
      • Basic Concepts
        • Multi-Agent-Simulation
        • Agents
        • Layers
        • Entities
        • Environments
        • Model Setup
      • Model Configuration
        • Agent and Entity Configuration
        • Layer Configuration
        • Output Filter
        • Simulation Configuration Options
        • Simulation Output Formats
      • Data Sources
        • Geospatial Data Sources
        • Geospatial Data Types
        • ASCII grid (.asc)
        • CSV
        • Time-series Data
      • Analysis and Visualization
        • Visualizing Agent Movement Trajectories
        • Simple Live Visualization
        • Analyzing Output Data
      • Tutorials
        • Creating a new MARS C# project
        • Creating a starting point for your model
        • Creating vector and raster layer files
        • Building your first model (wolf-sheep-grass)
        • Common problems and solutions
        • Acquire geo data for layers
        • Build and start your model in Kubernetes cluster
    • SmartOpenHamburg
      • Quick Start
      • Ready to use scenarios (boxes)
        • Ferry Transfer
        • Green4Bikes
        • Results
        • Result Schemas
      • Layer
        • Multimodal Layer
        • Modal Layer
        • Scheduling Layer
        • Vector Layer
      • Agents
        • Behaviour Model
        • Multimodal
        • Multi-Capable
        • Multi-Modality
        • Citizen
        • Traveler
      • Entities
        • Referencing
        • Street Vehicles
        • Bicycle Vehicles
        • Ferry

    ASC files

    ASC files can be used to store cell-based information that can be loaded into a raster layer of a MARS model. For example, a temperature layer can be created using information from an .asc file to define different temperatures across the simulation environment.

    Here is an example of a .asc file with a four-by-four grid (ncols x nrows). xllcorner and yllcorner define the x- and y-coordinate of the lower-left corner of the grid-cell array that is to stretch across the layer. cell size defines the incremental size of a single cell. At the bottom of the file, the values of each cell are explicitly defined and separated by spaces.

    ncols 4
    nrows 4
    xllcorner 30.5
    yllcorner -26
    cellsize 0.5
    nodata_value -9999
    17 20 23 25
    16 21 24 25
    16 22 24 25
    21 23 24 24
    

    For more information on .asc files:

    • ArcGIS Raster and Images
    • ArgGIS Conversion ASCII to Raster
    Back to top © 2022 MARS GROUP