mirror of
https://github.com/Unidata/python-awips.git
synced 2025-02-23 14:57:56 -05:00
Add knots units for speed calculation
This commit is contained in:
parent
42bd72c72b
commit
215bbc2815
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@
|
|||
"# assign units\n",
|
||||
"p = (prSig/100) * units.mbar\n",
|
||||
"wpres = (wpres/100) * units.mbar\n",
|
||||
"u,v = wind_components(spd, np.deg2rad(direc))\n",
|
||||
"u,v = wind_components(spd * units.knots, np.deg2rad(direc))\n",
|
||||
"\n",
|
||||
"if tpUnit is 'K':\n",
|
||||
" T = (tpSig-273.15) * units.degC\n",
|
||||
|
|
Loading…
Add table
Reference in a new issue