Skip to content

spatial query crossing anti-meridian #512

Answered by JessicaS11
ihowat asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @ihowat! icepyx does accept geographic coordinates, but they need to be submitted with an argument that lets icepyx know you're intentionally doing so (versus accidentally submitting your coordinates in the wrong order, which makes it hard to detect this case automatically). The history of this limitation is that it's imposed by CMR/NSIDC, so while we have logic to do the 0-360 to -180-180 conversion for users, it doesn't happen automatically.

Simply adding xdateline=True to your Query input (e.g. region = ipx.Query("ATL03", spatial_extent=my_bounding_box, date_range=my_dates, xdateline=True)) should do the trick. If this DOESN'T work or gives you unexpected output, please do share …

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by JessicaS11
Comment options

You must be logged in to vote
1 reply
@JessicaS11
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants