Using VELocate() on model that isn't open
Posted: Thu Nov 30, 2023 4:10 am
I'm working on a script to pull some data based on a selected annual results file. I'd also like to include some non-results file specific project metadata, sat latitude and longitude for example. In the show_location_and_weather.py example file it just references the model that's open, and I can't find any documentation on how to pass a different model reference. Does anyone have any ideas? I also don't quite understand what VELocate() itself does (it's never mentioned in the documentation) and what the purpose of open_wea_data() is, since it's doesn't actually return anything. Part of the example file code:
Code: Select all
# create the API object for ApLocate data
loc = iesve.VELocate()
# read the data for the current project
loc.open_wea_data()
# get the currently available ApLocate data as a dictionary
data = loc.get()