DEVS-Fire API

loadSlope

Upload a custom slope map from a space- or tab-separated .txt file. Sent as a raw `text/plain` body with a `fileName` header. Also updates `cellResolution` from the file's `cellsize` field if present. **File format:** space- or tab-separated grid of double-precision slope values (percent), one row per line. Must match the dimensions of any uploaded fuel or aspect map.

POST
/loadSlope

Request Body

text/plain

body*string

Space- or tab-separated .txt file of slope values.

Query Parameters

Prop

Type

Header Parameters

Prop

Type

import requestsbase_url: str = "https://firesim.cs.gsu.edu/api/loadSlope/"response = requests.post(    base_url,    params={"userToken": "abc123xyz"},    files={"file": open("slope.txt", "rb")},    headers={"fileName": "slope.txt"},)print(response.text)
"Slope Map Updated"
""
{
  "timestamp": "2026-05-20T16:42:18.015+00:00",
  "status": 500,
  "error": "Internal Server Error",
  "path": "/api/loadSlope"
}

Response Body

text/plain

text/plain

application/json