Repository navigation
Conversation
Author
|
Also, attaching a more complete test suite for |
Author
|
Minor bug fix caught thanks to @scottstanie If one wants to test this with simple SICD PFA files, the code would look something like this from osgeo import gdal
import xml.etree.ElementTree as ET
# Build rrdot proj string from SICD file
ds = gdal.Open(nitffile, gdal.GA_ReadOnly)
meta = ds.GetMetadata("xml:DES")[0]
ds = None
first = meta.find("<SCPCOA>")
second = meta.find("</SCPCOA>", first)
root = ET.fromstring(meta[first:second + 9])
params = {}
pos = root.find("ARPPos")
for axis in ["X", "Y", "Z"]:
params[axis.lower()] = float(pos.find(axis).text)
vel = root.find("ARPVel")
for axis in ["X", "Y", "Z"]:
params[f"V{axis}".lower()] = float(vel.find(axis).text)
params["left"] = root.find("SideOfTrack").text.startswith("L")
print(params) |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adding support for the Range-Doppler coordinate system used by SAR missions.
This is the second projection system for SAR after
sch.For high resolution sensors that distribute data in Polar Format, this system can be used to describe the imaging geometry of an entire L1 product.
For missions like NISAR and Sentinel-1, which use time dependent projection systems, this can describe the imaging geometry of one range line in the Level-1 produts.
docs/source/*.rstfor new API