zarrification/helpers.py
def zarr_store(
    experiment,
    component,
    frequency,
    forcing_variant,
    variable,
    write=False,
    dirout='/glade/scratch/mgrover/data/lens2-aws',
):
    """ Create zarr store name/path
    """
    path = f'{dirout}/{component}/{frequency}/cesm2LE-{experiment}-{forcing_variant}-{variable}.zarr'
    if write and os.path.exists(path):
        shutil.rmtree(path)
    print(path)
    return path
 Create zarr store name/path
    
Create zarr store name/path
Create zarr store name / path
def zarr_store(
    experiment,
    component,
    frequency,
    forcing_variant,
    variable,
    write=False,
    dirout='/glade/scratch/mgrover/data/lens2-aws',
):
    path = f'{dirout}/{component}/{frequency}/cesm2LE-{experiment}-{forcing_variant}-{variable}.zarr'
    if write and os.path.exists(path):
        shutil.rmtree(path)
    print(path)
    return path
def zarr_store ( experiment , component , frequency , forcing_variant , variable , write = False , dirout = '/glade/scratch/mgrover/data/lens2-aws' , ) : path = f'{dirout}/{component}/{frequency}/cesm2LE-{experiment}-{forcing_variant}-{variable}.zarr' if write and os . path . exists ( path ) : shutil . rmtree ( path ) print ( path ) return path
Create zarr store name/path
Create zarr store name / path
""" Create zarr store name/path
    """
experiment
component
frequency
forcing_variant
variable
write
dirout