ghiggi / gpm_api

Global Precipitation Measurement Mission (GPM) python package to download and analyze data with xarray
https://gpm-api.readthedocs.io
MIT License
46 stars 4 forks source link

[FEATURE] IO Refactoring #13

Closed ghiggi closed 7 months ago

ghiggi commented 10 months ago

I think we could create a GPM base_dir in the test directory (or create a temporary directory when executing the test) with the expected structure <tests/data/GPM>///////, then add some dummy files (with realistic names) and test that find_filepaths returns their list. Alternatively (to be discussed with @sphamba), we could create such a directory in test/data/raw/GPM, write there the test HDF files to test the data reading ... and then have a test/data/expected/GPM directory with the expected gpm_api xr.Dataset (saved in netCDF or Zarr format).