Extracting data for only one season from a NetCDF file.

2 ビュー (過去 30 日間)
Ross O'Connell
Ross O'Connell 2019 年 4 月 4 日
コメント済み: Sushovan Ghosh 2022 年 2 月 20 日
Hi all. I am working with a NetCDF of ocean wave characteristics for calculating the wave power off Ireland's west coast. The data has a time series of 3 years and I want to do a season by season analysis and so need to call the individual seasons from the file (eg. the March, April and May data for Spring, the June, July and August data for summer etc.). Does anyone have experience with this?

回答 (4 件)

KSSV
KSSV 2019 年 4 月 4 日
Read about ncread. FIrst read the time data.......pick the required time using datevec / datetime/ datestr. Once you have indices of these...pick only these indices data using ncread.
  2 件のコメント
Ross O'Connell
Ross O'Connell 2019 年 4 月 4 日
Hi KSSV. Thank you for your response but what you are suggesting does not work in my case.
KSSV
KSSV 2019 年 4 月 4 日
Why?

サインインしてコメントする。


Ross O'Connell
Ross O'Connell 2019 年 4 月 4 日
編集済み: Ross O'Connell 2019 年 4 月 4 日
I have no idea because I am new to MATLAB but this is the relevant section of my code...

Ross O'Connell
Ross O'Connell 2019 年 4 月 4 日
NVM. I have figured this out with help from a friend. If anyone who finds this thred needs help with this issue then reply and I can share the code that was successful.

Olusola Ayantobo
Olusola Ayantobo 2019 年 9 月 16 日
Hi Ross, Please i'm interested in extracting data for seasons. Please can you share your code with me? Thanks

カテゴリ

Help Center および File ExchangeNetCDF についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by