diff --git a/cat/dat/GUI.cfg b/cat/dat/GUI.cfg index 08eb5352ac5b25eceded0f1d7b00d2e12b222a9e..2c23b42c8cb3191277f65bce73b440b843cc0941 100644 --- a/cat/dat/GUI.cfg +++ b/cat/dat/GUI.cfg @@ -1,5 +1,5 @@ Hamburg GUI Config File Version 16 -Screen: 2560x1418 +Screen: 1920x1080 WinRows = 3 WinCols = 3 @@ -8,8 +8,8 @@ WinCols = 3 Array:GQ Plot:ISOREC Palette:AUTO -Title:Vorticity -Geometry: 1000 1000 1 1 +Title:Vorticit +Geometry: 1000 1000 65 28 [Window 01] Array:SPAN @@ -72,7 +72,7 @@ Title:Tables Inactive: 853 367 1706 779 [Control Window] -Geometry: 920 122 820 1172 +Geometry: 920 122 1107 678 # Scalar attributes for timeseries and table window diff --git a/cat/dat/GUI_a.cfg b/cat/dat/GUI_a.cfg new file mode 100644 index 0000000000000000000000000000000000000000..2c23b42c8cb3191277f65bce73b440b843cc0941 --- /dev/null +++ b/cat/dat/GUI_a.cfg @@ -0,0 +1,139 @@ +Hamburg GUI Config File Version 16 +Screen: 1920x1080 + +WinRows = 3 +WinCols = 3 + +[Window 00] +Array:GQ +Plot:ISOREC +Palette:AUTO +Title:Vorticit +Geometry: 1000 1000 65 28 + +[Window 01] +Array:SPAN +Plot:ISOSH +Palette:AMPLI +Title:Spherical Harmonics Ps +Inactive: 853 367 853 -1 + +[Window 02] +Array:CST +Plot:ISOCS +Palette:T +Title:Temperature [C] +Inactive: 853 367 1706 -1 + +[Window 03] +Array:GP +Plot:MAPHOR +Projection:POLAR +Rotation factor:0 +Palette:P +Title:Surface Pressure [hPa] +Inactive: 853 367 0 389 + +[Window 04] +Array:GU +Plot:MAPTRA +Projection:AZIMUTHAL +Rotation factor:0 +Palette:U +Title:Tracer Level 3 +Inactive: 853 367 853 389 + +[Window 05] +Array:GV +Plot:ISOLON +Palette:U +Title:Meridional Wind [m/s] Latitude 42N +Inactive: 853 367 1706 389 + +[Window 06] +Array:GP +Plot:ISOHOV +Palette:P +Title:Ps Hovmoeller Latitude 42N +Inactive: 853 367 0 779 + +[Window 07] +Array:SCALAR +Plot:ISOTS +Palette:AUTO +Title:Timeseries +Inactive: 853 367 853 779 + +[Window 08] +Array:SCALAR +Plot:ISOTAB +Palette:AUTO +Title:Tables +Inactive: 853 367 1706 779 + +[Control Window] +Geometry: 920 122 1107 678 + +# Scalar attributes for timeseries and table window + +[Scalar 00] +Name:T +Sub: +Unit:C +Scale: + +[Scalar 01] +Name:RMS Div +Sub: +Unit:1/s +Scale:-6 + +[Scalar 02] +Name:PE+KE +Sub: +Unit:m2/s2 +Scale: + +[Scalar 03] +Name:RMS Ps +Sub: +Unit:hPa +Scale: + +[Scalar 04] +Name:Vort +Sub: +Unit:1/s +Scale: + +# Parameter attributes for change menu + +[Parameter 00] +ParName:DISP +ParInc: 0.0100 +ParMin: 0.0000 +ParMax: 1.0000 + +[Parameter 01] +ParName:DTEP +ParInc: 5.0000 +ParMin: -95.0000 +ParMax: 100.0000 + +[Parameter 02] +ParName:DTNS +ParInc: 5.0000 +ParMin: -95.0000 +ParMax: 100.0000 + +[Parameter 03] +ParName:NSYNC +ParInc: 1.0000 +ParMin: 0.0000 +ParMax: 1.0000 + +[Parameter 04] +ParName:EPSYNC +ParInc: 1.0000 +ParMin: 0.0000 +ParMax: 100.0000 diff --git a/cat/dat/GUI_b.cfg b/cat/dat/GUI_b.cfg new file mode 100644 index 0000000000000000000000000000000000000000..43836e3196283aa160d284a15348be3849112d77 --- /dev/null +++ b/cat/dat/GUI_b.cfg @@ -0,0 +1,139 @@ +Hamburg GUI Config File Version 16 +Screen: 2560x1418 + +WinRows = 3 +WinCols = 3 + +[Window 00] +Array:GQ +Plot:ISOREC +Palette:AUTO +Title:Vorticity +Geometry: 1000 1000 1 1 + +[Window 01] +Array:SPAN +Plot:ISOSH +Palette:AMPLI +Title:Spherical Harmonics Ps +Inactive: 853 367 853 -1 + +[Window 02] +Array:CST +Plot:ISOCS +Palette:T +Title:Temperature [C] +Inactive: 853 367 1706 -1 + +[Window 03] +Array:GP +Plot:MAPHOR +Projection:POLAR +Rotation factor:0 +Palette:P +Title:Surface Pressure [hPa] +Inactive: 853 367 0 389 + +[Window 04] +Array:GU +Plot:MAPTRA +Projection:AZIMUTHAL +Rotation factor:0 +Palette:U +Title:Tracer Level 3 +Inactive: 853 367 853 389 + +[Window 05] +Array:GV +Plot:ISOLON +Palette:U +Title:Meridional Wind [m/s] Latitude 42N +Inactive: 853 367 1706 389 + +[Window 06] +Array:GP +Plot:ISOHOV +Palette:P +Title:Ps Hovmoeller Latitude 42N +Inactive: 853 367 0 779 + +[Window 07] +Array:SCALAR +Plot:ISOTS +Palette:AUTO +Title:Timeseries +Inactive: 853 367 853 779 + +[Window 08] +Array:SCALAR +Plot:ISOTAB +Palette:AUTO +Title:Tables +Inactive: 853 367 1706 779 + +[Control Window] +Geometry: 920 122 820 1172 + +# Scalar attributes for timeseries and table window + +[Scalar 00] +Name:T +Sub: +Unit:C +Scale: + +[Scalar 01] +Name:RMS Div +Sub: +Unit:1/s +Scale:-6 + +[Scalar 02] +Name:PE+KE +Sub: +Unit:m2/s2 +Scale: + +[Scalar 03] +Name:RMS Ps +Sub: +Unit:hPa +Scale: + +[Scalar 04] +Name:Vort +Sub: +Unit:1/s +Scale: + +# Parameter attributes for change menu + +[Parameter 00] +ParName:NGUI +ParInc: 1.0000 +ParMin: 1.0000 +ParMax: 1000.0000 + +[Parameter 01] +ParName:QMAX +ParInc: 1.0000 +ParMin: 0.0000 +ParMax: 1000.0000 + +[Parameter 02] +ParName:DTNS +ParInc: 5.0000 +ParMin: -95.0000 +ParMax: 100.0000 + +[Parameter 03] +ParName:NSYNC +ParInc: 1.0000 +ParMin: 0.0000 +ParMax: 1.0000 + +[Parameter 04] +ParName:EPSYNC +ParInc: 1.0000 +ParMin: 0.0000 +ParMax: 100.0000 diff --git a/cat/src/guix11.c b/cat/src/guix11.c index b08ec1d9ecf84f0e2a8b2e9382855efb2667f985..ebf362c8532d8d94df54a8d8f1944f443cc0bad6 100644 --- a/cat/src/guix11.c +++ b/cat/src/guix11.c @@ -2594,12 +2594,18 @@ void LinePlot(int w) if (zrange < 1e-10) f = 1.0; else f = (InYSize-2) / zrange; + if (Debug) + { + printf("LinePlot: %6d %10.4e %10.4e %10.4e %10.4e \n", + DimX, zmin,zmax,zrange,f); + } + // scale plot data for (i=0 ; i < DimX ; ++i) { - LIxp[w]->x = VGAX * i; - LIxp[w]->y = InYSize - 1 - f * (Field[i] - zmin); + LIxp[w][i].x = VGAX * i; + LIxp[w][i].y = InYSize - 1 - f * (Field[i] - zmin); } // fill plot area with black @@ -2609,6 +2615,7 @@ void LinePlot(int w) // draw data + XSetForeground(display,gc,WhitePix); XDrawLines(display,pix,gc,LIxp[w],DimX,CoordModeOrigin); }