How to overlay two gridded datasets?

7 vues (au cours des 30 derniers jours)
NEHA SINGH
NEHA SINGH le 19 Mai 2021
I have two datasets one is New_SDN : x*y*z (lat, lon, data1) and
another one is no2regrid : x*y*m (lat, lon, data2).
Datasets are having only one time frame.
no2regrid have one of 4 categorical values (1/2/3/4)in every grid.
I want to find no2regrid dataset - category1 values in New_SDN dataset

Réponse acceptée

NEHA SINGH
NEHA SINGH le 20 Mai 2021
one of my research colleague resolved the issue.
And I want to share the answer.
To find data out values of no2regrid with respect to New_SDN.
First one need to find out index values of different classes of New_SDN data i.e., 0/ 1 / 2/ 3. and then find those values in no2regrid data. I am writing code below for thye same-
idx= find(New_SDN==0);
NO2SD0=no2regrid(idx);
clear idx
idx= find(New_SDN==1);
NO2SD1=no2regrid(idx);
clear idx
idx= find(New_SDN==2);
NO2SD2=no2regrid(idx);
clear idx
idx= find(New_SDN==3);
NO2SD3=no2regrid(idx);
clear idx

Plus de réponses (0)

Catégories

En savoir plus sur Tables dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by