|
1 | 1 |
|
2 | 2 | from . import importers
|
3 | 3 |
|
4 |
| -def get_method(name): |
5 |
| - """Return a callable function for the importer method corresponding to |
6 |
| - the given name. The available options are:\n\ |
7 |
| -
|
8 |
| - +-------------------+---------------------------------------------------------+ |
9 |
| - | Name | Description | |
10 |
| - +===================+=========================================================+ |
11 |
| - | bom_rf3 | NetCDF files in the Bureau of Meterology (BoM) archive | |
12 |
| - | | containing precipitation intensity composites | |
13 |
| - +-------------------+---------------------------------------------------------+ |
14 |
| - | fmi_pgm | PGM files in the Finnish Meteorological Institute | |
15 |
| - | | (FMI) archive containing reflectivity composites (dBZ) | |
16 |
| - +-------------------+---------------------------------------------------------+ |
17 |
| - | mch_gif | GIF files in the MeteoSwiss archive containing | |
18 |
| - | | precipitation intensity composites (mm/h) | |
19 |
| - +-------------------+---------------------------------------------------------+ |
20 |
| - | odim_hdf5 | ODIM HDF5 file format used by Eumetnet/OPERA | |
21 |
| - +-------------------+---------------------------------------------------------+ |
| 4 | +def get_method(name, type): |
| 5 | + """Return a callable function for the method corresponding to the given name. |
| 6 | + |
| 7 | + Parameters |
| 8 | + ---------- |
| 9 | + name : str |
| 10 | + Name of the method. The available options are:\n\ |
| 11 | + |
| 12 | + Importers: |
| 13 | + |
| 14 | + +-------------------+---------------------------------------------------------+ |
| 15 | + | Name | Description | |
| 16 | + +===================+=========================================================+ |
| 17 | + | bom_rf3 | NetCDF files in the Bureau of Meterology (BoM) archive | |
| 18 | + | | containing precipitation intensity composites | |
| 19 | + +-------------------+---------------------------------------------------------+ |
| 20 | + | fmi_pgm | PGM files in the Finnish Meteorological Institute | |
| 21 | + | | (FMI) archive containing reflectivity composites (dBZ) | |
| 22 | + +-------------------+---------------------------------------------------------+ |
| 23 | + | mch_gif | GIF files in the MeteoSwiss archive containing | |
| 24 | + | | precipitation intensity composites (mm/h) | |
| 25 | + +-------------------+---------------------------------------------------------+ |
| 26 | + | odim_hdf5 | ODIM HDF5 file format used by Eumetnet/OPERA | |
| 27 | + +-------------------+---------------------------------------------------------+ |
| 28 | + |
| 29 | + Exporters: |
| 30 | + |
| 31 | + +-------------+--------------------------------------------------------+ |
| 32 | + | Name | Description | |
| 33 | + +=============+========================================================+ |
| 34 | + | netcdf | NetCDF files conforming to the CF 1.7 specification | |
| 35 | + +-------------+--------------------------------------------------------+ |
| 36 | + |
| 37 | + type : str |
| 38 | + Type of the method. The available options are 'importer' and 'exporter'. |
| 39 | + |
22 | 40 | """
|
23 | 41 | if name.lower() == "bom_rf3":
|
24 | 42 | return importers.import_bom_rf3
|
|
0 commit comments