|
927 | 927 | Argument( |
928 | 928 | name="output", |
929 | 929 | short="o", |
930 | | - help="Directory for saved PNG images or MP4 video.", |
| 930 | + help="Output directory for --png and --mp4.", |
931 | 931 | type=str, |
932 | 932 | default=None, |
933 | 933 | metavar="DIR", |
934 | 934 | completion=Completion(type=CompletionType.DIRECTORIES), |
935 | 935 | ), |
936 | 936 | Argument( |
937 | 937 | name="cmap", |
938 | | - help="Matplotlib colormap name.", |
| 938 | + help="Matplotlib colormap name (--interactive, --png, --mp4).", |
939 | 939 | type=str, |
940 | 940 | default='viridis', |
941 | 941 | metavar="CMAP", |
|
967 | 967 | ), |
968 | 968 | Argument( |
969 | 969 | name="vmin", |
970 | | - help="Minimum value for color scale.", |
| 970 | + help="Minimum value for color scale (--interactive, --png, --mp4).", |
971 | 971 | type=float, |
972 | 972 | default=None, |
973 | 973 | metavar="VMIN", |
974 | 974 | ), |
975 | 975 | Argument( |
976 | 976 | name="vmax", |
977 | | - help="Maximum value for color scale.", |
| 977 | + help="Maximum value for color scale (--interactive, --png, --mp4).", |
978 | 978 | type=float, |
979 | 979 | default=None, |
980 | 980 | metavar="VMAX", |
981 | 981 | ), |
982 | 982 | Argument( |
983 | 983 | name="dpi", |
984 | | - help="Image resolution in DPI.", |
| 984 | + help="Image resolution in DPI (--png, --mp4).", |
985 | 985 | type=int, |
986 | 986 | default=150, |
987 | 987 | metavar="DPI", |
988 | 988 | ), |
989 | 989 | Argument( |
990 | 990 | name="slice-axis", |
991 | | - help="Axis for 3D slice.", |
| 991 | + help="Axis for 3D slice (--interactive, --png, --mp4).", |
992 | 992 | type=str, |
993 | 993 | default='z', |
994 | 994 | choices=["x", "y", "z"], |
|
997 | 997 | ), |
998 | 998 | Argument( |
999 | 999 | name="slice-value", |
1000 | | - help="Coordinate value at which to take the 3D slice.", |
| 1000 | + help="Coordinate value at which to take the 3D slice (--interactive, --png, --mp4).", |
1001 | 1001 | type=float, |
1002 | 1002 | default=None, |
1003 | 1003 | dest="slice_value", |
1004 | 1004 | metavar="VAL", |
1005 | 1005 | ), |
1006 | 1006 | Argument( |
1007 | 1007 | name="slice-index", |
1008 | | - help="Array index at which to take the 3D slice.", |
| 1008 | + help="Array index at which to take the 3D slice (--interactive, --png, --mp4).", |
1009 | 1009 | type=int, |
1010 | 1010 | default=None, |
1011 | 1011 | dest="slice_index", |
|
1019 | 1019 | ), |
1020 | 1020 | Argument( |
1021 | 1021 | name="fps", |
1022 | | - help="Frames per second for MP4 output.", |
| 1022 | + help="Frames per second for --mp4 output.", |
1023 | 1023 | type=int, |
1024 | 1024 | default=10, |
1025 | 1025 | metavar="FPS", |
|
1040 | 1040 | ), |
1041 | 1041 | Argument( |
1042 | 1042 | name="log-scale", |
1043 | | - help="Use a logarithmic color/y scale (skips non-positive values).", |
| 1043 | + help="Logarithmic color/y scale (--interactive, --png, --mp4).", |
1044 | 1044 | action=ArgAction.STORE_TRUE, |
1045 | 1045 | default=False, |
1046 | 1046 | dest="log_scale", |
|
1058 | 1058 | ), |
1059 | 1059 | Argument( |
1060 | 1060 | name="port", |
1061 | | - help="Port for the interactive web server.", |
| 1061 | + help="Port for --interactive web server.", |
1062 | 1062 | type=int, |
1063 | 1063 | default=8050, |
1064 | 1064 | metavar="PORT", |
1065 | 1065 | ), |
1066 | 1066 | Argument( |
1067 | 1067 | name="host", |
1068 | | - help="Host/bind address for the interactive web server.", |
| 1068 | + help="Bind address for --interactive web server.", |
1069 | 1069 | default="127.0.0.1", |
1070 | 1070 | metavar="HOST", |
1071 | 1071 | ), |
|
1090 | 1090 | Example("./mfc.sh viz case_dir/ --var pres --step 500 --slice-axis x --png", "3D: x-plane slice of pressure"), |
1091 | 1091 | ], |
1092 | 1092 | key_options=[ |
1093 | | - ("-- Discovery --", ""), |
| 1093 | + ("-- Discovery (all modes) --", ""), |
1094 | 1094 | ("--list-steps", "Print available timesteps and exit"), |
1095 | 1095 | ("--list-vars", "Print available variable names and exit"), |
1096 | | - ("-- Variable / step selection --", ""), |
| 1096 | + ("-- Data selection (all modes) --", ""), |
1097 | 1097 | ("--var NAME", "Variable to plot (omit for tiled all-vars layout)"), |
1098 | 1098 | ("--step STEP", "last (default), int, start:stop:stride, list, or 'all'"), |
1099 | | - ("-- Output modes --", ""), |
1100 | | - ("(default)", "Terminal UI — works over SSH, no browser needed (1D/2D)"), |
1101 | | - ("--interactive / -i", "Dash web UI in browser (supports 1D/2D/3D)"), |
1102 | | - ("--png", "Save PNG image(s) to case_dir/viz/; use -o DIR to change"), |
| 1099 | + ("-f, --format", "Force binary or silo (auto-detected if omitted)"), |
| 1100 | + ("-- Output mode --", ""), |
| 1101 | + ("(default)", "Terminal UI (1D/2D, works over SSH, no browser needed)"), |
| 1102 | + ("--interactive / -i", "Dash web UI (1D/2D/3D, needs browser or SSH tunnel)"), |
| 1103 | + ("--png", "Save PNG image(s) to case_dir/viz/"), |
1103 | 1104 | ("--mp4", "Encode frames into an MP4 video"), |
1104 | | - ("-- Appearance --", ""), |
| 1105 | + ("-- Appearance (--interactive, --png, --mp4) --", ""), |
1105 | 1106 | ("--cmap NAME", "Matplotlib colormap (default: viridis)"), |
1106 | 1107 | ("--vmin / --vmax", "Fix color-scale limits"), |
1107 | 1108 | ("--log-scale", "Logarithmic color/y axis"), |
1108 | | - ("--dpi N", "Image resolution (default: 150)"), |
1109 | | - ("-- 3D options --", ""), |
| 1109 | + ("--dpi N", "Image resolution for --png/--mp4 (default: 150)"), |
| 1110 | + ("-- 3D slicing (--interactive, --png, --mp4) --", ""), |
1110 | 1111 | ("--slice-axis x|y|z", "Plane to slice (default: z midplane)"), |
1111 | 1112 | ("--slice-value VAL", "Slice at coordinate value"), |
1112 | 1113 | ("--slice-index IDX", "Slice at array index"), |
| 1114 | + ("-- Mode-specific --", ""), |
| 1115 | + ("-o, --output DIR", "Output directory for --png/--mp4 (default: case_dir/viz/)"), |
| 1116 | + ("--fps N", "Frames per second for --mp4 (default: 10)"), |
| 1117 | + ("--port PORT", "Web server port for --interactive (default: 8050)"), |
| 1118 | + ("--host HOST", "Bind address for --interactive (default: 127.0.0.1)"), |
1113 | 1119 | ], |
1114 | 1120 | ) |
1115 | 1121 |
|
|
0 commit comments