Difference between revisions of "IS428 2017-18 T1 Assign Cheryl Chiam"
Line 119: | Line 119: | ||
|- | |- | ||
− | | Results || [[Image: | + | | Results || [[Image:ccwinddirection.png|400px|center]] |
|} | |} | ||
Revision as of 23:45, 8 October 2017
Dataset Analysis & Transformation Process
Activity #1 | Clean and Prepare Meteorological Data for Interpolation |
---|---|
Steps |
(We will be using MD.csv for interpolation.) Created files:
|
Results |
Activity #2 | Interpolate Meteorological Data |
---|---|
Steps |
As the records are in three hour intervals, the hours in between are not present. To aid the investigation, I hold the assumption that the next 2 hours after each wind reading follows the same readings taken at the original hour. Eg. 00:00’s wind speed and wind direction will be the same for 01:00 and 02:00. I carried out this interpolation by writing an Interpolation java program from scratch after editing the fields in MD.csv to a suitable Date/Time format and removing header. Basically, it reads through each line in the csv and then separates each field by looking at the delimiter. It will focus on the Time field, carrying out an additional separation of hours and minutes. If the hours are any of the 3 hour intervals, it will add a that timing’s record into the newly created csv called MeteorologicalData(Interpolate).csv along with two more records for the next two hours with the copied data. After csv is generated, I changed the Date Time format to follow Sensor Data’s format and removed columns Date and Time since it’s not needed anymore. Created files:
|
Results |
Direct Results of the program shown in MeteorologicalData(Interpolate).csv: After editing the csv generated to follow Sensor Data’s format: |
Activity #3 | Create Locations.xlsx |
---|---|
Steps |
From the description document, we can record the factorys’ X,Y coordinates and combined with the sensors’ coordinates. Created files:
|
Results |
Activity #4 | Inverse Map Colour |
---|---|
Steps |
Used external tool to inverse map colour for clearer and more focused display if showing diagrams on it. Created files:
|
Results |
Activity #5 | Created new calculated field for Compass Direction Images |
---|---|
Steps |
Used this formula: IF [Wind Direction] < 22.5 Then "N" ELSEIF [Wind Direction] <45 Then "NE" ELSEIF [Wind Direction] <67.5 Then "NE" ELSEIF [Wind Direction] <90 Then "E" ELSEIF [Wind Direction] <112.5 Then "E" ELSEIF [Wind Direction] <135 Then "SE" ELSEIF [Wind Direction] <157.5 Then "SE" ELSEIF [Wind Direction] <180 Then "S" ELSEIF [Wind Direction] <202.5 Then "S" ELSEIF [Wind Direction] <225 Then "SW" ELSEIF [Wind Direction] <247.5 Then "SW" ELSEIF [Wind Direction] <270 Then "W" ELSEIF [Wind Direction] <292.5 Then "W" ELSEIF [Wind Direction] <315 Then "NW" ELSEIF [Wind Direction] <337.5 Then "NW" ELSEIF [Wind Direction] <=360 Then "W" ELSEIF [Wind Direction] == NULL Then "N" End
|
Results |
Files that we would be using for our visualization:
- MeteorologicalData(Interpolate) (created)
- Sensor Data.xlsx (original)
- Locations.xlsx (created)
- InverseMap.png (created)