contrailopt.validate_flight_profile

contrailopt.validate_flight_profile(ds: Dataset, n_nodes: int) → Dataset[source]

Validate and format a (waypoint, altitude_ft) flight profile for the track solver.

Returns a dataset carrying the met variables under their original names (air_temperature, u_wind, v_wind, and optional eef_per_m), each cast to float32 and oriented (waypoint, altitude_ft).

NaN in the core weather variables raises, while NaN in eef_per_m is zero-filled. Use contrailopt.fill_nan_spatial() on the gridded met fill NaNs.