Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
cyschneck committed Apr 11, 2023
1 parent 3237711 commit 3bcf9fa
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ The data filename contains a lot of information about the observation

- BI = BIDR data
- B = data in dB normalized
- Q = obliquid dylindrical
- Q = oblique cylindrical
- D = 8 pixels/degree
- 05 = absolute value of latitude at center rounded to nearest degree
- S = hemisphere of center of file (Southern)
Expand Down Expand Up @@ -287,7 +287,7 @@ Note: "CORADR_0048", "CORADR_0186", "CORADR_0189", "CORADR_0209", "CORADR_0234"

There are data gaps and problems from the original downlinking and satellite location

CORADR_0048 (T4) did not have SAR data, only scatterometry and radiometery because of telemetry reasons in the handbook
CORADR_0048 (T4) did not have SAR data, only scatterometry and radiometry because of telemetry reasons in the handbook

CORADR_0186 (T52) only have radiometry and compressed scatterometry

Expand Down Expand Up @@ -686,7 +686,7 @@ COMING SOON: Extract metadata from .TAB file (using .FMT as a reference)
* save .IMG as .SHP for ArcGIS

### TODO Questions:
* add details for what a segement_num is
* add details for what a segment_num is
* associate burst ID from SBDR data to BIDR data for metadata
* save .IMG as an array of pixel values
* save .IMG as .SHP for ArcGIS
Expand Down
2 changes: 1 addition & 1 deletion pydar/extract_flyby_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def extractFlybyDataImages(flyby_observation_num=None,
if flyby_observation_num in no_associated_bidr_values:
logger.info("\nINFO: due to data gaps or issues with downlinking, flyby does not have not have associated BIDR data.")
if flyby_observation_num == "0048":
logger.info("0048 (T4) did not have SAR data, only scatterometry and radiometery\n")
logger.info("0048 (T4) did not have SAR data, only scatterometry and radiometry\n")
elif flyby_observation_num == "0186":
logger.info("0186 (T52) only has radiometery and compressed scatterometry\n")
elif flyby_observation_num == "0189":
Expand Down
18 changes: 17 additions & 1 deletion pydar/pytests/test_extract_flyby_parameters.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Pytest for extract_flyby_parameters.py
# pytest -vs --disable-pytest-warnings
# pytest -vs --disable-pytest-warnings --show-capture=no
import logging

# External Python libraries (installed via pip install)
import pytest
Expand All @@ -22,3 +23,18 @@ def testConvertFlybyIDToObservationNumber(flyby_id_value, flyby_observation_outp
("0199", "T57")])
def testconvertObservationNumberToFlybyID(flyby_observation_num_value, flyby_id_output):
assert pydar.convertObservationNumberToFlybyID(flyby_observation_num=flyby_observation_num_value) == flyby_id_output

'''
def testExtractFlybyDataImages(caplog):
caplog.clear()
with caplog.at_level(logging.CRITICAL):
with pytest.raises(SystemExit) as cm:
pydar.extractFlybyDataImages()
assert "CRITICAL ERROR: Requires either a flyby_observation_num OR flyby_id." in caplog.text
caplog.clear()
def testTesting():
with pytest.raises(ValueError) as exc_info:
pydar.testing()
assert str(exc_info.value) == "hello Titan"
'''

0 comments on commit 3bcf9fa

Please sign in to comment.