Skip to content

Reconcile save capture 110#153

Open
poynting wants to merge 5 commits into
masterfrom
reconcile-save-capture-110
Open

Reconcile save capture 110#153
poynting wants to merge 5 commits into
masterfrom
reconcile-save-capture-110

Conversation

@poynting

Copy link
Copy Markdown
Contributor

Pulling over @mdanilevicz changes from #110 and reconciling the merge conflicts.

@and-viceversa can you rebase on this branch and make your suggested updates with a PR into this branch, and once that's happy we can merge to master here?

poynting and others added 5 commits May 26, 2021 13:02
…_type handling to save_capture_as_stack(). Force radiance output to correct units. Add save_capture_as_bands() method.
…to match updates in capture.py. Force img_type parameter to be either 'radiance' or 'reflectance'. Add out_data_type parameter.
@and-viceversa

Copy link
Copy Markdown
Contributor

@poynting is there anything I still need to do with #153 or #110?

@and-viceversa

Copy link
Copy Markdown
Contributor

@fdarvas you closed the other PR, but this is still open. What are you expecting to get this merged? The save capture code and correct unit changes were included there.

@maurerle maurerle left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I like the save_capture_as_bands function, but there are a lot of other changes included in this PR.

As the repo seems to be unmaintained, this is quite sad.

Comment thread micasense/capture.py
out_data[out_data > 2] = 2 # limit reflectance data to 200% to allow some specular reflections
out_band.WriteArray(out_data * 32768) # scale reflectance images so 100% = 32768
# scale reflectance images so 100% = 32768
out_band.WriteArray(out_data * 32768 if gdal_type == 2 else out_data)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

replace 2 with GDT_UInt16

Comment thread micasense/capture.py
out_data[out_data > 65535] = 65535
out_data = (self.__aligned_capture[:, :, in_band] + 273.15) * 100 if gdal_type == 2 \
else self.__aligned_capture[:, :, in_band]
if gdal_type == 2:

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

should be GDT_UInt16 to be more readable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants