Open eyvorchuk opened 4 years ago
I have a question: Why convert units? P2A, at least, converts units on the frontend; that is a presentation issue, which is the responsibility of the UI, not of the data backend. Possibly the Marmot may need this, possibly lacking units conversions? (That can be remedied, particularly given the utilities now in P2A.)
I have a question: Why convert units? P2A, at least, converts units on the frontend; that is a presentation issue, which is the responsibility of the UI, not of the data backend. Possibly the Marmot may need this, possibly lacking units conversions? (That can be remedied, particularly given the utilities now in P2A.)
I'm not sure. @corviday wrote the original issue.
I forgot I'd written that issue. At the time I wrote it, we did not yet have p2a, just PCEX, so it didn't occur to me that we might do unit conversion in the front end instead.
The
generate_climos.py
andgenerate_prsn.py
files have been modified to convert the prsn data frommm
tocm
(equivalently,kg/m2
tog/cm2
). Thetest_generate_prsn.py
file has an additional assert statement to ensure the correct units.