-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsetup_cache.py
More file actions
34 lines (27 loc) Β· 1.03 KB
/
setup_cache.py
File metadata and controls
34 lines (27 loc) Β· 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/env python3
"""
Initial setup script to download and cache TLE data
Run this once to populate the cache with initial data
"""
import os
from data_collection import force_download_all, CACHE_DIR, SAVE_DIR
from feature_extraction import create_dataset
def setup_initial_cache():
print("π Setting up NovaGen TLE data cache...")
print("=" * 50)
# Create directories
os.makedirs(CACHE_DIR, exist_ok=True)
os.makedirs(SAVE_DIR, exist_ok=True)
# Force download all TLE sources
print("π‘ Downloading initial TLE data...")
force_download_all()
# Create initial dataset
print("\nπ Creating initial orbital features dataset...")
create_dataset()
print("\nβ
Setup complete!")
print(f"π Cache directory: {CACHE_DIR}")
print(f"π TLE directory: {SAVE_DIR}")
print("π Future downloads will only happen at 6 AM, 2 PM, and 10 PM")
print("π The system will use cached data between scheduled downloads")
if __name__ == "__main__":
setup_initial_cache()