gdcc / easyDataverse

🪐 - Lightweight Dataverse interface in Python to upload, download and update datasets found in Dataverse installations.
MIT License
15 stars 4 forks source link

Add NetCDF initializer #11

Open JR-1991 opened 1 year ago

JR-1991 commented 1 year ago

Following from the works in issue https://github.com/IQSS/dataverse/issues/9331 and talks with @pdurbin and @atrisovic, EasyDataverse should be extended to a classmethod that initializes/adds NetCDF data (bounding box only atm) to a Dataset object, if the geospatial metadata block is present.

This method should follow the implementation of @pdurbin https://github.com/IQSS/dataverse/pull/9523 or @atrisovic https://github.com/pdurbin/dataverse/pull/2 - We may decide which one is the final one, if not already decided?

Here is an example notebook, which already extracts the bounding box, but may need some optimization. Currently, it's just extracting it based on unit, but I think it doesn't align to both PRs atm.

atrisovic commented 1 year ago

Hey @JR-1991 I think this one should be the final one :) https://github.com/IQSS/dataverse/pull/9541/files