Skip to content

readfile: allow ENVI files created with SUFFIX=ADD#841

Merged
yunjunz merged 2 commits intoinsarlab:mainfrom
scottstanie:read-hdr-suffix
Sep 1, 2022
Merged

readfile: allow ENVI files created with SUFFIX=ADD#841
yunjunz merged 2 commits intoinsarlab:mainfrom
scottstanie:read-hdr-suffix

Conversation

@scottstanie
Copy link
Contributor

@scottstanie scottstanie commented Aug 29, 2022

Description of proposed changes

The GDAL creation option "SUFFIX=ADD" will append .hdr to the name, rather than replace the suffix. https://gdal.org/drivers/raster/envi.html

This addition will search for that extra naming convention for ENVI files and not miss the metadata.

Reminders

  • Pass Codacy code review (green)
  • Pass Circle CI test (green)
  • Make sure that your code follows our style. Use the other functions/files as a basis.
  • If modifying functionality, describe changes to function behavior and arguments in a comment below the function declaration.

the GDAL creation option "SUFFIX=ADD" will append .hdr to the name, rather than replace the suffix
@yunjunz yunjunz self-requested a review September 1, 2022 16:28
Copy link
Member

@yunjunz yunjunz left a comment

Choose a reason for hiding this comment

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

Thank you @scottstanie.

@yunjunz yunjunz merged commit 3245008 into insarlab:main Sep 1, 2022
@scottstanie scottstanie deleted the read-hdr-suffix branch September 1, 2022 21:32
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.

2 participants