Commit 5d4e8a97 authored by Miguel Tremblay's avatar Miguel Tremblay
Browse files

Merge branch 'coor' into 'master'

verify if Lat,Lon is missing in station configuration

See merge request !5
parents c81767a2 ac38ad5f
......@@ -95,7 +95,12 @@ class Metro_preprocess_fsint2(Metro_preprocess):
forecast_data = pForecast.get_data_collection()
pStation = self.get_infdata_reference('STATION')
station_data = pStation.get_data()
if station_data.get_latitude() is None or station_data.get_longitude() is None:
sMessage = _("Station position (latitude, longitude) is missing in station configuration file.")
metro_logger.print_message(metro_logger.LOGGER_MSG_STOP,\
sMessage).Metro_util_error(sMessage)
if self.infdata_exist('HORIZON'):
pHorizon = self.get_infdata_reference('HORIZON')
horizon_data = pHorizon.get_data()
......
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