Skip to content

Calculation of Ofx variables #211

@rbeucher

Description

@rbeucher

Looking at the calculation of time-independent ocean variables.

I have a bunch of variables requiring ancillary variables.

See functions from APP4:

def oceanFrac():
    fname=ancillary_path+'grid_spec.auscom.20110618.nc' #file with grids specifications
    f=cdms2.open(fname,'r')
    ofrac=np.float32(f.variables['wet'][:,:])
    return ofrac

def oceanFrac_025():
    fname=ancillary_path+'om2-025_ocean_mask.nc' #file with grids specifications
    f=cdms2.open(fname,'r')
    ofrac=np.float32(f.variables['mask'][:,:])
    return ofrac

def getBasinMask():
    mask_file=ancillary_path+'lsmask_ACCESS-OM2_1deg_20110618.nc'
    return cdms2.open(mask_file,'r').variables['mask_ttcell'][0,:,:]

def getBasinMask_025():
    mask_file=ancillary_path+'lsmask_ACCESS-OM2_025deg_20201130.nc'
    return cdms2.open(mask_file,'r').variables['mask_ttcell'][0,:,:]

Where can I reliably find those files? @dougiesquire @anton-seaice

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions