Creating a CSV file of hindcast data at a specific location in the UK
Firstly, run the matlab script:
High_Resolution_Solar_Data_v1 and in the event of the script being run an input dialog box should appear. This requires a start and end date to be insert such that a data string can be calculated between these dates. N.B. the data is required to be entered in the following format: dd/mm/yyyy. For example: if we would like data from the 1st of January 2003 until the 23rd of August 2006, the data should be entered as shown in Figure 1. |
Following the entry of the dates, the location at which the hindcast data is required for should be appropriately entered with the use of geographic coordinates.
For example: the geographic coordinates for Edinburgh are 55.95° N, 3.22° W whilst for Norwich's are 52.65° N, 1.28° E. Therefore the values entered into Figure 2 should be as follows: Edinburgh (Latitude = 55.95 and Longitude = -3.22) whilst Norwich (Latitude = 52.65 and Longitude = 1.28). |
After each of the dialog boxes are successfully filled out the Matlab script will run generating a CSV file which can be found in the same directory as the file is stored.
[The CSV file will contain the date and time at which the data refers to as a number. For example: 01/01/2006 is stored as 38718, 2:00am is stored as 0.0833 and the global solar radiation value stored as a value with units: W/m^2]
[The CSV file will contain the date and time at which the data refers to as a number. For example: 01/01/2006 is stored as 38718, 2:00am is stored as 0.0833 and the global solar radiation value stored as a value with units: W/m^2]
Graham Cairns
University of Edinburgh, 2013
University of Edinburgh, 2013