Skip to content

Commit

Permalink
retrieveFeaturesFromLatitudeLongitudeRange -> features_from_latlon_range
Browse files Browse the repository at this point in the history
  • Loading branch information
cyschneck committed Nov 12, 2024
1 parent 7c1cf16 commit 70af73a
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ A Python package to access, download, view, and manipulate Cassini RADAR images
* ids_from_latlon()
* ids_from_latlon_range()
* features_from_latlon()
* retrieveFeaturesFromLatitudeLongitudeRange()
* features_from_latlon_range()
* ids_from_time()
* ids_from_time_range()
* **Use flyby observation numbers/IDs to retrieve flyby observation data (.FMT, .TAB, .LBL, .IMG) from SBDR and BIDR data files by default**
Expand Down Expand Up @@ -386,12 +386,12 @@ pydar.features_from_latlon(latitude=-72, longitude=183)

Output = `['Ontario Lacus', 'Rossak Planitia']`

### retrieveFeaturesFromLatitudeLongitudeRange()
### features_from_latlon_range()

Return a list of features found at a range of latitude/longitude positions

```
retrieveFeaturesFromLatitudeLongitudeRange(min_latitude=None,
features_from_latlon_range(min_latitude=None,
max_latitude=None,
min_longitude=None,
max_longitude=None)
Expand All @@ -403,7 +403,7 @@ retrieveFeaturesFromLatitudeLongitudeRange(min_latitude=None,

```python
import pydar
pydar.retrieveFeaturesFromLatitudeLongitudeRange(min_latitude=-82,
pydar.features_from_latlon_range(min_latitude=-82,
max_latitude=-72,
min_longitude=183,
max_longitude=190)
Expand Down
2 changes: 1 addition & 1 deletion add_new_features.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
features_in_csv = list(features_df["Feature Name"])

# list of all features that exist (with both latitude/longitude values)
retrieved_features = pydar.retrieveFeaturesFromLatitudeLongitudeRange(
retrieved_features = pydar.features_from_latlon_range(
min_latitude=-90, max_latitude=90, min_longitude=0, max_longitude=360)

# check if all features in CSV have both latitude/longitude values
Expand Down
2 changes: 1 addition & 1 deletion example_pydar_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
f"\nFeature Names Found at -72 latitude and 183 longitude = {feature_names_list}"
)

feature_names_list = pydar.retrieveFeaturesFromLatitudeLongitudeRange(
feature_names_list = pydar.features_from_latlon_range(
min_latitude=-82,
max_latitude=-72,
min_longitude=183,
Expand Down
2 changes: 1 addition & 1 deletion pydar/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
from .retrieve_ids_by_time_position import ids_from_time
from .retrieve_ids_by_time_position import ids_from_time_range
from .retrieve_ids_by_time_position import features_from_latlon
from .retrieve_ids_by_time_position import retrieveFeaturesFromLatitudeLongitudeRange
from .retrieve_ids_by_time_position import features_from_latlon_range

## Version 2:

Expand Down
6 changes: 3 additions & 3 deletions pydar/pytests/test_error_retrieve_ids_by_time_position.py
Original file line number Diff line number Diff line change
Expand Up @@ -489,11 +489,11 @@ def test_retrieveIDSByLatitudeLongitude_verifyOutput(caplog):

## features_from_latlon() #############################

## retrieveFeaturesFromLatitudeLongitudeRange() ##########################
## features_from_latlon_range() ##########################


def test_retrieveFeaturesFromLatitudeLongitudeRange_verifyOutput(caplog):
found_features = pydar.retrieveFeaturesFromLatitudeLongitudeRange(
found_features = pydar.features_from_latlon_range(
min_latitude=-82,
max_latitude=-72,
min_longitude=183,
Expand All @@ -504,7 +504,7 @@ def test_retrieveFeaturesFromLatitudeLongitudeRange_verifyOutput(caplog):
]


## retrieveFeaturesFromLatitudeLongitudeRange() ##########################
## features_from_latlon_range() ##########################


## ids_from_time() #################################################
Expand Down
4 changes: 2 additions & 2 deletions pydar/retrieve_ids_by_time_position.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ def features_from_latlon(latitude: (int, float) = None,
longitude=longitude)

# Runs range check, but the range is 0 for an exact spot
feature_names_list = retrieveFeaturesFromLatitudeLongitudeRange(
feature_names_list = features_from_latlon_range(
min_latitude=latitude,
max_latitude=latitude,
min_longitude=longitude,
Expand All @@ -336,7 +336,7 @@ def features_from_latlon(latitude: (int, float) = None,


### RETURN FEATURE NAMES FOR A RANGE OF LATITUDE/LONGTIUDES #############
def retrieveFeaturesFromLatitudeLongitudeRange(
def features_from_latlon_range(
min_latitude: (int, float) = None,
max_latitude: (int, float) = None,
min_longitude: (int, float) = None,
Expand Down

0 comments on commit 70af73a

Please sign in to comment.