TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/maxiricalde/ProfeLedesma/llms.txt
Use this file to discover all available pages before exploring further.
Site class (in helpers/Sites.py) is a simple lookup wrapper for a hardcoded registry of 16 solar irradiance measurement stations across South America. Instantiate it with a station code to immediately access that station’s geographic coordinates and altitude.
Constructor
Parameters
Station code string. Must be one of the 16 registered codes:
'PAR', 'FLO', 'BSA', 'PIL', 'PTR', 'YU', 'BRB', 'SA', 'SCA', 'ERO', 'LQ', 'TG', 'ERI', 'CAU', 'CE', 'AP'Raises ValueError if the code is not found in the internal registry.Instance Attributes
After construction, the following attributes are available:| Attribute | Type | Description |
|---|---|---|
cod | str | Station code passed to the constructor |
lat | float | Latitude in decimal degrees (negative = Southern Hemisphere) |
long | float | Longitude in decimal degrees (negative = west of Prime Meridian) |
alt | float | Altitude in metres above sea level |
idx | int | Zero-based index position of the station in the internal registry list |
Methods
describe() → None
getNeighbors(order) → list[str]
order from the station’s reference grid position. Each identifier is formatted as '{lat}_{lon}' with coordinates rounded to 5 decimal places.
| Parameter | Type | Description |
|---|---|---|
order | int | Manhattan distance k from the station. k=1 returns immediate neighbours, k=2 the next ring, and so on. |
list[str] — grid-point strings in the form '{lat}_{lon}', using a 0.1° resolution grid.
Usage Example
Geo and other helpers:
Station Registry
All 16 stations registered inhelpers/Sites.py:
| Code | Latitude | Longitude | Altitude (m) |
|---|---|---|---|
| PAR | 5.80600 | −55.21460 | 4 |
| FLO | −27.60470 | −48.52270 | 11 |
| BSA | −34.60000 | −58.48000 | 30 |
| PIL | −31.67000 | −63.88000 | 335 |
| PTR | −9.06900 | −40.32000 | 387 |
| YU | −23.58440 | −64.50660 | 401 |
| BRB | −15.60100 | −47.71300 | 1023 |
| SA | −24.72880 | −65.40950 | 1233 |
| SCA | −25.89510 | −65.92500 | 1624 |
| ERO | −24.39278 | −65.76806 | 3355 |
| LQ | −22.103936 | −65.599923 | 3500 |
| TG | −24.59000 | −67.40000 | 3560 |
| ERI | −23.97360 | −67.11560 | 3729 |
| CAU | −23.668466 | −66.744995 | 3915 |
| CE | −24.89438 | −65.47105 | 1235 |
| AP | −22.80205 | −65.82436 | 3459 |
Stations are stored in module-level lists (
sites, lats, lons, alts) indexed in the order shown above. The Site.idx attribute gives the zero-based position in these lists, which can be useful for vectorised operations across the full registry.