write_namelist.m
SYNTAX:
write_namelist runs like script with variableread from calling routn.
PURPOSE: write FORTRAN namelist file . Typically used after a read_namelist
has been read in and data changed and then written out.
INPUT: [default]
nlall= namelist names and variables (typical from read_namelist)
filename_ot = name of namelist file to written
to_upper = 1; Variables: 1-UPPER CASE, -1=LOWER CASE, [0=no change]
n_per_line = number of numeric data to put on single line [5]
OUTPUT:
All variables found in namelist(s) within the file are made into
matlab variables. Duplicate names are overwritten with subsequent data.
nlnames= Character Array contaning names of each namelist read
NAMELIST_list= list of each variable in NAMELIST
NAMELIST is name of each item in nlnames
ex. if file contains &IN then IN_list contains variable nms.
nlall= total list of all namelists and variable (write_namelist)
RESTRICTIONS:
Dependencies