- Posts: 2
format data
- mohsen
- Topic Author
Less
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
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
Less
More
- Posts: 5522
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.
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.
Attachments:
Please Log in or Create an account to join the conversation.
- mohsen
- Topic Author
Less
More
- Posts: 2
23 Feb 2025 10:11 #13890
by mohsen
Replied by mohsen on topic format data
hi paul
I will send you the file with complete geographical details. If possible, please correct my data. I really don't know what to do anymore. Please, please do this. Thank you for your cooperation.
Port Latitude Longitude
Anzali Port 37.473°N 49.459°E
Chabahar Port 25.291°N 60.643°E
Shahid Rajai Port 27.138°N 56.184°E
Below, in addition to my own files, I am also sharing a wave data file that I got from a meteorological site, which is related to Iran. I extracted the wave data from this file. This file is related to the years 2015 to 2025.
I will send you the file with complete geographical details. If possible, please correct my data. I really don't know what to do anymore. Please, please do this. Thank you for your cooperation.
Port Latitude Longitude
Anzali Port 37.473°N 49.459°E
Chabahar Port 25.291°N 60.643°E
Shahid Rajai Port 27.138°N 56.184°E
Below, in addition to my own files, I am also sharing a wave data file that I got from a meteorological site, which is related to Iran. I extracted the wave data from this file. This file is related to the years 2015 to 2025.
Attachments:
Please Log in or Create an account to join the conversation.
- Paul Gilman
Less
More
- Posts: 5522
24 Feb 2025 09:50 #13895
by Paul Gilman
Replied by Paul Gilman on topic format data
Hi Mohsen,
Attached is a version of the "Bandar_Shahid_Rajaee_TimeSeries_SAM_Final.csv" file that should work.
This file contains data for one year (2015). SAM does not support weather files with more than one year of data.
I changed the time zone format from +3:30 to 3.5 so that SAM correctly reads the time zone.
I changed the "Wave Energy Period" heading to "Energy Period".
Best regards,
Paul.
Attached is a version of the "Bandar_Shahid_Rajaee_TimeSeries_SAM_Final.csv" file that should work.
This file contains data for one year (2015). SAM does not support weather files with more than one year of data.
I changed the time zone format from +3:30 to 3.5 so that SAM correctly reads the time zone.
I changed the "Wave Energy Period" heading to "Energy Period".
Best regards,
Paul.
Attachments:
Please Log in or Create an account to join the conversation.
Moderators: Paul Gilman