pvsyst-tutorial-v8-meteorological-data-en
pvsyst-tutorial-v8-meteorological-data-en
This tutorial will guide you through the different options to manage and organize
meteorological data in PVsyst and explain the importation of data from external sources.
Special care should be taken when importing and generating these data since they
represent the main source of uncertainty for the simulation. We recommend using only
data from reliable sources and to always perform some basic crosschecks on them, as
will be explained in this tutorial. This will make sure that there is no serious mistake that
could compromise the quality of the results.
Self-measured data should only be used if the measurements were performed with
proper equipment that has been installed, carefully calibrated and the results analyzed
by qualified experts.
After clicking on this button, the Database Window will pop up on the screen. The left side
contains options related to meteorological data, including the following options:
- Geographical sites: Monthly data management.
- Synthetic data generation: Generate hourly values from the monthly data.
- Weather tables and graphs: Visualization and crosschecks of the hourly data.
You will get a dialog with a list of choices of the geographical site, where you can choose
the country or region of interest and a given station. The first column is the name of the
site, the second column is the country in which the site is located and the third one
describes the source of the monthly meteorological data.
The "Interactive Map" tab allows you to select interactively the location of your site using
Google maps. You can click on the map to choose the site location. You can zoom in and
out of the map, and you can use the search field to find the name of a place. When the
Managing Favorites
The sites will normally have a white background in the selection list. Green entries are
sites that have been defined as favorites by the user. New sites that are created by
the user are put into favorites by default. They can be removed from the list of
favorites by clicking on ‘Set Favorites’, selecting the site from the list and clicking on
‘Close Favorites’. In the same way, you can add more sites to the list of favorites.
First, choose a site holding a monthly meteorological data. Now you can specify:
- Site name: This is the site name that will be used in the .MET file. You can name
it differently from the one used in the .SIT file if you want to generate more than
one .MET file for the same site. This site name will be visible if you select a
meteorological file for your project.
- Source: The source of the data. This is automatically filled in and
normally you do not need to change this. This information will also be visible when
you select a meteorological file for your project.
- File name: Select a unique name for a new file or overwrite an existing one.
Press the “Execute Generation” button.
The “Weather Data Tables and Graphs” dialog will appear on the screen. After choosing
a meteorological file, information on the site is shown at the top and the type of data is
displayed on the left side of the dialog.
On the right side, it is possible to select graphical ("Graphs") or table ("Tables") output.
Both options allow you to look at hourly, daily or monthly values. The third tab, “Check
data quality” allows you to perform deeper analysis on the data quality. This step is very
important, especially if you imported data with custom format.
This opens a graph with the hourly meteorological values, and you can walk through your
entire data using the Scrollbar on the right. The plot includes a blue line that represents
the Clear sky model, superimposed on your data. It is very important that the data is not
shifted on the time axis with respect to the blue line. This will always be the case for the
synthetic data or the data imported from known sources using the "Import weather data"
tool.
When walking through the year, you will see that clear conditions, where the horizontal
global irradiation matches the clear sky model correspond to a low diffuse component.
When the sun becomes hazy and the horizontal global irradiation is well below the blue
line of the clear sky model, the diffuse part increases. The difference between the global
and the diffuse components corresponds to the beam component.
You will get a scatter plot of the irradiation values against the day of the year. Each point
represents the irradiance for a single day in [kWh/m²/day].
The blue envelope curve describes the Clear sky model. This plot gives a quick
crosscheck of the quality of the data. The Clear sky model is an upper limit for the
measured irradiance, and none of the points should exceed this curve significantly (more
than 3-5%). If larger discrepancies are seen, this indicates that the data are not good.
1.4.2 Tables
You can also present your data as tables. You can choose up to 8 values to be put into
the table at the same time, including the irradiance on a tilted plane (transposition model)
or the normal beam component (for concentration).
As for each data table in PVsyst, you have the possibility to:
Print the table: You will get the Print dialog, where you can add comments to the
header of the table and specify the time range for which you want to
print the values.
Export / Copy as text: This will "copy" the full table to the clipboard, from where so
you can "Paste" it directly into an external spreadsheet like MS
Excel. Remember that in MS EXCEL, the imported data will usually
be gathered in one single column. To expand the data to cells you
have to use the standard EXCEL options for importing data: menu
“Data” / "Convert…", and here you should choose “Delimited” /
“Semicolon” separator.
NB: The data will be copied with a decimal point. If you are using
decimal commas (international preferences in Windows), you will
perhaps have to change all points to commas.
Export / Copy as image: Will copy a bitmap image of the table to the clipboard, from
where you can paste it into a report.
This list is not exhaustive. For detailed instructions, please refer to the online help of
PVsyst. When you are ready, press the "Start Conversion" button.
During execution, a control executing window displays the contents of the source-file's
line currently being processed, as well as the converted meteorological values, which will
Next you give a small description of the data that will be attached to the output file. This
information will be displayed in PVsyst in dialogs or reports as description of the
Meteorological file (*.MET file).
You have three fields for which PVsyst proposes default values and that you can complete
or change to any text you want. It is recommended to give short descriptions, so that they
will fit into the dialog fields. The three fields are:
- Site: The default will be the site name chosen in “Data Source”, but you can
change or complete the name in this field.
- Source: Here, you should put a short label describing from where the data
has been retrieved, e.g., the source filename, or “Measured on site”, or “Provided
by Meteo Inc.”, etc.
- Year/kind: Default is “imported”. Give a short label with the year for which this
data is valid, and if it is hourly, daily or even sub-hourly data. Try not to exceed the
visible width of the field, so you can read this label easily in other PVsyst dialogs.
You can specify the output filename. PVsyst proposes a filename generated from the site
name in the “Data Source” field. If your source file contains several data sets for the same
site, like for different years or measurements in the horizontal and tilted plane, you are
advised to change the output filename to something that will identify which portion of the
data is being imported.
The dialog “Conversion of custom (sub) hourly weather files – definition of the import
format file” will pop up. It contains a field “Format description” where you must give a
name that will identify this format protocol. The dialog contains four different tabs,
“General”, “Date Format”, “Weather Variables” and “Chaining files”. We will investigate
the first three tabs in detail. The last tab, “Chaining files”, is needed if your data is
distributed among several files and will not be described in this example. The lower part
of the dialog gives visual feedback on how the format file that is being defined will apply
to the content of the data source file. Here, you can quickly check if the different values
have been selected properly or if there are problems with the format definition.
“General”
For the example file containing hourly data, you can leave the default selection “(Sub)-
hourly data” with a time step of 60 min. The demo file also uses the default separator,
which is a semicolon. In the lower part of the window, you can check that the columns
containing the data starting from line 20 of the file. Therefore, in the field “Number of
headlines to be skipped”, enter 19. In the bottom display, the background of the skipped
“Date Format”
In this tab you specify how to read the time of your file. If possible, it is always better to
select “Dates read on the file” to read the time, the other options “Reference year” and
“Sequential dates” are very sensitive: any missing line of data introduces a time shift for
all remaining lines of data. For our example, you need to select “Dates read on the file”
and choose the adequate format from the drop-down list “Date format”. In this case it is
“DD/MM/YY/hh/mm”, which means that the date is ordered as
Day/Month/Year/hour/minute, and that date and time are not in separate columns. The
slashes are wildcards and represent any non-numeric character except for the column
separators.
On the right, in the column “Field no”, specify the column where the timestamp can be
found, which is “1” in our example. In the bottom part of the dialog, you will see a green
header for the specified column. Finally, you need to specify how the time label is related
to the measurements. In our example, the time labels correspond to the end of the
measurement.
“Variables” selection
For the example, you need to select “Global on tilted plane” and “Ambient temperature”
in the right list. For each selected variable, the column for “Field no” in which the variable
can be found in the file must be filled. In our example, these are the columns 3 for the
Irradiance and 4 for the temperature. The default units for these variables are W/m2 and
°C respectively. If the data comes in different units, you have the possibility to specify a
factor which will be multiplied to the values. In our example file, the units correspond to
the default values and we can leave 1.000 as factor. Once you have specified a field
number for a variable, you will see that the corresponding column in the bottom part of
the dialog gets a green header with the variable name. This allows to quickly verify if the
given values are correct.
When all the specifications of the format file have been entered, define a proper
description and file name then click on “OK” and you will be asked to save the newly
defined format file. You can change a last time the filename before clicking on “Save”. If
a file with the same name already exists, you will be asked to confirm to overwrite it.
After successfully saving the format file you will get back to the “Conversion of custom
weather (sub)-hourly files” dialog.
In the example file, the timestamp in the last line of data is already the first hour of the
following year (2007). You will be prompted with a corresponding warning message that
you acknowledge by clicking on “Yes”. When the conversion is finished, click on “OK”.
The conversion is now finished, you should carefully check if the result does not contain
any obvious error or inconsistency. A prompt asking if you want to open the dialog for
visualizing the meteorological data will pop up. Click on “Yes” to open the dialog.
The upper part of the dialog indicates two fields: “Source” and “Kind/Year”, that you filled
up when creating the file. Below them, there is detailed information on the site to which
this meteorological file has been associated.
On the left, you will see the time range covered by the data and some of the details of the
original file from which the data was imported and that you defined in the format file.
The right side of the dialog contains the options to visualize the meteorological data and
is subdivided into three tabs. Select the “Check data quality” tab. The tab contains a
small control plot displaying the time shift that PVsyst estimates for the imported data.
In the current example, it should be close to zero.
There are two more ways to visualize a possible time shift from the data. The first one is
to look at the clearness index for morning and afternoon hours. The orange dots show the
clearness index as a function of the sun height in the morning, while the green dots show
the same information for times after 12:00. Both colors should follow roughly the same
distribution.
The second possibility is to compare the daily evolution of the measured irradiation
(global and diffuse) to the clear sky model. If you press on the button “Monthly best clear
days”, you will get a plot like as presented in Erreur ! Source du renvoi introuvable..
The third control plot “Best clear days Ktcs” displays the sorted Ktcs of all days of the
year. The Ktcs is the clearness index referenced to the clear day model (not to the
extraterrestrial). This graph gives an idea of the calibration of the irradiance sensor: the
best days of the data should be close (within 5%) of the clear sky model, i.e., Ktcs=1.