Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added weather data and java files to convert weather data
- Loading branch information
Showing
23 changed files
with
37,220 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
SHELL = /bin/sh | ||
# Makefile for updating all java code and docs | ||
# Wangda Zuo (WZuo@lbl.gov), Michael Wetter (MWetter@lbl.gov) July 14, 2010 | ||
|
||
all: clean | ||
make -C src all > /dev/null | ||
@echo "==== Code and doc update finished." | ||
doc: cleandoc | ||
make -C src doc > /dev/null | ||
@echo "==== Doc update finished." | ||
clean: | ||
make -C src clean > /dev/null | ||
@echo "==== Code and doc output deleted." | ||
cleandoc: | ||
make -C src cleandoc > /dev/null | ||
@echo "==== Doc output deleted." |
341 changes: 341 additions & 0 deletions
341
Annex60/Resources/src/convertEPW/doc/ConvertWeatherData.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,341 @@ | ||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | ||
<!--NewPage--> | ||
<HTML> | ||
<HEAD> | ||
<!-- Generated by javadoc (build 1.6.0_20) on Wed Nov 21 08:52:45 PST 2012 --> | ||
<TITLE> | ||
ConvertWeatherData | ||
</TITLE> | ||
|
||
<META NAME="date" CONTENT="2012-11-21"> | ||
|
||
<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style"> | ||
|
||
<SCRIPT type="text/javascript"> | ||
function windowTitle() | ||
{ | ||
if (location.href.indexOf('is-external=true') == -1) { | ||
parent.document.title="ConvertWeatherData"; | ||
} | ||
} | ||
</SCRIPT> | ||
<NOSCRIPT> | ||
</NOSCRIPT> | ||
|
||
</HEAD> | ||
|
||
<BODY BGCOLOR="white" onload="windowTitle();"> | ||
<HR> | ||
|
||
|
||
<!-- ========= START OF TOP NAVBAR ======= --> | ||
<A NAME="navbar_top"><!-- --></A> | ||
<A HREF="#skip-navbar_top" title="Skip navigation links"></A> | ||
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> | ||
<TR> | ||
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> | ||
<A NAME="navbar_top_firstrow"><!-- --></A> | ||
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> | ||
<TR ALIGN="center" VALIGN="top"> | ||
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> | ||
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> | ||
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> | ||
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> | ||
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> | ||
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> | ||
</TR> | ||
</TABLE> | ||
</TD> | ||
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> | ||
</EM> | ||
</TD> | ||
</TR> | ||
|
||
<TR> | ||
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> | ||
PREV CLASS | ||
NEXT CLASS</FONT></TD> | ||
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> | ||
<A HREF="index.html?ConvertWeatherData.html" target="_top"><B>FRAMES</B></A> | ||
<A HREF="ConvertWeatherData.html" target="_top"><B>NO FRAMES</B></A> | ||
<SCRIPT type="text/javascript"> | ||
<!-- | ||
if(window==top) { | ||
document.writeln('<A HREF="allclasses-noframe.html"><B>All Classes</B></A>'); | ||
} | ||
//--> | ||
</SCRIPT> | ||
<NOSCRIPT> | ||
<A HREF="allclasses-noframe.html"><B>All Classes</B></A> | ||
</NOSCRIPT> | ||
|
||
|
||
</FONT></TD> | ||
</TR> | ||
<TR> | ||
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> | ||
SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> | ||
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> | ||
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> | ||
</TR> | ||
</TABLE> | ||
<A NAME="skip-navbar_top"></A> | ||
<!-- ========= END OF TOP NAVBAR ========= --> | ||
|
||
<HR> | ||
<!-- ======== START OF CLASS DATA ======== --> | ||
<H2> | ||
Class ConvertWeatherData</H2> | ||
<PRE> | ||
java.lang.Object | ||
<IMG SRC="./resources/inherit.gif" ALT="extended by "><B>ConvertWeatherData</B> | ||
</PRE> | ||
<HR> | ||
<DL> | ||
<DT><PRE>public class <B>ConvertWeatherData</B><DT>extends java.lang.Object</DL> | ||
</PRE> | ||
|
||
<P> | ||
This program converts a weather file | ||
from .epw format for EnergyPlus | ||
to .mos format for Modelica.<p> | ||
|
||
To convert weather data, run this program as | ||
<pre> | ||
java -jar ConvertWeatherData.jar inputFile.epw | ||
</pre> | ||
where <code>inputFile</code> is an EnergyPlus TMY3 file | ||
in the <code>epw</code> format. | ||
This will produce an <code>mos</code> file. | ||
<P> | ||
|
||
<P> | ||
<HR> | ||
|
||
<P> | ||
|
||
<!-- ======== CONSTRUCTOR SUMMARY ======== --> | ||
|
||
<A NAME="constructor_summary"><!-- --></A> | ||
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | ||
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | ||
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> | ||
<B>Constructor Summary</B></FONT></TH> | ||
</TR> | ||
<TR BGCOLOR="white" CLASS="TableRowColor"> | ||
<TD><CODE><B><A HREF="ConvertWeatherData.html#ConvertWeatherData()">ConvertWeatherData</A></B>()</CODE> | ||
|
||
<BR> | ||
</TD> | ||
</TR> | ||
</TABLE> | ||
| ||
<!-- ========== METHOD SUMMARY =========== --> | ||
|
||
<A NAME="method_summary"><!-- --></A> | ||
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | ||
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | ||
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> | ||
<B>Method Summary</B></FONT></TH> | ||
</TR> | ||
<TR BGCOLOR="white" CLASS="TableRowColor"> | ||
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | ||
<CODE>static java.util.ArrayList<java.lang.String></CODE></FONT></TD> | ||
<TD><CODE><B><A HREF="ConvertWeatherData.html#convert(java.lang.String, java.util.ArrayList)">convert</A></B>(java.lang.String filename, | ||
java.util.ArrayList<java.lang.String> myArr)</CODE> | ||
|
||
<BR> | ||
Read and convert data from weather file in epw format</TD> | ||
</TR> | ||
<TR BGCOLOR="white" CLASS="TableRowColor"> | ||
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | ||
<CODE>static java.lang.String</CODE></FONT></TD> | ||
<TD><CODE><B><A HREF="ConvertWeatherData.html#getSimulationTime(int[])">getSimulationTime</A></B>(int[] time)</CODE> | ||
|
||
<BR> | ||
Transfer weather time | ||
from a format in year, month, date, hour and minute | ||
to a format in seconds for simulation</TD> | ||
</TR> | ||
<TR BGCOLOR="white" CLASS="TableRowColor"> | ||
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | ||
<CODE>static void</CODE></FONT></TD> | ||
<TD><CODE><B><A HREF="ConvertWeatherData.html#main(java.lang.String[])">main</A></B>(java.lang.String[] args)</CODE> | ||
|
||
<BR> | ||
This method is used to transfer the weather data file from .epw format for EnergyPlus | ||
to .mos for Modelica</TD> | ||
</TR> | ||
<TR BGCOLOR="white" CLASS="TableRowColor"> | ||
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | ||
<CODE>static void</CODE></FONT></TD> | ||
<TD><CODE><B><A HREF="ConvertWeatherData.html#write(java.lang.String, java.util.ArrayList)">write</A></B>(java.lang.String filename, | ||
java.util.ArrayList<java.lang.String> myArr)</CODE> | ||
|
||
<BR> | ||
Write converted data into .mos file</TD> | ||
</TR> | ||
</TABLE> | ||
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> | ||
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | ||
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> | ||
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH> | ||
</TR> | ||
<TR BGCOLOR="white" CLASS="TableRowColor"> | ||
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD> | ||
</TR> | ||
</TABLE> | ||
| ||
<P> | ||
|
||
<!-- ========= CONSTRUCTOR DETAIL ======== --> | ||
|
||
<A NAME="constructor_detail"><!-- --></A> | ||
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | ||
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | ||
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> | ||
<B>Constructor Detail</B></FONT></TH> | ||
</TR> | ||
</TABLE> | ||
|
||
<A NAME="ConvertWeatherData()"><!-- --></A><H3> | ||
ConvertWeatherData</H3> | ||
<PRE> | ||
public <B>ConvertWeatherData</B>()</PRE> | ||
<DL> | ||
</DL> | ||
|
||
<!-- ============ METHOD DETAIL ========== --> | ||
|
||
<A NAME="method_detail"><!-- --></A> | ||
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | ||
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | ||
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> | ||
<B>Method Detail</B></FONT></TH> | ||
</TR> | ||
</TABLE> | ||
|
||
<A NAME="getSimulationTime(int[])"><!-- --></A><H3> | ||
getSimulationTime</H3> | ||
<PRE> | ||
public static java.lang.String <B>getSimulationTime</B>(int[] time)</PRE> | ||
<DL> | ||
<DD>Transfer weather time | ||
from a format in year, month, date, hour and minute | ||
to a format in seconds for simulation | ||
<P> | ||
<DD><DL> | ||
<DT><B>Parameters:</B><DD><CODE>time</CODE> - time(year, month, day, hour, minute) in weather data file | ||
<DT><B>Returns:</B><DD>simulation time in seconds</DL> | ||
</DD> | ||
</DL> | ||
<HR> | ||
|
||
<A NAME="write(java.lang.String, java.util.ArrayList)"><!-- --></A><H3> | ||
write</H3> | ||
<PRE> | ||
public static void <B>write</B>(java.lang.String filename, | ||
java.util.ArrayList<java.lang.String> myArr) | ||
throws java.io.IOException</PRE> | ||
<DL> | ||
<DD>Write converted data into .mos file | ||
<P> | ||
<DD><DL> | ||
<DT><B>Parameters:</B><DD><CODE>filename</CODE> - the name of .mos weather data file<DD><CODE>myArr</CODE> - array where the weather data is stored | ||
<DT><B>Throws:</B> | ||
<DD><CODE>java.io.IOException</CODE> - when problems occur during file access</DL> | ||
</DD> | ||
</DL> | ||
<HR> | ||
|
||
<A NAME="convert(java.lang.String, java.util.ArrayList)"><!-- --></A><H3> | ||
convert</H3> | ||
<PRE> | ||
public static java.util.ArrayList<java.lang.String> <B>convert</B>(java.lang.String filename, | ||
java.util.ArrayList<java.lang.String> myArr) | ||
throws java.io.IOException</PRE> | ||
<DL> | ||
<DD>Read and convert data from weather file in epw format | ||
<P> | ||
<DD><DL> | ||
<DT><B>Parameters:</B><DD><CODE>filename</CODE> - the name of .epw weather data file<DD><CODE>myArr</CODE> - the array where the weather data is stored | ||
<DT><B>Throws:</B> | ||
<DD><CODE>java.io.IOException</CODE> - when problems occur during file access</DL> | ||
</DD> | ||
</DL> | ||
<HR> | ||
|
||
<A NAME="main(java.lang.String[])"><!-- --></A><H3> | ||
main</H3> | ||
<PRE> | ||
public static void <B>main</B>(java.lang.String[] args)</PRE> | ||
<DL> | ||
<DD>This method is used to transfer the weather data file from .epw format for EnergyPlus | ||
to .mos for Modelica | ||
<P> | ||
<DD><DL> | ||
<DT><B>Parameters:</B><DD><CODE>args</CODE> - name of .epw weather data file</DL> | ||
</DD> | ||
</DL> | ||
<!-- ========= END OF CLASS DATA ========= --> | ||
<HR> | ||
|
||
|
||
<!-- ======= START OF BOTTOM NAVBAR ====== --> | ||
<A NAME="navbar_bottom"><!-- --></A> | ||
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> | ||
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> | ||
<TR> | ||
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> | ||
<A NAME="navbar_bottom_firstrow"><!-- --></A> | ||
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> | ||
<TR ALIGN="center" VALIGN="top"> | ||
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> | ||
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> | ||
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> | ||
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> | ||
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> | ||
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> | ||
</TR> | ||
</TABLE> | ||
</TD> | ||
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> | ||
</EM> | ||
</TD> | ||
</TR> | ||
|
||
<TR> | ||
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> | ||
PREV CLASS | ||
NEXT CLASS</FONT></TD> | ||
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> | ||
<A HREF="index.html?ConvertWeatherData.html" target="_top"><B>FRAMES</B></A> | ||
<A HREF="ConvertWeatherData.html" target="_top"><B>NO FRAMES</B></A> | ||
<SCRIPT type="text/javascript"> | ||
<!-- | ||
if(window==top) { | ||
document.writeln('<A HREF="allclasses-noframe.html"><B>All Classes</B></A>'); | ||
} | ||
//--> | ||
</SCRIPT> | ||
<NOSCRIPT> | ||
<A HREF="allclasses-noframe.html"><B>All Classes</B></A> | ||
</NOSCRIPT> | ||
|
||
|
||
</FONT></TD> | ||
</TR> | ||
<TR> | ||
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> | ||
SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> | ||
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> | ||
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> | ||
</TR> | ||
</TABLE> | ||
<A NAME="skip-navbar_bottom"></A> | ||
<!-- ======== END OF BOTTOM NAVBAR ======= --> | ||
|
||
<HR> | ||
|
||
</BODY> | ||
</HTML> |
31 changes: 31 additions & 0 deletions
31
Annex60/Resources/src/convertEPW/doc/allclasses-frame.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | ||
<!--NewPage--> | ||
<HTML> | ||
<HEAD> | ||
<!-- Generated by javadoc (build 1.6.0_20) on Wed Nov 21 08:52:45 PST 2012 --> | ||
<TITLE> | ||
All Classes | ||
</TITLE> | ||
|
||
<META NAME="date" CONTENT="2012-11-21"> | ||
|
||
<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style"> | ||
|
||
|
||
</HEAD> | ||
|
||
<BODY BGCOLOR="white"> | ||
<FONT size="+1" CLASS="FrameHeadingFont"> | ||
<B>All Classes</B></FONT> | ||
<BR> | ||
|
||
<TABLE BORDER="0" WIDTH="100%" SUMMARY=""> | ||
<TR> | ||
<TD NOWRAP><FONT CLASS="FrameItemFont"><A HREF="ConvertWeatherData.html" title="class in <Unnamed>" target="classFrame">ConvertWeatherData</A> | ||
<BR> | ||
</FONT></TD> | ||
</TR> | ||
</TABLE> | ||
|
||
</BODY> | ||
</HTML> |
Oops, something went wrong.