FireSTARR
Loading...
Searching...
No Matches
agency_on Namespace Reference

Classes

class  SourceFwiON
 
class  SourceHourlyON
 

Functions

 fix_date (t)
 
 fix_dates (df)
 
 parse_by_extension (path)
 
 do_query (save_as, layer, fct_parse=None, query=QUERY_ALL, fields=FIELDS_ALL, other=None)
 
 fmt_date (d)
 
 get_query_date (field, datetime_start=None, datetime_end=None)
 
 check_latest (layer)
 
 get_stns (layer, latest)
 
 try_download_fwi (date)
 
 get_fwi (date)
 
 make_file_name (layer, hr_begin, hr_end, dir_out=DIR_AGENCY_ON)
 
 file_for_date (layer, d, dir_out=DIR_AGENCY_ON)
 
 get_hourly_date (dir_out, layer, date)
 
 get_hourly (dir_out, layer, datetime_start, datetime_end)
 
 get_wx_hourly (dir_out, lat, lon, datetime_start, datetime_end=None)
 

Variables

 DIR_AGENCY_ON = ensure_dir(os.path.join(DIR_DOWNLOAD, "agency", "ON"))
 
str SERVER_LIO = "https://ws.lioservices.lrc.gov.on.ca"
 
str URL_SERVER = f"{SERVER_LIO}/arcgis1/rest/services/MNRF/Ontario_Fires_Map/MapServer"
 
int LAYER_FIRE_POINT = 0
 
int LAYER_HOURLY = 29
 
int LAYER_DAILY = 30
 
dict DATE_FIELDS
 
str QUERY_ALL = "1=1"
 
list FIELDS_ALL = ["*"]
 
 BOUNDS_ON = get_bounds_from_id("ON")
 

Detailed Description

Ontario's publicly available data

Variable Documentation

◆ DATE_FIELDS

dict agency_on.DATE_FIELDS
Initial value:
1= {
2 LAYER_HOURLY: "OBSERVATION_DATE",
3 LAYER_DAILY: "DFOSS_WEATHER_DATE",
4}