go_utils.constants
Useful stored values for GLOBE Observer scripts
Stored Values
- mosquito_protocol: the string used in the GLOBE API for the Mosquito Habitat Mapper protocol
- landcover_protocol: the string used in the GLOBE API for the Land Cover Protocol.
- start_date: the default starting date of GLOBE Obsever data requests in YYYY-MM-DD Form.
- end_date: the current date in YYYY-MM-DD Form.
- regions_dict: contains all the different GLOBE regions and the countries associated with each region
1from datetime import datetime 2 3# Default Start and End Dates for GO Data 4start_date = "2017-05-31" 5end_date = datetime.now().strftime("%Y-%m-%d") 6 7mosquito_protocol = "mosquito_habitat_mapper" 8landcover_protocol = "land_covers" 9 10region_dict = { 11 "Africa": [ 12 "Benin", 13 "Botswana", 14 "Burkina Faso", 15 "Cameroon", 16 "Cape Verde", 17 "Chad", 18 "Congo DRC", 19 "Ethiopia", 20 "Gabon", 21 "Gambia", 22 "Ghana", 23 "Guinea", 24 "Kenya", 25 "Liberia", 26 "Madagascar", 27 "Mali", 28 "Mauritius", 29 "Namibia", 30 "Niger", 31 "Nigeria", 32 "Rwada", 33 "Senegal", 34 "Seychelles", 35 "South Africa", 36 "Tanzania", 37 "Togo", 38 "Uganda", 39 ], 40 "Asia and the Pacific": [ 41 "Australia", 42 "Bangladesh", 43 "Fiji", 44 "India", 45 "Japan", 46 "Maldives", 47 "Marshall Islands", 48 "Micronesia", 49 "Mongolia", 50 "Nepal", 51 "New Zealand", 52 "Palau", 53 "Philippines", 54 "Republic of Korea", 55 "Sri Lanka", 56 "Taiwan Partnership", 57 "Thailand", 58 "Vietnam", 59 ], 60 "Latin America and Caribbean": [ 61 "Argentina", 62 "Bahamas", 63 "Burmuda", 64 "Bolivia", 65 "Brazil", 66 "Chile", 67 "Colombia", 68 "Costa Rica", 69 "Dominican Republic", 70 "Ecuador", 71 "El Salvador", 72 "Guatemala", 73 "Honduras", 74 "Mexico", 75 "Panama", 76 "Paraguay", 77 "Peru", 78 "Suriname", 79 "Trinidad and Tobago", 80 "Uruguay", 81 ], 82 "Europe and Eurasia": [ 83 "Austria", 84 "Belgium", 85 "Bulgaria", 86 "Croatia", 87 "Cyprus", 88 "Czech Republic", 89 "Denmark", 90 "Estonia", 91 "Finland", 92 "France", 93 "Georgia", 94 "Germany", 95 "Greece", 96 "Hungary", 97 "Iceland", 98 "Ireland", 99 "Israel", 100 "Italy", 101 "Kazakhstan", 102 "Kyrgyz Republic", 103 "Latvia", 104 "Liechtenstein", 105 "Lithuania", 106 "Luxembourg", 107 "Malta", 108 "Moldovia", 109 "Montenegro", 110 "Netherlands", 111 "North Macedonia", 112 "Norway", 113 "Poland", 114 "Portugal", 115 "Romania", 116 "Russia", 117 "Serbia", 118 "Slovak Republic", 119 "Spain", 120 "Sweden", 121 "Switzerland", 122 "Turkey", 123 "Ukraine", 124 "United Kingdom", 125 ], 126 "Near East and North Africa": [ 127 "Bahrain", 128 "Egypt", 129 "Jordan", 130 "Kuwait", 131 "Lebanon", 132 "Mauritania", 133 "Morocco", 134 "Oman", 135 "Pakistan", 136 "Qatar", 137 "Saudi Arabia", 138 "Tunisia", 139 "United Arab Emirates", 140 ], 141 "North America": ["Canada", "United States"], 142} 143 144abbreviation_dict = { 145 mosquito_protocol: "mhm", 146 landcover_protocol: "lc", 147} 148 149__doc__ = """ 150Useful stored values for GLOBE Observer scripts 151 152Stored Values 153------------- 154- mosquito_protocol: the string used in the GLOBE API for the Mosquito Habitat Mapper protocol 155- landcover_protocol: the string used in the GLOBE API for the Land Cover Protocol. 156- start_date: the default starting date of GLOBE Obsever data requests in YYYY-MM-DD Form. 157- end_date: the current date in YYYY-MM-DD Form. 158- regions_dict: contains all the different GLOBE regions and the countries associated with each region 159"""