I am trying to access forecasted irradiance data using pvlib through the following code:
needed libraries
import pvlib
import pandas as pd
import datetime
from pvlib.forecast import GFS, NAM, NDFD, HRRR, RAP
latitude, longitude, tz = 15.134677754177943, 120.63806622424912, 'Asia/Manila'
model = GFS()
data = model.get_processed_data(latitude, longitude, start, end)
However I am getting this error.
HTTPError: Error accessing https://thredds.ucar.edu/thredds/ncss/grid/grib/NCEP/GFS/Global_0p5deg/GFS_Global_0p5deg_20230214_0000.grib2?var=Downward_Short-Wave_Radiation_Flux_surface_Mixed_intervals_Average&var=Low_cloud_cover_low_cloud_Mixed_intervals_Average&var=Medium_cloud_cover_middle_cloud_Mixed_intervals_Average&var=High_cloud_cover_high_cloud_Mixed_intervals_Average&var=Temperature_surface&var=Total_cloud_cover_entire_atmosphere_Mixed_intervals_Average&var=Total_cloud_cover_convective_cloud&var=v-component_of_wind_isobaric&var=Wind_speed_gust_surface&var=u-component_of_wind_isobaric&var=Total_cloud_cover_boundary_layer_cloud_Mixed_intervals_Average&time_start=2023-02-13T16%3A00%3A00%2B00%3A00&time_end=2023-02-20T16%3A00%3A00%2B00%3A00&longitude=120.63806622424912&latitude=15.134677754177943&vertCoord=100000&accept=netcdf
Thanks.
I have tried other models but still not working.