localdevices / pyorc

Surface velocity, object tracking, and river flow measurements in an open-source API
GNU Affero General Public License v3.0
129 stars 31 forks source link

ValueError: Axes should be an instance of GeoAxes, got <class 'matplotlib.axes._subplots.AxesSubplot'> #104

Closed abhisek-acharya closed 1 year ago

abhisek-acharya commented 1 year ago

ds_points_q2.isel(quantile=2).transect.plot( ax=p.axes, mode="local", cmap="rainbow", scale=10, width=0.003, norm=norm, add_colorbar=True, )

This error is arising from the above line of code.

hcwinsemius commented 1 year ago

Are you sure that this is the case? That error can only occur when mode="geographical"

abhisek-acharya commented 1 year ago

Yeah got this error when plotting ds_points_q in both camera and local mode. geographical mode is plotting fine.

hcwinsemius commented 1 year ago

Can you perhaps provide a slightly larger example in which you also do the plot of the background frame that then produces the mappable in variable p that you use to forward an axes. That will help me reproducing and understanding the error.

abhisek-acharya commented 1 year ago

What do you mean by background frame? Larger example in a sense having larger video file size or video which covers more background than just river?

hcwinsemius commented 1 year ago

related issue is #80

hcwinsemius commented 1 year ago

What do you mean by background frame? Larger example in a sense having larger video file size or video which covers more background than just river?

I have found a related and still unsolved bug. This is likey the same. We'll take it into the list of priorities.

abhisek-acharya commented 1 year ago

Yes issue #80 looks same to me

hcwinsemius commented 1 year ago

fix will be added to next release

abhisek-acharya commented 1 year ago

Does this issue cover the flipping of the image while plotting the frames?

hcwinsemius commented 1 year ago

I cannot reproduce that issue. I need a fully reproducible example in a separate issue to investigate that.

Op za 14 jan. 2023 07:59 schreef Abhisek Acharya @.***>:

Does this issue cover the flipping of the image while plotting the frames?

— Reply to this email directly, view it on GitHub https://github.com/localdevices/pyorc/issues/104#issuecomment-1382678424, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB2NZMMZ5AQO7SOEJHRTTELWSJFEBANCNFSM6AAAAAATUAELWY . You are receiving this because you were assigned.Message ID: @.***>