PCMDI / nominal_resolution

tools to compute nominal resolution
3 stars 1 forks source link

radian vs. degree confusion #4

Open taylor13 opened 5 years ago

taylor13 commented 5 years ago

In the calculation

 del_lons = numpy.ma.where(numpy.ma.greater(del_lons,180.),numpy.ma.absolute(del_lons-360.), del_lons)

the 180 and 360 should be expressed in radians (i.e., pi and 2*pi)

doutriaux1 commented 5 years ago

at: https://github.com/PCMDI/nominal_resolution/blob/master/lib/api.py#L96