format data

  • mohsen
  • Topic Author
More
18 Feb 2025 08:10 #13874 by mohsen
format data was created by mohsen
Hello
Good morning
I have three wave data files related to three Iranian ports. No matter what I do, the SAM software cannot read this data. If it is possible, please check this data and email it to me after it is corrected
Thank yo

Please Log in or Create an account to join the conversation.

  • Paul Gilman
More
18 Feb 2025 10:15 #13876 by Paul Gilman
Replied by Paul Gilman on topic format data
Hi Moshen,

Here is a link to the SAM CSV format for Marine Energy file format descriptions in Help: samrepo.nrelcloud.org/help/weather_format_csv_marine_energy.html

Be sure to look at the description for time series data (not frequency of occurrence data).

Attached is the default time series wave resource data file that you can use as a model for your files. (You can also find this file in the "wave_resource_ts" folder in your SAM installation folder.)

I noticed a few things in your files:

Rows 1 and 2 are missing. These rows contain information like latitutde, longitude, and time zone.

The time stamp columns (Day, Hour, Minute) appear to be inconsistent. If this data contains 3-hour data, I would expect the first three rows to have time times like this:

Day, Hour, Minute
1,0,0
1,3,0
1,6,0
1,9,0
1,12,0
1,15,0
1,18,0
1,21,0
2,0,0
2,3,0
etc.

Instead, the time stamps in your file look like this:

Day,Hour,Minute
1,18,0
2,9,0
3,12,0
4,18,0
5,6,0
6,21,0
etc.

For 3-hour data, the file should contain 2920 rows of data:

24 h/day / 3 h/timestep = 8 timesteps/day
8 timesteps/day * 365 days/year = 2920 timesteps

Best regards,
Paul.


 

Please Log in or Create an account to join the conversation.

Moderators: Paul Gilman
Powered by Kunena Forum