You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 11, 2022. It is now read-only.
#102 made me realize how easily the bounding coordinates can be inversed by mistake, and how they can pass silently for the same layers.
I don't really see any use in allowing constructing layers with inversed bounds, where top < bottom & right < left, so I'll add an argument error to prevent this.
l1 =SimpleSDMPredictor(WorldClim, BioClim, 1)
l2 =SimpleSDMPredictor(copy(l1.grid), 180.0, -180.0, 90.0, -90.0) # looks the same, but bounds really are inversed# This should throw an error
l1.grid == l2.grid # same gridextrema(longitudes(l1)) ==extrema(longitudes(l2)) # same longitude extremas (displayed by show method)extrema(latitudes(l1)) ==extrema(latitudes(l2)) # same latitude extremas toolongitudes(l1) ==longitudes(l2) # false, inversedlatitudes(l1) ==latitudes(l2) # false, inversed
#102 made me realize how easily the bounding coordinates can be inversed by mistake, and how they can pass silently for the same layers.
I don't really see any use in allowing constructing layers with inversed bounds, where top < bottom & right < left, so I'll add an argument error to prevent this.
Edit: Fixed in a40267e and 77eca5d
The text was updated successfully, but these errors were encountered: