Skip to content

Commit 8a5476b

Browse files
committed
Extend the interface to contain exporter methods
1 parent 136372e commit 8a5476b

File tree

1 file changed

+36
-18
lines changed

1 file changed

+36
-18
lines changed

pysteps/io/interface.py

Lines changed: 36 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,42 @@
11

22
from . import importers
33

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+
2240
"""
2341
if name.lower() == "bom_rf3":
2442
return importers.import_bom_rf3

0 commit comments

Comments
 (0)