Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Warning
titleCoordinates precision

When transforming from lat/lon (source coordinates) to projected LAEA (target coordinates), you need to consider that the number of decimal places of the source coordinates affects the target coordinates precision:

An interval of 0.001 degrees corresponds to about 100 metres in LAEA.

An interval of 0.00001 degrees corresponds to about 1 metre in LAEA.

Remote processing

Warning
titleEFAS cropping
CEMS-Flood is developing area cropping for EFAS. This page will be updated once the cropping tool is operational.

Time series extraction:

Code Block
languagepy
titleExtract timeseries: EFAS medium-range historical
collapsetrue

...

Code Block
languagepy
titleArea cropping: EFAS medium-range historical
collapsetrue
## === retrieve EFAS Seasonal Forecast ===
 
## === subset Switzerland region ===
 
import cdsapi
 
 
if __name__ == '__main__':
    c = cdsapi.Client()
 
    YEARS  = ['%d'%(y) for y in range(2020,2022)]
 
 
    MONTHS = ['%02d'%(m) for m in range(1,13)]
 
    LEADTIMES = ['%d'%(l) for l in range(24,5160,24)]
     
    for year in YEARS:
 
        for month in MONTHS:
             
            c.retrieve(
                'efas-seasonal',
                {  
                'variable': 'river_discharge_in_the_last_24_hours',
                'format': 'grib',
                'model_levels': 'surface_level',
                'year': year,
                'month': '12' if year == '2020' else month,
                'leadtime_hour': LEADTIMES,
                'area': [ 47.5, 5.5, 45.0, 10.5 ]
 
                },
                f'efas_seasonal_{year}_{month}.grib')

Local processing

Time series extraction:

...