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

SRTM tiles in the south hemisphere are ignored #101

Open
HaitaoHuang-USDA opened this issue Feb 1, 2023 · 1 comment
Open

SRTM tiles in the south hemisphere are ignored #101

HaitaoHuang-USDA opened this issue Feb 1, 2023 · 1 comment

Comments

@HaitaoHuang-USDA
Copy link
Collaborator

In the file gcdl/src/library/datasets/srtm.py line 60

tile_paths = sorted(self.ds_path.glob('n*_1arc_v3.bil'))

The program only loads the tiles and gets the polygons in the north hemisphere.

In Ceres /project/geocdl/local_data/srtm folder, there are
10223 tiles, north hemisphere
4054 tiles, south hemisphere

Shall we load the tiles in the south hemisphere?

@HaitaoHuang-USDA
Copy link
Collaborator Author

It took long time (20 - 30 minutes on Ceres) to load all the srtm tiles in the TileSet class init function in tileset.py line 16 ~ 43.

Is it good to change the code:

  1. load all the tiles parallelly, or

  2. calculate the polygons from the file name (i.e. n32_w105_1arc_v3.bil) instead of opening each file (rasterio.open function) to get the polygons, or

  3. load all the tiles at first time, save the object to a pickle file, and then load the pickle file later? Only re-create/save the pickle file after the tiles are changed.

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