read many ncdata using ncread
Afficher commentaires plus anciens
Hi, I have several mobthly ncdata. And their names are consised of date.
* But I got an error when i tried to atteached NC file. So I couldn't. So sorry.
For example, NCdata_100_200001 , NCdata_100_200002 ...
And I got variables like below
latent=ncread("NCdata_100_200001.nc4",'EFLUX'); %I'm trying to calculate latent heat flux
lon=ncread("NCdata_100_200001.nc4",'lon');
lat=ncread("NCdata_100_200001.nc4",'lat');
time=ncread("NCdata_100_200001.nc4",'time');
But I have to calculate data over 20 years. So If i use that code, I have to change the name of file respectively.
Can I import ncfiles in simple code?
1 commentaire
CHIRANJIT DAS
le 23 Sep 2022
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Agriculture dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!