Understanding the X_resource_file parameters in the 03-wind-solar-battery example #465
Replies: 2 comments 4 replies
-
|
Thanks for this question! Below is some information that hopefully addresses your questions: Wind and Solar Resource Files:The site:
data:
lat:
lon:
year:
path_resource: /path/to/directory/with/resource/filesIf
If the resource filepath matches an existing file, then HOPP will load resource data from that file. If not, HOPP will download resource data using the API call and save it to the resource filepath. If HOPP was installed following the Installing from Source instructions, then you can find the resource files you've downloaded in default folder. If HOPP was installed using
from hopp.utilities.keys import set_nrel_key_dot_env
set_nrel_key_dot_env(path = '/path/to/file/.env')You can check your API set-up by running Example 8 or Example 9 to see if a new resource file is downloaded. All that is needed to interface with the resource databases is:
site:
data:
lat: # latitude of site within the continental U.S.
lon: # longitude of site within the continental U.S.
year: # use a year between 2007 and 2014
hub_height: 80 # hub-height of wind turbine, used to determine what heights of wind resource data should be downloadedAlternatively, you can make a python script to download the files manually, for example: from hopp.utilities.keys import set_nrel_key_dot_env
from hopp.simulation.technologies.resource import SolarResource, WindResource
#update the path below to the full filepath of your .env file
set_nrel_key_dot_env(path = '/fake/path/to/file/.env')
# example location for south table mountain
lat = 39.7560
lon = -105.1914
year = 2008 # random year between 2007 and 2014
#update path_resource with the folder you want to save resource files to
path_resource = "/fake/path/to/resource/file/folder"
# random hub-height chosen
hub_height = 90
# download wind resource data
wind_resource = WindResource(lat, lon, year, wind_turbine_hub_ht=hub_height,path_resource=path_resource)
print(f"wind resource file is saved to: {wind_resource.filename}")
# download solar resource data
solar_resource = SolarResource(lat, lon, year, path_resource=path_resource)
print(f"solar resource file is saved to: {solar_resource.filename}")Utility Rate Database (URDB) LabelThe You can acquire a For example, if the url is: https://apps.openei.org/USURDB/rate/view/67a6618c4a6d186c0c0c6870, then the Grid resource fileThe The Some examples on specifying the battery dispatch method are found in the:
|
Beta Was this translation helpful? Give feedback.
-
|
Brilliant! I'll be more thorough looking through the documentation for finding those parameters next time. My last question: is there a good resource for getting hourly grid demand data, even if it is simulated? I've been looking at NREL's Thank you! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I'm a student at Colorado School of Mines. We're using HOPP to run an economic analysis comparing a system with only wind and solar to a system with wind, solar, and battery. We've never used HOPP before, so we're trying to understand the examples and documentation better.
Looking at the configuration file
examples/inputs/03-wind-solar-battery.yaml, I want to know what thesolar_resource_file,wind_resource_file, andgrid_resource_fileparameters are. I understand that the solar and wind files are related to national databases (and we need an API key to access them), but how do we know what those file names should be? I can tell the names are related to the latitude and longitude, but past that I do not know how to interface with the databases.I could not determine what database the
grid_resource_fileis pulling from. Is it also public-access? What specifically does the grid resource entail (i.e. is that related to grid demand)?Finally, in the
dataparameter, how can we acquire theurdb_label?If there are areas in the documentation or other resources you can point me toward, I would appreciate it. Thank you!
Beta Was this translation helpful? Give feedback.
All reactions