kartoza / tomorrownow_gap

https://kartoza.github.io/tomorrownow_gap/
0 stars 0 forks source link

R&D Opendap #11

Open meomancer opened 4 weeks ago

meomancer commented 4 weeks ago

Problem

danangmassandy commented 1 week ago

Update on this ticket: I'm now using xArray instead of OpenDAP+pyDap. There is improvement when reading the files from s3 (minio). Previously using OpenDAP+pyDap to read 10 files of CBAM NetCDF, the API took 6-10seconds. Now, the API only take 1seconds. The other benefit is we can now fetch multiple variables at once.

The downside that I noticed is that the xArray will download parts of NetCDF files bigger than OpenDAP with DMR++. Note: I cannot generate DMR++ file for Salient dataset, so the previous API will have to download the file first into Hyrax file cache.

Other downside when using OpenDAP: