I am a pretty new user of SAM. I have been trying to download wind data at 5-min resolution from the windtoolkit throught SAM's "FetchResourceFiles" option. I have followed the documentation and come up with my code like this but it is not working and it only pulls up data at hourly interval. I have tried with setting resource_type='' (since it is written that for windtoolkit; it is the '') and 'psm3-5min' both but none of them seem to work propoerly. Can anyone please help to figure that out.
wtkfetcher = tools.FetchResourceFiles(
tech='wind',
nrel_api_key=sam_api_key,
nrel_api_email=sam_email,resource_year='2009',resource_interval_min=5,resource_height=80,resource_type='psm3-5min')
# --- List of (lon, lat) tuples or Shapely points ---
lon_lats = [(lon, lat)]
wtkfetcher.fetch(lon_lats)
# --- Get resource data file path ---
wtk_path_dict = wtkfetcher.resource_file_paths_dict
wtk_fp = wtk_path_dict[lon_lats[0]]
Temp_File=tools.SRW_to_wind_data(wtk_fp)
#read_file = pd.read_csv (wtk_fp)
#read_file.to_csv (r'Path where the CSV will be saved\File name.csv', index=None)
# --- Initialize generator ---
if wtk_fp is not None:
generator = wp.default('WindPowerSingleOwner')
generator.Resource.assign({'wind_resource_model_choice': 0})
generator.Resource.assign({'wind_resource_filename': wtk_fp})
# --- Initialize financial model ---
financial = so.from_existing(generator, 'WindPowerSingleOwner')
print('Wind Power - Single Owner Results')
generator.execute()
#turbine_output=generator.Outputs.turbine_output_by_windspeed_bin
power_output=generator.Outputs.gen