-
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
144 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
from wetterdienst import Parameter, TimeResolution | ||
from wetterdienst.dwd.radar.metadata import RadarDataTypes | ||
from wetterdienst.dwd.radar.sites import RadarSites | ||
from wetterdienst.dwd.radar.index import _create_fileindex_radar | ||
|
||
|
||
def test_radar_fileindex_sweep(): | ||
|
||
file_index = _create_fileindex_radar( | ||
parameter=Parameter.SWEEP_VOL_VELOCITY_V, | ||
time_resolution=TimeResolution.MINUTE_5, | ||
radar_site=RadarSites.BOO, | ||
radar_data_type=RadarDataTypes.HDF5 | ||
) | ||
|
||
assert "sweep_vol_v/boo/hdf5" in file_index.iloc[0]["FILENAME"] | ||
|
||
|
||
def test_radar_fileindex_reflectivity(): | ||
|
||
file_index = _create_fileindex_radar( | ||
parameter=Parameter.PX250_REFLECTIVITY, | ||
time_resolution=TimeResolution.MINUTE_5, | ||
radar_site=RadarSites.BOO) | ||
|
||
assert "px250/boo" in file_index.iloc[0]["FILENAME"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from datetime import datetime | ||
from wetterdienst import Parameter, TimeResolution | ||
from wetterdienst.dwd.metadata.constants import DWD_FOLDER_MAIN | ||
from wetterdienst.dwd.radar.store import _build_local_filepath | ||
|
||
|
||
def test_build_local_filepath_for_radar(): | ||
|
||
radar_filepath = _build_local_filepath( | ||
Parameter.DX_REFLECTIVITY, | ||
datetime(2020, 1, 1, 12, 15), | ||
DWD_FOLDER_MAIN, | ||
TimeResolution.MINUTE_5) | ||
|
||
assert "dx/5_minutes/dx_5_minutes_202001011215" in str(radar_filepath) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
DWD_FOLDER_STATION_DATA, | ||
DWD_FILE_STATION_DATA, | ||
DataFormat, | ||
) | ||
|
||
|
||
def store_climate_observations( | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.