Select to view content in your preferred language

How to adapt my dataset to display wind with FlowRenderer?

497
2
09-26-2023 11:19 PM
MartaVallès
New Contributor

I have a geoTiff that contains the information of the wind (Magnitude, Direction) in two different bands. I display it using VectorFieldRenderer (like https://developers.arcgis.com/javascript/latest/sample-code/layers-imagery-vfrenderer/) and I do not have any problem with it, it just displays as expected. Then, If I try to display it using FlowRenderer (following https://developers.arcgis.com/javascript/latest/sample-code/layers-imagery-afrenderer/) nothing displays and no errors appear in the console.

I think that the problem comes from the source type of my raster dataset, I don't know how to transform the actual structure of two bands for magnitude-direction information to a Vector-MagDir one.

0 Kudos
2 Replies
AnneFitz
Esri Regular Contributor

You can check out the following blog posts that talk about how you can prepare your data for visualization with the FlowRenderer:

Hope this helps!

0 Kudos
MartaVallès
New Contributor

Thank you for your answer!

Is there any way to do so using only JavaScript? In the posts you sent me they process the data using ArcGIS Pro or ArcGIS Online, I'd like to apply the multidimensional filters and the vector field function using JavaScript.

0 Kudos