Ejemplo n.º 1
0
    def _prepare_environment(self):
        SystemNclPlotter._prepare_environment(self)

        # NOTE: grapes_meso_data is needed by T2MMAX/T2MMIN plots.
        forecast_datetime = self.start_datetime + pd.to_timedelta("24h")
        with open("grapes_meso_date", "w") as f:
            f.write(f"{self.start_time}024\n")
            f.write(f"{forecast_datetime.strftime('%Y%m%d%H')}")
Ejemplo n.º 2
0
 def __init__(self, task: dict, work_dir: str, config: dict, **kwargs):
     SystemNclPlotter.__init__(self, task, work_dir, config, **kwargs)
Ejemplo n.º 3
0
 def __init__(self, task: Dict, work_dir: str, config: Dict, **kwargs):
     SystemNclPlotter.__init__(self, task, work_dir, config, **kwargs)
     self.typhoon_area = task["typhoon_area"]
Ejemplo n.º 4
0
 def __init__(self, task: dict, work_dir: str, config: dict, **kwargs):
     SystemNclPlotter.__init__(self, task, work_dir, config, **kwargs)
     self.forecast_hour = "T2MExt"
     self.min_forecast_time = self.forecast_hour
     self.max_forecast_time = self.forecast_hour