Recomendation on plotting data

2 vues (au cours des 30 derniers jours)
Jaime  de la Mota
Jaime de la Mota le 17 Mai 2017
Commenté : Walter Roberson le 18 Mai 2017
I have a 360x180 matrix with data for each latitude and longitude on earth, I plot it like this:
imagescnan(loni,lati,squeeze(double(r4_sat(:,:)))')
I have another matrix with the same dimensions but only data on the points in which it is significative; I want to mark the locations on the map plotted earlier in which the data is significative but I don't know how.
Any sugestion helps Thanks for reading
  1 commentaire
Walter Roberson
Walter Roberson le 18 Mai 2017
Note:
imagescnan(loni,lati,squeeze(double(r4_sat(:,:)))')
should be the same as
imagescnan( loni, lati, double(r4_sat).' )

Connectez-vous pour commenter.

Réponses (1)

Walter Roberson
Walter Roberson le 18 Mai 2017
imagescnan( loni, lati, double(r4_sat).' );
hold on
threshold = 0.05; %for example
mask = double(r4_sat > threshold); %was it significant?
mask(mask == 0) = nan; %1 if significant, nan if not
imagescnan( loni, lati, mask.' );
  2 commentaires
Jaime  de la Mota
Jaime de la Mota le 18 Mai 2017
I'm afraid the code doesn't work; I have tried using
quiver(lati, loni, r4_sat_significative, r4_sat_significative)
but it fails too, seems like it has dimensions problems
Walter Roberson
Walter Roberson le 18 Mai 2017
Please show size(loni), size(lati), size(r4_sat), size(r4_sat_significative), class(r4_sat_significative), max(r4_sat_significative(:))

Connectez-vous pour commenter.

Catégories

En savoir plus sur Networks dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by