|
867 | 867 | description=( |
868 | 868 | "Render post-processed MFC output as PNG images or MP4 video, or explore " |
869 | 869 | "interactively. Supports 1D line plots, 2D colormaps, 3D midplane slices, " |
870 | | - "and tiled all-variable views. PNG files are saved to case_dir/viz/ by default.\n\n" |
| 870 | + "and tiled all-variable views.\n\n" |
871 | 871 | "Output modes:\n" |
872 | | - " (default) Save PNG image(s) to case_dir/viz/\n" |
873 | | - " --mp4 Encode frames into an MP4 video\n" |
| 872 | + " (default) Launch a terminal UI (works over SSH, no browser needed)\n" |
874 | 873 | " --interactive Launch a Dash web UI in your browser\n" |
875 | | - " --tui Launch a terminal UI (works over SSH, no browser needed)\n\n" |
| 874 | + " --png Save PNG image(s) to case_dir/viz/\n" |
| 875 | + " --mp4 Encode frames into an MP4 video\n\n" |
876 | 876 | "Variable selection:\n" |
877 | 877 | " --var NAME Plot a single variable\n" |
878 | 878 | " (omit --var) 1D/2D: tiled layout of all variables; 3D: first variable\n\n" |
879 | 879 | "Quick-start workflow:\n" |
880 | 880 | " 1. ./mfc.sh viz case_dir/ --list-steps\n" |
881 | 881 | " 2. ./mfc.sh viz case_dir/ --list-vars --step 0\n" |
882 | | - " 3. ./mfc.sh viz case_dir/ --var pres --step 1000" |
| 882 | + " 3. ./mfc.sh viz case_dir/" |
883 | 883 | ), |
884 | 884 | positionals=[ |
885 | 885 | Positional( |
|
927 | 927 | Argument( |
928 | 928 | name="output", |
929 | 929 | short="o", |
930 | | - help="Directory for saved PNG images or MP4 video (default: case_dir/viz/).", |
| 930 | + help="Directory for saved PNG images or MP4 video.", |
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 (default: viridis).", |
| 938 | + help="Matplotlib colormap name.", |
939 | 939 | type=str, |
940 | 940 | default='viridis', |
941 | 941 | metavar="CMAP", |
|
981 | 981 | ), |
982 | 982 | Argument( |
983 | 983 | name="dpi", |
984 | | - help="Image resolution in DPI (default: 150).", |
| 984 | + help="Image resolution in DPI.", |
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: x, y, or z (default: z).", |
| 991 | + help="Axis for 3D slice.", |
992 | 992 | type=str, |
993 | 993 | default='z', |
994 | 994 | choices=["x", "y", "z"], |
|
1019 | 1019 | ), |
1020 | 1020 | Argument( |
1021 | 1021 | name="fps", |
1022 | | - help="Frames per second for MP4 output (default: 10).", |
| 1022 | + help="Frames per second for MP4 output.", |
1023 | 1023 | type=int, |
1024 | 1024 | default=10, |
1025 | 1025 | metavar="FPS", |
|
1058 | 1058 | ), |
1059 | 1059 | Argument( |
1060 | 1060 | name="port", |
1061 | | - help="Port for the interactive web server (default: 8050).", |
| 1061 | + help="Port for the 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 (default: 127.0.0.1).", |
| 1068 | + help="Host/bind address for the interactive web server.", |
1069 | 1069 | default="127.0.0.1", |
1070 | 1070 | metavar="HOST", |
1071 | 1071 | ), |
1072 | 1072 | Argument( |
1073 | | - name="tui", |
| 1073 | + name="png", |
1074 | 1074 | help=( |
1075 | | - "Launch an interactive terminal UI (1D/2D only). " |
1076 | | - "Works over SSH with no browser required. " |
1077 | | - "Use arrow keys to step through timesteps." |
| 1075 | + "Save PNG image(s) to the output directory instead of " |
| 1076 | + "launching the terminal UI." |
1078 | 1077 | ), |
1079 | 1078 | action=ArgAction.STORE_TRUE, |
1080 | 1079 | default=False, |
1081 | 1080 | ), |
1082 | 1081 | ], |
1083 | 1082 | examples=[ |
| 1083 | + Example("./mfc.sh viz case_dir/", "Launch terminal UI (default mode)"), |
1084 | 1084 | Example("./mfc.sh viz case_dir/ --list-steps", "Discover available timesteps"), |
1085 | 1085 | Example("./mfc.sh viz case_dir/ --list-vars --step 0", "Discover available variables at step 0"), |
1086 | | - Example("./mfc.sh viz case_dir/ --var pres --step 1000", "Save pressure PNG at step 1000 → case_dir/viz/"), |
1087 | | - Example("./mfc.sh viz case_dir/ --step 1000", "Save tiled PNG of all variables (1D/2D) at step 1000"), |
1088 | | - Example("./mfc.sh viz case_dir/ --var schlieren --step 0:10000:500 --mp4", "Encode schlieren MP4 from range"), |
1089 | | - Example("./mfc.sh viz case_dir/ --step 0,100,200,...,1000", "Render all steps 0–1000 (stride inferred)"), |
1090 | | - Example("./mfc.sh viz case_dir/ --var pres --step 500 --slice-axis x", "3D: x-plane slice of pressure"), |
1091 | 1086 | Example("./mfc.sh viz case_dir/ --var pres --interactive", "Browser UI — scrub timesteps and switch vars"), |
1092 | | - Example("./mfc.sh viz case_dir/ --var pres --tui", "Terminal UI over SSH (1D/2D, no browser)"), |
| 1087 | + Example("./mfc.sh viz case_dir/ --var pres --step 1000 --png", "Save pressure PNG at step 1000"), |
| 1088 | + Example("./mfc.sh viz case_dir/ --var schlieren --step 0:10000:500 --mp4", "Encode schlieren MP4 from range"), |
| 1089 | + Example("./mfc.sh viz case_dir/ --step 0,100,200,...,1000 --png", "Render all steps 0–1000 as images"), |
| 1090 | + Example("./mfc.sh viz case_dir/ --var pres --step 500 --slice-axis x --png", "3D: x-plane slice of pressure"), |
1093 | 1091 | ], |
1094 | 1092 | key_options=[ |
1095 | 1093 | ("-- Discovery --", ""), |
|
1099 | 1097 | ("--var NAME", "Variable to plot (omit for tiled all-vars layout)"), |
1100 | 1098 | ("--step STEP", "last (default), int, start:stop:stride, list, or 'all'"), |
1101 | 1099 | ("-- Output modes --", ""), |
1102 | | - ("(default)", "Save PNG to case_dir/viz/; use -o DIR to change"), |
1103 | | - ("--mp4", "Encode frames into an MP4 video"), |
| 1100 | + ("(default)", "Terminal UI — works over SSH, no browser needed (1D/2D)"), |
1104 | 1101 | ("--interactive / -i", "Dash web UI in browser (supports 1D/2D/3D)"), |
1105 | | - ("--tui", "Terminal UI over SSH — no browser needed (1D/2D)"), |
| 1102 | + ("--png", "Save PNG image(s) to case_dir/viz/; use -o DIR to change"), |
| 1103 | + ("--mp4", "Encode frames into an MP4 video"), |
1106 | 1104 | ("-- Appearance --", ""), |
1107 | 1105 | ("--cmap NAME", "Matplotlib colormap (default: viridis)"), |
1108 | 1106 | ("--vmin / --vmax", "Fix color-scale limits"), |
|
0 commit comments