Skip to content
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

ENH: level 2 grid work/plotting #46

Merged
merged 2 commits into from
Aug 3, 2020
Merged

Conversation

tylerjereddy
Copy link
Owner

  • add some code to plot/debug the level 2
    grid and its center points

  • currently, there seem to be a few (possible) issues here:

  • some of the level 2 grid centers appear to be
    way too far away from the input spherical polygon
    where the smaller level 2 cells should be showing up,
    perhaps because of "wrapping" issues near angle boundaries
    (+/- 90 or +/- 180 perhaps)
  • I need to re-read some parts of the paper to make sure
    that it is "ok" that some level 2 grid cells are smaller
    than others (i.e., the corner where extra input polygon
    edges intersect a cell)

level_2_centers

* add some code to plot/debug the level 2
grid and its center points

* currently, there seem to be a few (possible) issues here:
- some of the level 2 grid centers appear to be
way too far away from the input spherical polygon
where the smaller level 2 cells should be showing up,
perhaps because of "wrapping" issues near angle boundaries
(+/- 90 or +/- 180 perhaps)
- I need to re-read some parts of the paper to make sure
that it is "ok" that some level 2 grid cells are smaller
than others (i.e., the corner where extra input polygon
edges intersect a cell)
@tylerjereddy tylerjereddy added the enhancement New feature or request label Aug 1, 2020
@tylerjereddy tylerjereddy changed the title ENH: level 2 grid work/plotting WIP, ENH: level 2 grid work/plotting Aug 1, 2020
@codecov
Copy link

codecov bot commented Aug 1, 2020

Codecov Report

Merging #46 into master will decrease coverage by 7.14%.
The diff coverage is 4.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #46      +/-   ##
==========================================
- Coverage   99.36%   92.21%   -7.15%     
==========================================
  Files           1        1              
  Lines         313      334      +21     
==========================================
- Hits          311      308       -3     
- Misses          2       26      +24     
Impacted Files Coverage Δ
lib.py 92.21% <4.00%> (-7.15%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a95cf0e...a0e6d9a. Read the comment docs.

* it seems the longitude transition point code in
`convert_cartesian_to_lat_long()` function was causing
issues with L2 grid cell placements near transition points;
deactivating it produces a much more reasonable level 2 grid plot

* some `pycodestyle` cleanups

* the overall grid plot looks more sensible now too
@tylerjereddy tylerjereddy changed the title WIP, ENH: level 2 grid work/plotting ENH: level 2 grid work/plotting Aug 3, 2020
@tylerjereddy
Copy link
Owner Author

Updated results for the level 2 and overall grid look more solid now than ever before (see below). Let me revisit my question about the corner resolution at a given level later.

level_2_centers

level_1_grid

@tylerjereddy tylerjereddy merged commit e87f1cf into master Aug 3, 2020
@tylerjereddy tylerjereddy deleted the level2_grid_plot_adjust branch August 3, 2020 00:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant