Weighted Average of Data with Irregular Range and Missing Data
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Hello,
I have a 555x5 matrix
A = [Lat Lon Bm Lower Upper]
Bm represents biomass data. Lower and Upper represent the lower and upper boundaries of the depths (cm) from which the data was procured. This data is in situ. I want to be able to compare this data to a model output of depth of 5cm, 25cm, and 75cm
I want to take the weighted average of the depth interval relative to the depth of comparison.
Therefore, for each latxlon, I want to create a code that will look at the Lower and Upper depth boundaries and weigh the Bm with respect to the 5, 25, and 75cm depths so that it will represent the biomass AT THAT VALUE of 5cm.
I have attached the data so you can have a better idea of what I'm working with I have no idea how I should approach this, so any help would be greatly appreciated!
Thank you,
Melissa
2 comentarios
Guillaume
el 12 de En. de 2015
Can you give more details on what you want to obtain? For example, given the first line of your matrix
-77.63 162.87 0.66 0 10
what Bm should result?
Also, the maximum depth in your matrix is 30, so where does the 75 cm depth figures?
Respuestas (0)
Ver también
Categorías
Más información sobre Map Display en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!