-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
polar regions #29
Comments
Hi @steigeec, sorry to hear about that! This issue might be caused by the I would follow the fix issued in https://github.com/NovembreLab/feems/pull/20/files by @karolisr. Let me know if that does not fix the issue. |
Thanks so much, @VivaswatS , for your helpful response - My grid now spans more of the area I am interested in To obtain my dgg spanning the Arctic, I use dggridr as follows:
Once I enforce the changes to utils.pyIn preparing graph inputs, I find I get the Assertion Error others have gotten in preparing graph inputs (which I was not previously getting), so I edit that command as suggested:
I should have mentioned that I, both previously and on this occasion, get the PRJ error documented in this issue so have removed the .prj file associated with the shapefile. Re-examining the example dataset, I tried to close the crescent I plot by repeating the first coordinate set at the end of the outer file:
(since I turned translation off, also attempted the following, which gets the same result:
and, for good measure, a very nice and even circle around the poles):
One idea I've had is that the problem occurs near the international date line because of the international date line, and for this reason I cannot use translated=False to good effect-- but rather need to find an alternate solution to the Assertion error. Or perhaps the complete set of edges is not generated due to some aspect of the prepare_graph_inputs function, though I am not yet sure how to check that. |
@steigeec do you mind posting a list of coordinates for your samples here? I think it has something to do with the |
Yes, of course!
Thank you! |
Hi -
Thank you for developing and maintaining FEEMS!
I'm now hoping to deploy in a polar region, and am struggling to create the spatial graph object correctly. My spatial graph should span the arctic circle, but instead ends up covering only a small polygon to one side of the pole. I am using as input a discrete global grid generated in ddgridR, and initially started with outer coordinates as follows:
-65.00 72.00
55.00 72.00
155.00 58.00
-147.00 58.00
I'm curious about whether perhaps I need to modify the source code to specify my projection (projection = ccrs.NorthPolarStereo(central_longitude=0)) earlier, like this? :
def prepare_graph_inputs(coord, ggrid, translated, buffer=0, outer=None, projection=None):
# ... (existing code)
# load_tiles modification to handle projection
tiles2 = load_tiles(ggrid, crs=projection)
I have tried this, as well as playing around with different specifications of the outer coordinates, but so far not managed to make it work, so thought I might check whether you had any advice on how I might deal with this!
Thanks so much!
Emma
The text was updated successfully, but these errors were encountered: