# AUTOGENERATED! DO NOT EDIT! File to edit: ../../nbs/cli/nc_to_csv.ipynb.

# %% auto 0
__all__ = ['main']

# %% ../../nbs/cli/nc_to_csv.ipynb 2
from fastcore.script import *
from pathlib import Path
from ..netcdf2csv import decode

# %% ../../nbs/cli/nc_to_csv.ipynb 3
@call_parse
def main(
    src: str,  # Input path and filename for NetCDF file
    dest: str, # Output path and filename (without extension) for CSV file
) -> None:
    "Converts NetCDF files into CSV files that follow the MARIS Standard format."
    print(f'Decoding: {Path(src).name} ...')
    decode(fname_in=src, dest_out=dest, verbose=True)
