Expose the cloud layer type to the property tree
This commit is contained in:
parent
1223b4af9e
commit
f92eac7696
1 changed files with 5 additions and 7 deletions
|
@ -281,10 +281,7 @@ void FGClouds::buildCloudLayers(void) {
|
|||
double temperature_degc = metar_root->getDoubleValue("temperature-sea-level-degc");
|
||||
double dewpoint_degc = metar_root->getDoubleValue("dewpoint-sea-level-degc");
|
||||
double pressure_mb = metar_root->getDoubleValue("pressure-sea-level-inhg") * SG_INHG_TO_PA / 100.0;
|
||||
|
||||
double dewp = pow(10.0, 7.5 * dewpoint_degc / (237.7 + dewpoint_degc));
|
||||
double temp = pow(10.0, 7.5 * temperature_degc / (237.7 + temperature_degc));
|
||||
double rel_humidity = dewp * 100 / temp;
|
||||
double rel_humidity = metar_root->getDoubleValue("relative-humidity");
|
||||
|
||||
// formule d'Epsy, base d'un cumulus
|
||||
double cumulus_base = 122.0 * (temperature_degc - dewpoint_degc);
|
||||
|
@ -337,6 +334,7 @@ void FGClouds::buildCloudLayers(void) {
|
|||
}
|
||||
}
|
||||
|
||||
cloud_root->setStringValue("layer-type",layer_type);
|
||||
buildLayer(iLayer, layer_type, alt_m, coverage_norm);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue