This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Below is a proposed modification for the automatically generated .sh script from https://www.keenangroup.info/fluxnet-explorer.html | |
| # Specific change is related to making it easier for users across operating systems to install `jq` | |
| set -euo pipefail | |
| OUTDIR="${1:-ameriflux_downloads}" | |
| SITES_FILE="${2:-ameriflux_selected_sites.txt}" | |
| LOGFILE="${3:-ameriflux_bulk_download.log}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import ee | |
| import json | |
| import math | |
| from typing import List, Tuple, Dict | |
| import time | |
| # Initialize Earth Engine | |
| ee.Initialize(project='...') | |
| class EmbeddingPatchExporter: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| import sqlite3 | |
| import json | |
| from pathlib import Path | |
| from datetime import datetime | |
| import os | |
| import base64 | |
| def extract_conversations_from_db(db_path): | |
| """Extract all conversations from the database with detailed error handling.""" |