Commit graph

313 commits

Author SHA1 Message Date
d431f36989 Implement cmp() in util.py 2025-03-07 18:41:14 -05:00
9de6ac0d56 Fix docstring 2025-03-07 14:50:05 -05:00
944bae9303 Constants alignment on decimal 2025-03-07 14:39:43 -05:00
7c9af22d51 Implement mixing_ratio_temp() 2025-03-07 13:58:58 -05:00
8b8cfb3add Slight improvements in docstrings 2025-03-07 11:43:32 -05:00
5d1a2bbe54 Implement nearest() in list.py 2025-03-06 09:40:44 -05:00
e18ca9be1f Remove useless cairo.stroke() after show_text() 2025-03-06 09:18:04 -05:00
ac2e17e61f Remove implicit dewpoint argument 2025-03-05 16:30:19 -05:00
c0ed20cce5 Reimplement draw_adiabat() with loft_parcel() 2025-03-05 16:13:50 -05:00
59f261aeee Implement loft_parcel()
Implement loft_parcel() to iterate through pressure levels, yielding the
temperature and pressure of the parcel at each height
2025-03-05 16:06:11 -05:00
796257194b Make draw_adiabat() take fn to find lapsse rate 2025-03-05 13:48:08 -05:00
ff18a8821a Ensure adiabats terminate at minimum pressure 2025-03-05 11:09:18 -05:00
9af9bd2b51 Color moist adiabats differently 2025-03-05 09:12:57 -05:00
5a22a5fd37 Use saturated mixing ratio in moist lapse rate 2025-03-05 01:13:28 -05:00
6bb92a45b8 Adjust units in mixing ratios to kilograms 2025-03-05 01:13:07 -05:00
bc9a2977a5 Initial implementation of moist adiabat plotting (it sucks) 2025-03-05 00:35:21 -05:00
fe4b980ac9 Fix typos in vapor pressure routines 2025-03-05 00:34:56 -05:00
0aad130001 Initial implementation of moist_lapse_rate() 2025-03-05 00:34:23 -05:00
b45a6f27c5 Allow providing lapse rate argument 2025-03-04 23:21:18 -05:00
929e6b4351 Hardcode lapse() to perform dry lapse 2025-03-04 22:57:01 -05:00
706a1cf41e Implement rendering of dry adiabats 2025-03-04 21:52:00 -05:00
56c1dc608e Fix lapse() calculation 2025-03-04 21:49:34 -05:00
65c500b9be Implement pressure_height() 2025-03-04 21:49:27 -05:00
2f492dd16c Make hodograph zoom, alignment optional 2025-03-04 11:03:27 -05:00
d0e1b763a7 Better alignment 2025-03-04 00:19:57 -05:00
6a00aad2a1 Show direction legends in all four cardinals 2025-03-03 23:46:38 -05:00
59a82534dc No need for stroke() after show_text() 2025-03-03 23:46:10 -05:00
0eecc40839 Draw basic direction legends at the top and bottom of graph 2025-03-03 22:15:10 -05:00
df0b885447 Remove unnecessary run.sh 2025-03-03 21:14:12 -05:00
f58dd8816f Draw direction lines every 30 degrees 2025-03-03 17:51:04 -05:00
8f96849fc4 Render speed legends both N and S 2025-03-03 17:50:43 -05:00
ea38bdaa50 Draw legends over plotted data 2025-03-03 17:33:33 -05:00
ea3e49aa3b Fix speed circle radius calculation 2025-03-03 17:32:19 -05:00
5307498522 Zoom hodograph out a bit 2025-03-03 17:20:29 -05:00
66ca08c1ff Nearly finished refactoring hodographs to zoom, scale automatically 2025-03-03 17:18:39 -05:00
87c192d000 Update .gitignore 2025-03-03 17:18:19 -05:00
71c42cd1ec Rename xmet-sounding-graph to -plot; add ability to plot hodographs 2025-03-03 10:43:18 -05:00
e3df02db87 Skip plotting unknown height values 2025-03-03 10:43:03 -05:00
2221dd6770 Fix wind speed/direction calculation (again) 2025-03-02 22:49:17 -05:00
1b09b29d59 Add comment indicating where to obtain documentation 2025-03-02 21:32:26 -05:00
5708e02704 Fix wind speed/direction calculation 2025-03-02 21:31:44 -05:00
131b01640c Stop parsing TTAA levels at the tropopause 2025-03-02 20:57:01 -05:00
e5cbb9675a Implement parsing for 700mb level 2025-03-02 20:56:37 -05:00
bfc3d87d73 Gate db.add() around --dry-run to ensure other logic exercised 2025-03-02 20:56:24 -05:00
f902201702 Remove unnecessary statement 2025-03-02 20:04:49 -05:00
6d7b8023c2 Look up IGRA stations when possible
Other changes:

* Refactor Database.query() to accept a list of clauses, rather than a
  dict of key-value pairs to build '{k} = :{k}' clauses from
2025-03-02 20:02:09 -05:00
c9f667301e I think this might be better? 2025-03-02 18:11:22 -05:00
bca617b318 Use 200mb height calculation for <=250mb 2025-03-02 17:49:47 -05:00
fb078eb7c4 Fix --dry-run to not touch database at all 2025-03-02 17:07:24 -05:00
3a8f5ae850 Add wrapper functions to RAOBReader 2025-03-02 17:06:56 -05:00