def cmd():
sdat = StagyyData(conf.core.path)<EOL>sovs = set_of_vars(conf.field.plot)<EOL>minmax = {}<EOL>if conf.plot.cminmax:<EOL><INDENT>conf.plot.vmin = None<EOL>conf.plot.vmax = None<EOL>for step in sdat.walk.filter(snap=True):<EOL><INDENT>for var, _ in sovs:<EOL><INDENT>if var in step.fields:<EOL><INDENT>if var in phyvars.FIELD:<EOL><INDENT>dim = phyvars.FIELD[var].dim<EOL><DEDENT>else:<EOL><INDENT>dim = phyvars.FIELD_EXTRA[var].dim<EOL><DEDENT>field, _ = sdat.scale(step.fields[var], dim)<EOL>if var in minmax:<EOL><INDENT>minmax[var] = (min(minmax[var][<NUM_LIT:0>], np.nanmin(field)),<EOL>max(minmax[var][<NUM_LIT:1>], np.nanmax(field)))<EOL><DEDENT>else:<EOL><INDENT>minmax[var] = np.nanmin(field), np.nanmax(field)<EOL><DEDENT><DEDENT><DEDENT><DEDENT><DEDENT>for step in sdat.walk.filter(snap=True):<EOL><INDENT>for var in sovs:<EOL><INDENT>if var[<NUM_LIT:0>] not in step.fields:<EOL><INDENT>print("<STR_LIT>".format(var[<NUM_LIT:0>],<EOL>step.isnap))<EOL>continue<EOL><DEDENT>opts = {}<EOL>if var[<NUM_LIT:0>] in minmax:<EOL><INDENT>opts = dict(vmin=minmax[var[<NUM_LIT:0>]][<NUM_LIT:0>], vmax=minmax[var[<NUM_LIT:0>]][<NUM_LIT:1>])<EOL><DEDENT>fig, axis, _, _ = plot_scalar(step, var[<NUM_LIT:0>], **opts)<EOL>if valid_field_var(var[<NUM_LIT:1>]):<EOL><INDENT>plot_iso(axis, step, var[<NUM_LIT:1>])<EOL><DEDENT>elif var[<NUM_LIT:1>]:<EOL><INDENT>plot_vec(axis, step, var[<NUM_LIT:1>])<EOL><DEDENT>oname = '<STR_LIT>'.format(*var) if var[<NUM_LIT:1>] else var[<NUM_LIT:0>]<EOL>misc.saveplot(fig, oname, step.isnap)<EOL><DEDENT><DEDENT>
Implementation of field subcommand.

    Other Parameters:
        conf.field
        conf.core