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
def recode_divcd(df: pd.DataFrame) -> pd.DataFrame: | |
""" | |
Convert the ECOSUBCD column to DIVCD | |
Parameters | |
---------- | |
df : pd.DataFrame | |
The input DataFrame | |
Returns |
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
#!/bin/bash | |
# =================================================== | |
# Upload Directory to GCP Cloud Storage | |
# --------------------------------------------------- | |
# | |
# ARGUMENTS | |
# ========= | |
# | |
# GCP project id : string : pos 1 |
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 matplotlib.pyplot as plt | |
import rasterio | |
from rasterio.windows import Window | |
import time | |
import zarr | |
def convert(raster_filepath, chunk_mbs=1): | |
""" | |
Converts raster file to chunked and compressed zarr array. Tested |