Skip to content

inwe-boku/PA3C3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PA3C3

Workflow

  1. read configuration (yml)

  2. read areafile (polygon shape)

  3. read DHM (raster)

  4. read LU (raster)

  5. calculate slope from DHM

  6. landuse calculations

    1. transform LU raster to LU polygons

    2. filter landuse values

    3. dissolve polygons

    4. explode polygons (multipart to singlepart)

    5. calculate area & filter

    6. calculate compactness (Schwartzberg algorithm) & filter

    7. calculate average slope & filter

    8. calculate altitude & filter

  7. Sun & Radiation calculations

    1. calculate sunrise/sunset for the area

    2. calculate horizon for viewdirections

    3. compare sun angle with horizon → no direct irradiation if sun is below horizon

    4. get CCCA Radiation Values

    5. Daily to Hourly

    6. manipulate hourly values according to sun/horizon situation

  8. Calculate PV Output of a System

    1. includes self shading of modules

TODO

  1. Output ASCII for Erwin

  2. Output PV Production

  3. Crosscheck PV Production with real values

Description

Sunrise/Sunset

several python libraries exists, simple one: suntimes

import suntimes
place = SunTimes(lon, lat, alt=200)

NetCDF

The NC Files from CCCA have the following structure (solar radiation example):

<class 'netCDF4._netCDF4.Dataset'>
root group (NETCDF4 data model, file format HDF5):
    comment: Bias corrected (scaled distribution mapping) data of the EURO-CORDEX model MOHC-HadGEM2-ES_rcp45_r1i1p1_CLMcom-CCLM4-8-17
using observational data from Global radiation dataset (ZAMG).
Historical and future projection under the RCP4.5 scenario.
Reference period: 1981-2005
    contact: Armin Leuprecht <[email protected]>
    institution: Wegener Center for Climate and Global Change, University of Graz, Austria
    project: OEKS 15
    title: Statistically downscaled Global radiation for Austria until 2100 under the RCP4.5 scenario
    Conventions: CF-1.5
    history: Wed Oct  5 14:23:40 2016: ncks -d time,0,44999 rsds_SDM_MOHC-HadGEM2-ES_rcp45_r1i1p1_CLMcom-CCLM4-8-17_all.nc /work/eau00/eau006/oeks15/euro-cordex-sdm/rcp45/rsds_SDM_MOHC-HadGEM2-ES_rcp45_r1i1p1_CLMcom-CCLM4-8-17_1971-2075.nc
    NCO: "4.5.5"
    references: Matthew B. Switanek et al., Scaled distribution mapping: a bias correction method that preserves raw climate model projected changes, Hydrology and Earth System Sciences Discussions, 2016, doi:10.5194/hess-2016-435
    dimensions(sizes): y(297), x(575), time(53610), bnds(2)
    variables(dimensions): int32 lambert_conformal(), float64 lat(y, x), float64 lon(y, x), float32 rsds(time, y, x), float64 time(time), float64 time_bnds(time, bnds), int32 x(x), int32 y(y)
    groups:

we have t approximate the location to get to the metered values on the conical CRS. - written a function for that (thanks peter for the hints)

Time

  • variable: time

  • days since 1949-12-01 00:00:00

  • 360 day calendar (12x30)

Radiation

  • function (time, y, x)

  • variable: rsds

  • unit: W/m²

  • mode: mean

Process of DATA

GHI daily mean → GHI hourly

Lui Jordan
  • INPUT: angle of sunset (pvlib), current sun angle (pvlib)

Collares-Pereira Rabel
  • INPUT: angle of sunset, current angle

horizon calculation from DEM/DHM

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published