def rel_vort(u,v,dx,dy):
#get the gradient of the wind in the u- and v-directions
du = np.gradient(u)
dv = np.gradient(v)
#compute the relative vorticity (units : 10^-5 s^-1)
vort = ((dv[-1]/dx) - (du[-2]/dy))*pow(10,5)
#return the vorticity (Units: 10^-5 s-1)
return vort
###############################################################################
########################## End function rel_vort() ##########################
###############################################################################
#################### 25.Begin function of wind_chill() ######################
## Required libraries: numpy #
## #
## Inputs: t2m = ndarray of 2-meter temperature values (Units: F) #
## #
## wind = ndarray of 10-meter bulk wind values (Units: MPH) #
## #
###############################################################################
评论列表
文章目录