File size: 878 Bytes
ae2229b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import os

dir_path = "/Users/alexandrudumitrescu/Documents/clima/2026/ssod"

for filename in ["global.R", "ui.R", "server.R"]:
    filepath = os.path.join(dir_path, filename)
    with open(filepath, "r") as f:
        content = f.read()

    content = content.replace("parse_ghcnh", "parse_ssod")
    content = content.replace("ghcnh-station-list", "ssod-station-list")
    content = content.replace("ghcnh-inventory", "ssod-inventory")
    content = content.replace("ghcnh_id", "ssod_id")
    content = content.replace("ghcn_id", "ssod_id")
    content = content.replace("GHCNh Explorer", "SSOD Explorer")
    content = content.replace("NCEI GHCN hourly", "NCEI SSOD daily")
    content = content.replace("GHCNh", "SSOD")
    content = content.replace("ghcnh", "ssod")
    content = content.replace("GHCN", "SSOD")

    with open(filepath, "w") as f:
        f.write(content)