{"push_id":2969425649,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"0e192a745418fa47a3dda8639a3cbaf50de83127","before":"bb5c2fbc6907b95db7f7b6dbe1d7424b242ecff7","commits":[{"sha":"0e192a745418fa47a3dda8639a3cbaf50de83127","author":{"name":"Leonardo Uieda","email":"af5a4f921bce1cff37c527ae17e9ff4ae6468029@gmail.com"},"message":"Ellipsoids for gravity and coordinate calculations (#5)\n\nNormal gravity calculations and coordinate transformations from geodetic to geocentric,\r\nfor example, require a reference ellipsoid. The ellipsoid will vary depending on the\r\ndataset or planet that is being studied.\r\n\r\nThis introduces the `harmonica/ellipsoid.py` module that defines:\r\n\r\n* The `ReferenceEllipsoid` class that defines an ellipsoid using 4 parameters and\r\n  exposes derived quantities. Will be used to calculate normal gravity, etc.\r\n* A package wide ellipsoid instance that lives in this module and is accessed by the\r\n  `get_ellipsoid()` function.\r\n* A function/context-manager `set_ellipsoid` that allows setting a known ellipsoid by\r\n  name or a custom one for the entire package.\r\n* Known values for WGS84 and GRS80 from the Physical Geodesy book.\r\n\r\nSetting the ellipsoid will now look like this:\r\n\r\n```\r\nimport harmonica as hm\r\n\r\nhm.set_ellipsoid(\"GRS80\")\r\n... # do gravity reductions with GRS80 now\r\n\r\nwith hm.set_ellipsoid(hm.ReferenceEllipsoid(...)):\r\n    ... # calculations in here use a user-defined ellipsoid\r\n```\r\n\r\nFunctions that need the current ellipsoid for computations should use `get_ellipsoid`.","distinct":true,"url":"https://api.github.com/repos/fatiando/harmonica/commits/0e192a745418fa47a3dda8639a3cbaf50de83127"}]}
{"actor":{"display_login":"leouieda"}}