If you want to generate something in N units process the text file using a regular expression or similar in bash or as I did, just drop into an excel spreadsheet. I see I last did that in 2006. Will it still work? Sort of. Just needed the right columns selecting.

- Screenshot 2025-01-20 171735.png (19.19 KiB) Viewed 3684 times
This is what you get from the university of Wyoming
03354 Nottingham Observations at 12Z 20 Jan 2025
-----------------------------------------------------------------------------
PRES HGHT TEMP DWPT RELH MIXR DRCT SKNT THTA THTE THTV
hPa m C C % g/kg deg knot K K K
-----------------------------------------------------------------------------
1004.0 118 3.0 -0.3 79 3.74 225 5 275.8 286.2 276.5
1000.0 149 3.0 -0.4 78 3.73 230 6 276.1 286.5 276.8
993.0 206 2.4 -1.0 78 3.58 235 10 276.1 286.1 276.7
988.0 247 2.0 -1.5 78 3.48 245 12 276.1 285.8 276.7
<SNIPPED>
Here is what I have used to make the graph - the column orders have changed maybe so might need to adapt test to columns in excel, we only need 4 of them, HGHT, PRES TEMP and MIXR in columns A, B, C and D. Then calculate in excel.
A B C D E F G
HGHT PRES TEMP MIXR
118 1004 3 3.74 276 4.756866359 305.5763174
149 1000 3 3.73 276 4.744147465 304.3894009
206 993 2.4 3.58 275.4 4.543465438 302.1439381
247 988 2 3.48 275 4.410138249 300.5474587
263 986 2.6 3.03 275.6 3.848239631 296.5233993
I first change from centigrade to Kelvin simply because it makes the next bit easier.
I.e. Column E3 has "=C3+273" in it - the temperature in K
Column F3 has "=D3*E3/217" in it - what I call e in the equation on my website, the water vapour partial pressure.
Column G3 has "=77.6*B3/E3+373000*F3/(E3*E3)" in it which is the refractivity in N units.
So then just plot N as an XY graph against height.

- Screenshot 2025-01-20 173627.png (31.43 KiB) Viewed 3684 times
Not sure this is entirely accurate but good enough for our use, so use at own risk. Obviously if you wanted a web version you would simply do the calculation in a scrips and send it to a plotting package.
Mike