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

UAVSAR cropping fixes for stackStripmapApp #367

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sssangha
Copy link
Contributor

Hello team, I am working to process UAVSAR data with stackStripmapApp.py and ran into a few issues when attempting to crop my scenes. Below I detail the simple changes I have made to address them:

  1. frame.image.filename and frame.image.width were empty in ‘cropFrames.py’, which led to crashes. Thus ‘prepareUAVSAR_coregStack.py’ was updated to populate these fields in the shelve file.

  2. In cropFrames.py, numpy.int is depreciated so I replaced all np.int calls with int

  3. Finally in cropFrames.py, I adjusted the min/max check for each dimension so only <0 differences are flagged… Important because with long inclined swaths like UAVSAR, the user may want to only crop in one dimension, and the check fails if the other isn’t cropped.

Please let me know if any further clarification/information is needed.


print('Line limits: ', ymin, ymax)
print('Original Line Limits: ', 0, frame.numberOfLines)

if (ymax-ymin) <= 1:
if (ymax-ymin) < 0:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do you want to allow zero? Does zero mean that there is one pixel overlap?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ping @ssangha, I think this is the only part we'd like clarification about. LGTM otherwise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants