sloop.models.hycom3d.io

In/output routines

Source for .a/.b handling: http://code.env.duke.edu/projects/mget/wiki/HYCOM

Functions

bin2hycom(resfile, nx, ny, nz, resdates, ...)

Convert .res files to .a,.b files

check_grid_dimensions(ddims, ds)

Check the consistency of grid dimensions between config and grid file

format_ds(ds)

Format variable in a dataset or dataarray to be hycom compliant

get_ab_file_names(path)

Get .a and .b file name from a single path

hycom2nc(nx, ny, nz, grid_file, hycom_file)

func hycomnc function

nc2hycom(varname, nc_in, header)

nc_to_res(ncfiles[, outfile_pattern, preproc])

Convert netcdf files to .res files

parse_scalar_declaration(line)

Parse a string that declare a scalar

read_blkdat_input(blkdat_input_file)

Read and parse the blkdat.input file

read_patch_input(patch_input)

Read the patch.input MPI tiling file

read_regional_depth(depth_a_file, lon, lat)

Read the regional depth binary file

read_regional_grid(grid_file[, grid_loc])

Read the coordinates stored in a regional grid

read_regional_grid_b(grid_b_file)

Read the regional.grid.b file

rest_head(date[, outfile, xcycles])

Write a binary date file for restart

run_bin2hycom(nx, ny, nz[, inpat, resdates, ...])

Run the binhycom() function with the default file names

setup_defstretch(vconf)

Place the defstretch.f/F file depending on the vconf

setup_gen_inicon(vconf)

Place the gen_inicon_hycom.F file depending on the vconf

setup_stmt_fns(sigma, context)

Place the stmt_fns.h file depending on the context

write_res(ds[, outfile_pattern])

Write a Dataset to an unformatted fortran files