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

 채택된 답변

NEHA SINGH
NEHA SINGH 2021년 5월 20일

0 개 추천

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Tables에 대해 자세히 알아보기

태그

질문:

2021년 5월 19일

답변:

2021년 5월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by