{
  "tool": "msc-mineral-economics--mining.resource_tonnage",
  "name": "Tonnage and contained metal (CDU-BUS-MIN-900)",
  "answers": "How many tonnes does this volume hold, and how much metal do they contain?",
  "degree": {
    "id": "competency:msc-mineral-economics--mining",
    "code": "CDU-BUS-MIN-900",
    "name": "MSc Mineral Economics & Mining",
    "version": "1.0.0"
  },
  "reference": "SAMREC Code (2016) and JORC Code (2012) Table 1: tonnage, grade and contained metal reported together; density on a dry basis",
  "endpoint": "/faculty/msc-mineral-economics--mining/resource_tonnage",
  "feeSt": 1,
  "inputSchema": {
    "type": "object",
    "required": [
      "pan",
      "volume",
      "density",
      "grade",
      "gradeUnit"
    ],
    "properties": {
      "pan": {
        "type": "string",
        "description": "The student PAN — the degree must be held in one of its five slots",
        "pattern": "^[0-9 ]{16,19}$"
      },
      "volume": {
        "type": "number",
        "description": "Volume in cubic metres",
        "minimum": 0
      },
      "density": {
        "type": "number",
        "description": "Dry bulk density, t/m³",
        "minimum": 0.1,
        "maximum": 25
      },
      "grade": {
        "type": "number",
        "description": "Average grade",
        "minimum": 0
      },
      "gradeUnit": {
        "type": "string",
        "description": "g/t for precious metals, % for base metals",
        "enum": [
          "g/t",
          "%"
        ]
      }
    },
    "additionalProperties": false
  },
  "outputSchema": {
    "type": "object",
    "required": [
      "tonnes",
      "containedMetal",
      "metalUnit",
      "troyOunces"
    ],
    "properties": {
      "tonnes": {
        "type": "number",
        "description": "Volume × density"
      },
      "containedMetal": {
        "type": "number",
        "description": "kg (g/t) or tonnes (%)"
      },
      "metalUnit": {
        "type": "string",
        "description": "kg or t"
      },
      "troyOunces": {
        "type": "number",
        "description": "For g/t grades; null for %"
      }
    },
    "additionalProperties": false
  },
  "example": {
    "volume": 2500000,
    "density": 2.7,
    "grade": 3.2,
    "gradeUnit": "g/t"
  }
}