Extracting data from .nc file
Afficher commentaires plus anciens
Hey everyone.
Im trying to import some data from an nc file i got.
I tried this:
pathtofile = 'C:\Users\97250\OneDrive\Desktop\ThirdYear\NumericalWeatherPrediction\jm_9thKJvEGFUqHg6k\CF_METEO_2022_10_LcS_Day1';
finame = 'CF_METEO_2022_10_LcS_Day1.nc';
ncid = netcdf.open([pathtofile '\' finame],'NC_NOWRITE');
i get:
Error using netcdf.open (line 52)
Could not open file
'C:\Users\97250\OneDrive\Desktop\ThirdYear\NumericalWeatherPrediction\jm_9thKJvEGFUqHg6k\CF_METEO_2022_10_LcS_Day1\CF_METEO_2022_10_LcS_Day1.nc'.
Error in PROJECTNWP (line 9)
ncid = netcdf.open([pathtofile '\' finame],'NC_NOWRITE');
so what i did is trying the hard way by doing ncdisp(), get the variables and try to set them one by one. but it's too big and i got this:
Cannot display summaries of variables with more than 524288 elements.
If you have tips on how to solve it, I would appreciate
thanks!
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur NetCDF Files 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!