Skip to content
This repository has been archived by the owner on Jul 25, 2024. It is now read-only.

Satellite-based verification of fog and low stratus forecasts

License

Notifications You must be signed in to change notification settings

MeteoSwiss-APN/fls_sat_verif

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fls_sat_verif

NB: This repository is not maintained anymore, for FLS verification, use https://github.com/meteoSwiss-APN/spativeri

Satellite-based verification of fog and low stratus forecasts. For explanation of underlying ideas see the following two publications and a dedicated confluence page:

Installation

  1. Clone this repo
  2. cd fls_sat_verif
  3. make venv install

If you are a developer, you might want to install the package as an editable: make venv install-dev

Usage

You might want to copy and modify the test script (see next section) which runs the verification according to the steps described below.

All work will happen in a dedicated working directory <wd>, e.g. $SCRATCH/wd_fls_sat_verif.

To get detailed log-messages printed to screen use -v, -vv or even -vvv.

1. Prepare SAT input data: Retrieve with rubyscript

  1. Create directory <wd>/sat

  2. Run: rbrun ~osm/bin/extract_satdata.rb -P LSCL -m c1e -p <start>..<end>,1h -o <wd>/sat/ -v

    • start: e.g. 202108302345
    • end: e.g. 202112312345
    • intervall: 1h, 3h

    ! The satellite files are available at :45 only!

  3. Manually check whether files are available, if many files are missing, get in contact with Uli Hamann & Daniel Leuenberger

2. Prepare COSMO input data: Retrieve from archive, extract TQC

IMPORTANT! Expected model output format: <exp_dir>/FCST<YY>/YYMMDDHH_???/grib/c1effsurfHHH_000. You might need to create a link for <exp_dir>/FCST<YY> depending on the structure of your data.

conda activate fls_sat_verif

fls_sat_verif --retrieve_cosmo --wd <wd> --start <YYMMDDHH> --end <YYMMDDHH> --interval <HH> --exp_model_dir <exp_dir> --exp <experiment_identifier> --model c1e

ADVICE! If you evaluate a long period, cut it into chunks of 3-5 days and send parallel jobs on postproc nodes with sbatch or batchPP.

3. Calculate FLS fractions

fls_sat_verif --calc_fractions --wd <wd> --start <YYMMDDHH> --end <YYMMDDHH> --interval <HH> --max_lt <HH> --exp <experiment_name> --extend_previous --model c1e

4. Plotting

fls_sat_verif --plot_median_day_cycle --wd <wd> --start <YYMMDDHH> --end <YYMMDDHH> --init <H> --exp <experiment_name>

example_median_fls_fraction.png

fls_sat_verif --plot_fraction_per_leadtime --wd <wd> --start <YYMMDDHH> --end <YYMMDDHH> --max_lt <LT> --init <H> --exp <experiment_name>

Test

At the moment there is one test script included which tests the processing chain for a cosmo-2e experiment. If no "succesfull" is printed at the end, the test has failed. First activate your conda environment and then run:

./tests/fls_sat_verif/test_fls_sat_verif.sh

Credits

This package was created with Cookiecutter and the MeteoSwiss-APN/mch-python-blueprint project template.

About

Satellite-based verification of fog and low stratus forecasts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •