Need to save subset of netCDF file

3 次查看(过去 30 天)
I have a netCDF file that has 21 variables (some variables are 3 dimensional) and contains global data (800+MB). I only need data for an area about 1/8 of the globe. Is there a way to open the file, and then save just a portion of it to a new netCDF file? If you could give me an example using lat, lon, temp, height I could take it from there. Lat(721x1), lon(1152x1), temp(1152x721x72x1), height(same as temp).
Thanks for any help..

采纳的回答

John
John 2012-9-27
If you have R2011a or more recent, look at the 2nd example for NCWRITESCHEMA. It is at least similar to what you want to do. In your case you will want to modify the Dimensions fields before writing the schema back out to the new file.
  1 个评论
John
John 2012-9-28
Thank you. I may give this a try later on, but have found a workaround to my problem.

请先登录,再进行评论。

更多回答(0 个)

标签

Community Treasure Hunt

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

Start Hunting!

Translated by