1
0
Fork 0

Expose the cloud layer type to the property tree

This commit is contained in:
Torsten Dreyer 2010-11-26 19:27:05 +01:00
parent 1223b4af9e
commit f92eac7696

View file

@ -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);
}
}