nctoolbox / nctoolbox

NCTOOLBOX A Matlab toolbox for working with common data model datasets
http://nctoolbox.github.io/nctoolbox
Other
129 stars 57 forks source link

Reading data at altitude #115

Open jordancormack opened 6 years ago

jordancormack commented 6 years ago

I am using NCTOOLBOX and .grb2 data from here: https://nomads.ncdc.noaa.gov/data/gfs4/

I can use the following to get surface temperature at a specific location...

nco=ncgeodataset('gfs_data.grb2'); variable1=nco{'Temperature_surface'}(1,51.5,-2.55);

But I am trying to find the temperature at a specific altitude as well. There is another variable called 'Temperature_height_above_ground' but I am not sure how to specify the height.

Any help would be great!

tfoterye commented 6 years ago

I've no idea about the data u want to read, but u can check the nco.variables where u could find a varible called height_above_ground, which shows several special height about the data. For me, I usually use the Temperature_pressure or Temperature due to different data type, which is temperature data with pressure. Hope my answer would help u .