U g@s,ddlZGdddeZddZddZdS)Nc@seZdZddZdS)QuantitycCs ||_dS)N) magnitude)selfvaluesrK/lfs/h1/ops/prod/packages/ens_tracker.v1.3.6/ush/FSUgenesisPY/vorpy/calc.py__init__szQuantity.__init__N)__name__ __module__ __qualname__rrrrrrsrcCs0tj|dd}tj|dd}t||||S)ze Crippled version of metpy.calc.vorticity Small errors likely due to dx, dy calculations r)axis)npgradientr)uvdxdy dim_orderZduZdvrrr vorticity srcKsVt|d}t|d}t||\}}|tt|ddtjf}||fS)z> Crippled version of metpy function which barely does anythingiN)rrmeshgridcosradiansnewaxis)Z longitudeZlatitudekwargsrrZdxxZdyyrrrlat_lon_grid_deltass "r)numpyrobjectrrrrrrrs