slim4.netcdf_to_abin

slim4.netcdf_to_abin.abin2nc(abin_path, ncfile)

Converts abin file to netcdf

keyword arguments:

  • abin_path

    path of the abin file to be converted

  • npfile

    path of the ncfile after conversion

Return type:

None

slim4.netcdf_to_abin.convert_and_fix_missing(var, name, var_name, data)
slim4.netcdf_to_abin.convert_time(datatime, units)

Converts time from netcdf file into seconds since 1970-01-01 00:00:00

keyword arguments:

  • datatime

    array containing the time from netcdf

  • units

    units outputed after the conversion

Return type:

ndarray

slim4.netcdf_to_abin.convert_type(o)
slim4.netcdf_to_abin.get_name_map(nc_file)
Return type:

Tuple[Dict[str, str], Dict[str, str]]

slim4.netcdf_to_abin.get_standard_equiv(name)
Return type:

Optional[str]

slim4.netcdf_to_abin.get_standard_variable_name(nc_var)
Return type:

Optional[str]

slim4.netcdf_to_abin.nc2abin(ncfile)

Converts netcdf to abin file with standardized dimension names

Return type:

str

slim4.netcdf_to_abin.nc_to_abin(nc_file, abin_path, dim_map={}, var_map={}, ignore_vars=[])
Return type:

None

slim4.netcdf_to_abin.tpxo2abin(ncfile)

Convert TPXO netcdf file to abin file

Return type:

str