|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectConvertWeatherData
public class ConvertWeatherData
This program converts a weather file from .epw format for EnergyPlus to .mos format for Modelica.
To convert weather data, run this program as
java -jar ConvertWeatherData.jar inputFile.epw
where inputFile is an EnergyPlus TMY3 file
in the epw format.
This will produce an mos file.
| Constructor Summary | |
|---|---|
ConvertWeatherData()
|
|
| Method Summary | |
|---|---|
static java.util.ArrayList<java.lang.String> |
convert(java.lang.String filename,
java.util.ArrayList<java.lang.String> myArr)
Read and convert data from weather file in epw format |
static java.lang.String |
getSimulationTime(int[] time)
Transfer weather time from a format in year, month, date, hour and minute to a format in seconds for simulation |
static void |
main(java.lang.String[] args)
This method is used to transfer the weather data file from .epw format for EnergyPlus to .mos for Modelica |
static void |
write(java.lang.String filename,
java.util.ArrayList<java.lang.String> myArr)
Write converted data into .mos file |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConvertWeatherData()
| Method Detail |
|---|
public static java.lang.String getSimulationTime(int[] time)
time - time(year, month, day, hour, minute) in weather data file
public static void write(java.lang.String filename,
java.util.ArrayList<java.lang.String> myArr)
throws java.io.IOException
filename - the name of .mos weather data filemyArr - array where the weather data is stored
java.io.IOException - when problems occur during file access
public static java.util.ArrayList<java.lang.String> convert(java.lang.String filename,
java.util.ArrayList<java.lang.String> myArr)
throws java.io.IOException
filename - the name of .epw weather data filemyArr - the array where the weather data is stored
java.io.IOException - when problems occur during file accesspublic static void main(java.lang.String[] args)
args - name of .epw weather data file
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||