New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do I use my own weather files? #492
Comments
in theory noting, if your EPW is in the right format for EPWs. IF it is giving an error that means some of the columns or formating is not the standard, check the documentation for EPW on the EnergyPlus webiste. The function expects an EPW with extension EPW. if you want to specify other formats, we currently support on hte main branch: And the development branch has 'sam' (psm3 format) and NSRDB data input as well. S. |
I don't think i'm using the wrong file because it's an epw file, I just think it's my lack of programming skills. Would it be possible to show the lines of code it takes to use my own epw files? |
sure, you can either share it here, or to my email silvana.ovaitt@nrel.gov, or we can have a short meeting to iron it out (couple 30 mins spot open today and tomorrow but more on wednesday) |
This is the code I have at the moment. import os testfolder = str(Path().resolve().parent.parent / 'bifacial_radiance' / 'TEMP' / 'August') testopstelling = RadianceObj('x',str(testfolder)) testopstelling.setGround() #GETTING WHEATER FILE #CREATING A MODULE num_panels = 1 num_cells_x = 12 cellLevelModuleParams = {'numcellsx': num_cells_y, 'numcellsy': num_cells_x, module = testopstelling.makeModule(name=moduletype, x=x, y=y, numpanels=num_panels, #Making the scene sceneDict = {'tilt': tilt, 'pitch': pitch, 'hub_height': hub_height, 'azimuth': azimuth_ang, 'nMods': nMods, scene = testopstelling.makeScene(module=moduletype, sceneDict=sceneDict) #CREATING FRAME post_x = -2.285 y = 9.127 for i in range(3):
pileheight = 3.05 x_offset = - 0.1 x_value = -9
testopstelling.scene.showScene() analysis = AnalysisObj(octfile, testopstelling.basename) frontscan, backscan = analysis.moduleAnalysis(scene) results = analysis.analysis(octfile, testopstelling.basename, frontscan, backscan) load.read1Result('results\irr_x.csv') bifacialityfactor = 0.9 scene.saveImage() |
Hi AugustVan So, if you have an epw file you have to pass the file name/direction here:
Let me know if this doesnt work |
Hh I forgot the r' ', thanks alot! |
yeah python has weird things like that. lmk other questions through here or email S. |
What do I have to change in this piece of code to be able to use my own epw weather files?
The text was updated successfully, but these errors were encountered: