Open NickMortimer opened 5 years ago
Create a pull request to the pangeo-data/agu-2018-tutorial repo. That the best way of getting that back to the Pangeo community.
On Fri, May 10, 2019 at 12:30 PM Nick Mortimer notifications@github.com wrote:
@jmunroe https://github.com/jmunroe going through the example the latitude spacing is 2 degrees not 1 so area calculation is compromised
probably should be something like
dϕ = np.deg2rad(sst.lat.pointwidth) dλ = np.deg2rad(sst.lon.pointwidth) dA = R*2 dϕ dλ np.cos(np.deg2rad(ds.lat.rename('area'))) dA.attrs['units'] ='m^2' dA.plot()
Kind of want to do my first pull request for the pangeo community but need to find the source of this notebook
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/jmunroe/pangeo-tutorial-c3dis-2019/issues/3, or mute the thread https://github.com/notifications/unsubscribe-auth/ABPFFO5Z6SPZ2UVLKSUTVLDPUTM4PANCNFSM4HL7LKXA .
-- JAMES MUNROE | ASSOCIATE PROFESSOR
Department of Physics and Physical Oceanography Memorial University of Newfoundland 230 Elizabeth Avenue St. John’s, Newfoundland, Canada A1C 5S7 Chemistry and Physics Building | Room C 4060 T 709 864 7362 | M 709 771 0450
www.physics.mun.ca
@jmunroe going through the example the latitude spacing is 2 degrees not 1 so area calculation is compromised
probably should be something like
dϕ = np.deg2rad(sst.lat.pointwidth) dλ = np.deg2rad(sst.lon.pointwidth) dA = R*2 dϕ dλ np.cos(np.deg2rad(ds.lat.rename('area'))) dA.attrs['units'] ='m^2' dA.plot()
Kind of want to do my first pull request for the pangeo community but need to find the source of this notebook