Skip to content

Precision

Rounding decimals

For detailed outputs obtained via the verbosity flag/s, we can ask to round the output values down to a specific number of decimals

pvgis power broadband \
    8.628 45.812 214 180 45 \
    '2010-01-27 12:00:00' \
    -v \
    --rounding-places 3
                                        PV Power series [W]                                         

  Time                  ⌁ Power   Technology               Incidence Definition          Frequency  
 ────────────────────────────────────────────────────────────────────────────────────────────────── 
  2010-01-27 12:00:00   789.574   cSi:Free standing 2025   Sun-Vector-to-Surface-Plane   Single     

  ⅀ / μ                 789.574                                                                     

╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ Angular units ㎭ radians                                                                                             │
│ Location  Longitude, Latitude = 0.151, 0.8                                                                           │
│ Position  Surface Orientation: 3.142, Surface Tilt: 0.785                                                            │
│ Definitions  Azimuth origin : North, Zone : UTC, Sun-Horizon Positions: Above, Low angle, Below, Shading states:     │
│ Sunlit, Potentially-sunlit, In-shade,                                                                                │
│ Algorithms  Power model: Huld 2011, Timing : NOAA, Positioning : NOAA, Incidence : Iqbal,                            │
│ Constants Solar constant : 1360.8, Perigee : 0.048869, Eccentricity : 0.03344                                        │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────── Reference ─╯
╭──────────────────────╮                                                                                                
│  ⌁  Power            │                                                                                                
│  ⅀  N-ary Summation  │                                                                                                
│  μ  Mean             │                                                                                                
│                      │                                                                                                
│                      │                                                                                                
│                      │                                                                                                
╰───────────── Legend ─╯                                                                                                

or even

pvgis power broadband \
    8.628 45.812 214 180 45 \
    '2010-01-27 12:00:00' \
    -v \
    --rounding-places 1
                                        PV Power series [W]                                         

  Time                  ⌁ Power   Technology               Incidence Definition          Frequency  
 ────────────────────────────────────────────────────────────────────────────────────────────────── 
  2010-01-27 12:00:00   789.6     cSi:Free standing 2025   Sun-Vector-to-Surface-Plane   Single     

  ⅀ / μ                 789.6                                                                       

╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ Angular units ㎭ radians                                                                                             │
│ Location  Longitude, Latitude = 0.2, 0.8                                                                             │
│ Position  Surface Orientation: 3.1, Surface Tilt: 0.8                                                                │
│ Definitions  Azimuth origin : North, Zone : UTC, Sun-Horizon Positions: Above, Low angle, Below, Shading states:     │
│ Sunlit, Potentially-sunlit, In-shade,                                                                                │
│ Algorithms  Power model: Huld 2011, Timing : NOAA, Positioning : NOAA, Incidence : Iqbal,                            │
│ Constants Solar constant : 1360.8, Perigee : 0.048869, Eccentricity : 0.03344                                        │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────── Reference ─╯
╭──────────────────────╮                                                                                                
│  ⌁  Power            │                                                                                                
│  ⅀  N-ary Summation  │                                                                                                
│  μ  Mean             │                                                                                                
│                      │                                                                                                
│                      │                                                                                                
│                      │                                                                                                
╰───────────── Legend ─╯                                                                                                

Higher precision

Do you really need higher precision? Head over to the NumPy section.