-
Notifications
You must be signed in to change notification settings - Fork 48
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
Allow DEMs with projections that are not north-up #544
Comments
latwood
added a commit
that referenced
this issue
Feb 11, 2025
latwood
added a commit
that referenced
this issue
Feb 11, 2025
…runs. Also caught a spot in the original mass solver domain average run implementation that seemed to need corrected seems like we will need to take extra care to check each instance of input.inputDirection in the code, to determine whether angleFromNorth needs to be added or not, or setup a second direction variable to be differentiated from the input.inputDirection value for issue #544
latwood
added a commit
that referenced
this issue
Feb 11, 2025
the original fix was to deal with png layers not quite extending to the right spots/bounds in the domain. The fix was necessary this time because negative input min and max bounds would result in vectors not being drawn in google earth. The locations of the vectors and values would pop up, but no arrows would be drawn. The problem this time turned out to be because the bounds in the overall LatLonAltBox of the kmz would get reversed. The fix worked because it keeps track of all four points of the bounding box, rather than just two. I suspect that the fix will also be more robust for when we allow more types of projections in WindNinja, as the bounding box can take on varying orientations during reprojections. The original fix is described in e765438 and 395c93e. This fix should come in real handy for issue #544
latwood
added a commit
that referenced
this issue
Feb 26, 2025
This was required to get the angle correction done right for utm projections going from east to west, the original calculation turned out to be good for utm projections going from west to east. Basically, when reprojecting, the angle corrector needed to be added for datasets that rotate counter-clockwise, and subtracted for datasets that rotate clockwise.
latwood
added a commit
that referenced
this issue
Mar 3, 2025
…ebugging purposes, as normal runs are now also affected/altered. For issue #544
latwood
added a commit
that referenced
this issue
Mar 3, 2025
…Initialization Tested and should be correct, though I had to take extra care to not just adjust the initialization grids set by setInitializationGrids() or the equivalent interpolateWxGridsToNinjaGrids(), but I also had to watch out for use of the initialization grids in setting the input.inputDirection value in each and every ninjaFoamInitializeFields() function. For issue #544
latwood
added a commit
that referenced
this issue
Mar 4, 2025
tested and should be correct, the idea is to update the raw loop values once before all the looping, then they just adjust as normal as needed for issue #544
latwood
added a commit
that referenced
this issue
Mar 6, 2025
latwood
added a commit
that referenced
this issue
Mar 7, 2025
looks like kmz was the only output that needed such an adjustment. The raw values printed to the kmz needed adjusted back by angleFromNorth, the vector drawing was still good. though it should be noted, that this does mean a slight difference of 2 degrees in drawn vectors compared to the original, as we weren't accounting for angleFromNorth for all our past utm cases. A second check to show that this ~2 degree angleFromNorth of utm vs lat/lon adjustment is correct, is to plot the vectors in lat/lon using the lat/lon angle, those plotted vectors come out the same as our current plotted vectors in direction and angle, where our current method is to plot the vectors in utm using the utm angle and projecting the vectors to lat/lon.
latwood
added a commit
that referenced
this issue
Mar 7, 2025
…DISABLE_ANGLE_FROM_NORTH_CALCULATION for clarity, for issue #544
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To do this, one idea is:
We think this is all that would need to be done, but this work should be double checked during implementation.
The text was updated successfully, but these errors were encountered: