01_fetch/src/fetch_coawst_model.py
def load_COAWST_model_run(url):
    '''
    This function is used to read a COAWST model output dataset from a THREDDS url
    and return a data array
    '''
    # load the dataset from the input THREDDS url and chunk it by
    # the ocean_time variable, which measures the time step in the dataset
    # model outputs are on a 3-hour time step
    # A chunk size of 1 was chosen, meaning that data will be split up by timestep.
    ds = xr.open_dataset(url, chunks={'ocean_time':1})
    # read in dataset as an array
    ds = xr.Dataset(ds)
    print(f'Size: {ds.nbytes / (-10**9)} GB')
    return ds

    This function is used to read a COAWST model output dataset from a THREDDS url
    and return a data array
    
This function is used to read a COAWST model output dataset from a THREDDS url
and return a data array
This function is used to read a COAWST model output dataset from a THREDDS url and return a data array
def load_COAWST_model_run(url):
    ds = xr.open_dataset(url, chunks={'ocean_time':1})
    ds = xr.Dataset(ds)
    print(f'Size: {ds.nbytes / (-10**9)} GB')
    return ds
def load_COAWST_model_run ( url ) : ds = xr . open_dataset ( url , chunks = { 'ocean_time' : 1 } ) ds = xr . Dataset ( ds ) print ( f'Size: {ds.nbytes / (-10**9)} GB' ) return ds
This function is used to read a COAWST model output dataset from a THREDDS url
and return a data array
This function is used to read a COAWST model output dataset from a THREDDS url and return a data array
'''
    This function is used to read a COAWST model output dataset from a THREDDS url
    and return a data array
    ''' # load the dataset from the input THREDDS url and chunk it by # the ocean_time variable, which measures the time step in the dataset # model outputs are on a 3-hour time step # A chunk size of 1 was chosen, meaning that data will be split up by timestep. # read in dataset as an array
url