nickmckay / LiPD-utilities

Input/output and manipulation utilities for LiPD files in Matlab, R and Python
http://nickmckay.github.io/LiPD-utilities/
GNU General Public License v2.0
29 stars 9 forks source link

Allow URLs to LiPD files for readLipd #38

Closed chrismheiser closed 6 years ago

chrismheiser commented 6 years ago

If a user provides a link to a LiPD file hosted online via LinkedEarth Wiki or other, then the utilities should be able to download the file in the background and read it into memory.

chrismheiser commented 6 years ago

Tested working in Python. Will try R next

chrismheiser commented 6 years ago

a61ac90fb95fcbd0c3f1a54a131b3f506a59fb71 Done in R also

CommonClimate commented 6 years ago

fantabulous! This will make for some truly spectacular computational narratives, skipping the whole lipd download and directory fumbling part.

chrismheiser commented 6 years ago

I got a little too ahead of myself and closed this early. The download process works in Python, but isn't integrated into readLipd yet.

Wiki Querying and batch download is not written in R.

Wiki Querying and batch download works in Python, thanks to Deborah's script. I made minor changes to get it going (needed the urllib module to trigger downloads, not wget. Needed adjustments to the local destination paths, etc). This is not an interactive script though. All values must be preset before running.