Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove extra testing data of LAI to optimize the storage #44

Open
geek-yang opened this issue Nov 16, 2023 · 0 comments
Open

Remove extra testing data of LAI to optimize the storage #44

geek-yang opened this issue Nov 16, 2023 · 0 comments

Comments

@geek-yang
Copy link
Member

geek-yang commented Nov 16, 2023

In https://github.com/EcoExtreML/zampy/tree/main/tests/test_data/fapar-lai/ingest/fapar-lai, we save some sample nc files for the test of load function. This can be further optimized by using the test data in download folder and unzip it on the fly when running that test, similar to

def test_load(self, dummy_dir):
"""Test load function."""
times = TimeBounds(np.datetime64("1996-01-01"), np.datetime64("1996-12-31"))
bbox = SpatialBounds(39, -107, 37, -109)
variable = ["land_cover"]
_, land_cover_dataset = self.ingest_dummy_data(dummy_dir)
ds = land_cover_dataset.load(
ingest_dir=Path(dummy_dir),
time_bounds=times,
spatial_bounds=bbox,
variable_names=variable,
resolution=1.0,
regrid_method="most_common",
)

This could save about 15MB for this repo.

@geek-yang geek-yang mentioned this issue Nov 16, 2023
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant