Commit 7c3c1466 authored by Roger.Grau.Haro's avatar Roger.Grau.Haro
Browse files

klett update

parent 12360e4f
Pipeline #7905 failed with stages
in 0 seconds
......@@ -143,9 +143,9 @@ class AtcaWizard():
#set date to string to access weather data
self.weather_closest_date = self.weather_closest_date.strftime("%Y-%m-%dT%H:%M:%S")
self.ws_temperature = weather_data[self.weather_closest_date]["temperature"]
self.ws_pressure = weather_data[self.weather_closest_date]["pressure"]
self.ws_humidity = weather_data[self.weather_closest_date]["humidity"]
self.ws_temperature = weather_data[self.weather_closest_date]["temperature"] * u.deg_C
self.ws_pressure = weather_data[self.weather_closest_date]["pressure"] * u.hPa
self.ws_humidity = weather_data[self.weather_closest_date]["humidity"]
def get_atmospheric_profile_data(self, date: datetime, max_time_diff: float = 3):
......@@ -356,8 +356,7 @@ class AtcaWizard():
# Aquestes dades son pel test
#self.ws_pressure = 786.48 * u.hPa
#self.ws_temperature = 12.52
beta_mol_MAGIC = self.beta_mol_0 * self.ws_pressure / Rayleigh.pressure_us_standard * Rayleigh.temperature_us_standard / ((self.ws_temperature + 273.15) * u.K)
#print("beta_mol_magic:", beta_mol_MAGIC, "self.betamol:", self.beta_mol_0, "mul:", * self.ws_pressure / Rayleigh.pressure_us_standard * Rayleigh.temperature_us_standard / ((self.ws_temperature + 273.15) * u.K))
beta_mol_MAGIC = self.beta_mol_0 * self.ws_pressure / Rayleigh.pressure_us_standard * Rayleigh.temperature_us_standard / ((self.ws_temperature.value + 273.15) * u.K)
tmin = np.abs(height.value - hmin.value)
tmax = np.abs(height.value - hmax.value)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment