We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The code flips the product images at the end. Flips the y-axis, it seems.
The text was updated successfully, but these errors were encountered:
I resolved this by adding these two lines, which uses numpy to vertically flip the data:
rem_flipped = xr.DataArray(np.flipud(rem.values), dims=rem.dims, coords=rem.coords) cropped_flipped = xr.DataArray(np.flipud(cropped.values), dims=cropped.dims, coords=cropped.coords)
and then using the 'flipped' versions to create the final outputs:
colors = ['#f2f7fb', '#81a8cb', '#37123d'] shade(rem_flipped.squeeze(), cmap=colors, span=[0, 20], how='linear') a = shade(xrspatial.hillshade(cropped_flipped.squeeze(), angle_altitude=1, azimuth=250), cmap=['black', 'white'], how='linear') b = shade(rem_flipped.squeeze(), cmap=colors, span=[0, 10], how='linear', alpha=200) stack(a, b)
Sorry, something went wrong.
No branches or pull requests
The code flips the product images at the end. Flips the y-axis, it seems.
The text was updated successfully, but these errors were encountered: