3 O`@s,ddlZGdddeZddZddZdS)Nc@seZdZddZdS)QuantitycCs ||_dS)N) magnitude)selfvaluesrJ/gpfs/hps/nco/ops/nwprod/ens_tracker.v1.2.2/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 srcKsVtj|d}tj|d}tj||\}}|tjtj|ddtjf}||fS)z> Crippled version of metpy function which barely does anythingiN)rrmeshgridcosradiansnewaxis)Z longitudeZlatitudekwargsrrZdxxZdyyrrrlat_lon_grid_deltass "r)numpyrobjectrrrrrrrs