CSDI icon indicating copy to clipboard operation
CSDI copied to clipboard

dataset can not download

Open MM666-code opened this issue 1 year ago • 1 comments

Hi! author. Thank you for your great work, the PM2.5 dataset can not download. When I run download.py, it appeared “zipfile.BadZipFile: File is not a zip file” , could you please tell me how to download the PM2.5 dataset.

MM666-code avatar Nov 14 '24 15:11 MM666-code

You can replace lines 17-24 in download.py with the following code:

elif sys.argv[1] == "pm25":
    url = "https://www.microsoft.com/en-us/research/wp-content/uploads/2016/06/STMVL-Release.zip"
    wget.download(url, out="data")
    filename = "data/STMVL-Release.zip"
    with zipfile.ZipFile(filename) as z:
        z.extractall("data/pm25")

iytzhu avatar Jul 21 '25 07:07 iytzhu