Skip to content

Instantly share code, notes, and snippets.

@KMarshland
Created March 29, 2024 22:06
Show Gist options
  • Select an option

  • Save KMarshland/033ddecb90357ff16999cbc86bdebb5a to your computer and use it in GitHub Desktop.

Select an option

Save KMarshland/033ddecb90357ff16999cbc86bdebb5a to your computer and use it in GitHub Desktop.
Latitude weights
lats = np.arange(90, -90.01, -0.25, dtype=np.float32) * np.pi/180
weights = np.ones((721, 1440), dtype=np.float32)
weights *= np.cos(lats)[:, np.newaxis]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment