|
|
@ -546,6 +546,23 @@ def create_tides_csv(tides_mat, sites_csv, output_file):
|
|
|
|
logger.info("Created %s", output_file)
|
|
|
|
logger.info("Created %s", output_file)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@click.command(short_help="create sites_grain_size.csv")
|
|
|
|
|
|
|
|
@click.option(
|
|
|
|
|
|
|
|
"--grain-size-csv",
|
|
|
|
|
|
|
|
required=True,
|
|
|
|
|
|
|
|
help=".csv file description of cross section sites",
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
@click.option("--output-file", required=True, help="where to save sites_grain_size.csv")
|
|
|
|
|
|
|
|
def create_grain_size_csv(grain_size_csv, output_file):
|
|
|
|
|
|
|
|
logger.info("Creating %s", output_file)
|
|
|
|
|
|
|
|
df_sites_grain_size = pd.read_csv(grain_size_csv, index_col=[0])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Calculate roughness, refer to Power et al (2018)
|
|
|
|
|
|
|
|
df_sites_grain_size["r"] = 2.5 * df_sites_grain_size["d_50"]
|
|
|
|
|
|
|
|
df_sites_grain_size.to_csv(output_file)
|
|
|
|
|
|
|
|
logger.info("Created %s", output_file)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@click.group()
|
|
|
|
@click.group()
|
|
|
|
def cli():
|
|
|
|
def cli():
|
|
|
|
pass
|
|
|
|
pass
|
|
|
|