/api/v1/e6b/cloud-base/calculateCommercial PilotCalculate Cloud Base
Estimates cloud base height AGL from surface temperature and dewpoint spread.
Code Examples
curl \
-X POST \
-H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"temperatureCelsius": 0,
"dewpointCelsius": 0
}' \
"https://api.preflightapi.io/api/v1/e6b/cloud-base/calculate"curl \
-X POST \
-H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"temperatureCelsius": 0,
"dewpointCelsius": 0
}' \
"https://api.preflightapi.io/api/v1/e6b/cloud-base/calculate"Description
Uses the standard pilot rule of thumb: cloud base (ft AGL) = (temperature - dewpoint) * 400. This approximates the lifting condensation level based on the average dry adiabatic lapse rate (~3°C/1000 ft) and dewpoint lapse rate (~0.5°C/1000 ft).
Response Fields
EstimatedCloudBaseFtAgl— estimated height of the cloud base above ground level (feet)
TemperatureDewpointSpreadCelsius— the difference between temperature and dewpoint (degrees Celsius)
*Note:* Actual cloud bases vary with humidity profiles, inversions, and local convective conditions. A small spread (less than 3°C) generally indicates a high likelihood of low ceilings or fog.
Request BodyCloudBaseRequestDto
Surface temperature in degrees Celsius
Dewpoint temperature in degrees Celsius (must be ≤ temperature)
Response Schema
Estimated cloud base in feet AGL
Temperature/dewpoint spread in degrees Celsius
Surface temperature used in calculation (°C)
Dewpoint used in calculation (°C)
Machine-readable error code (e.g., "AIRCRAFT_NOT_FOUND").
Human-readable error message suitable for display.
Additional error details (only included in development environment).
Name of the external service that failed (only included for 503 errors).
Field-level validation errors (only for validation failures).
UTC timestamp when the error occurred.
Correlation ID for tracing the request.
Request path that generated the error.