Skip to content
This repository has been archived by the owner on Jun 10, 2020. It is now read-only.

Function to find if a specific point is within an image's boundaries #82

Open
1 of 3 tasks
Matmorcat opened this issue Oct 8, 2019 · 0 comments
Open
1 of 3 tasks
Assignees
Labels
enhancement New feature or request todo Feature needs additional stuff
Projects

Comments

@Matmorcat
Copy link
Contributor

Matmorcat commented Oct 8, 2019

  • One of the things that would benefit our program for the sake of new users is to add a function that would be able to determine whether a point is within a specific region defined by the image's 4 corners (the image is a quadrilateral and may be either a trapezoid or a shape similar to a parallelogram).

    In our meeting, we agreed that the structure would look something like this:

    from Typing import Tuple
    
    def is_in_region(search_lat: double, search_lon: double, 
                     ll_lat: double, ll_lon: double, lr_lat: double, lr_lon: double, 
                     ul_lat: double, ul_lon: double, ur_lat: double, ur_lon: double):
    
        # Code here
    
        # Returns True if the point is within the region, otherwise, return False
        return is_in_region
  • This function would allow another script to recurse through all the matching images for a storm (via the catalog.csv) and find which images contain the given position (latitude, longitude) on Earth. This is a separate function, but you may do this as well if you wish!

  • I can help with implementing the command-line functionality after these are done.

@Matmorcat Matmorcat added enhancement New feature or request todo Feature needs additional stuff labels Oct 8, 2019
@Matmorcat Matmorcat added this to the Utilizing Geo Data milestone Oct 8, 2019
@Matmorcat Matmorcat added this to To do in General via automation Oct 8, 2019
@Matmorcat Matmorcat moved this from To do to In progress in General Oct 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request todo Feature needs additional stuff
Projects
General
  
In progress
Development

No branches or pull requests

2 participants