wxdata 3.0__tar.gz → 3.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (193) hide show
  1. {wxdata-3.0/src/wxdata.egg-info → wxdata-3.1}/PKG-INFO +6 -1
  2. {wxdata-3.0 → wxdata-3.1}/README.md +5 -0
  3. {wxdata-3.0 → wxdata-3.1}/pyproject.toml +2 -1
  4. {wxdata-3.0 → wxdata-3.1}/src/wxdata/__init__.py +8 -0
  5. {wxdata-3.0 → wxdata-3.1}/src/wxdata/aigefs_cli.py +13 -13
  6. {wxdata-3.0 → wxdata-3.1}/src/wxdata/aigfs_cli.py +13 -13
  7. {wxdata-3.0 → wxdata-3.1}/src/wxdata/cansips_cli.py +3 -3
  8. {wxdata-3.0 → wxdata-3.1}/src/wxdata/cfs_cli.py +7 -7
  9. {wxdata-3.0 → wxdata-3.1}/src/wxdata/client/byte_range.py +33 -11
  10. {wxdata-3.0 → wxdata-3.1}/src/wxdata/client/client.py +151 -67
  11. wxdata-3.1/src/wxdata/client/level_coords.py +242 -0
  12. {wxdata-3.0 → wxdata-3.1}/src/wxdata/ecmwf_cli.py +22 -22
  13. {wxdata-3.0 → wxdata-3.1}/src/wxdata/gdps_cli.py +5 -5
  14. {wxdata-3.0 → wxdata-3.1}/src/wxdata/gefs_cli.py +7 -7
  15. {wxdata-3.0 → wxdata-3.1}/src/wxdata/geps_cli.py +2 -2
  16. {wxdata-3.0 → wxdata-3.1}/src/wxdata/gfs_cli.py +18 -18
  17. {wxdata-3.0 → wxdata-3.1}/src/wxdata/hgefs_cli.py +17 -17
  18. {wxdata-3.0 → wxdata-3.1}/src/wxdata/hrdps_cli.py +5 -5
  19. wxdata-3.1/src/wxdata/model_data/recast_systems/woof_nam/__init__.py +1 -0
  20. wxdata-3.1/src/wxdata/model_data/recast_systems/woof_nam/file_scanner.py +55 -0
  21. wxdata-3.1/src/wxdata/model_data/recast_systems/woof_nam/url_scanner.py +325 -0
  22. wxdata-3.1/src/wxdata/model_data/recast_systems/woof_nam/woof_nam.py +371 -0
  23. {wxdata-3.0 → wxdata-3.1}/src/wxdata/post_processors/__init__.py +2 -1
  24. {wxdata-3.0 → wxdata-3.1}/src/wxdata/post_processors/gefs_post_processing.py +4 -2
  25. wxdata-3.1/src/wxdata/post_processors/woof_nam_post_processing.py +952 -0
  26. {wxdata-3.0 → wxdata-3.1}/src/wxdata/rdps_cli.py +5 -5
  27. {wxdata-3.0 → wxdata-3.1}/src/wxdata/rtma_cli.py +1 -1
  28. {wxdata-3.0 → wxdata-3.1}/src/wxdata/utils/coords.py +19 -5
  29. {wxdata-3.0 → wxdata-3.1}/src/wxdata/utils/file_scanner.py +1 -1
  30. {wxdata-3.0 → wxdata-3.1}/src/wxdata/utils/nomads_gribfilter.py +15 -2
  31. wxdata-3.1/src/wxdata/woof_nam_cli.py +591 -0
  32. {wxdata-3.0 → wxdata-3.1/src/wxdata.egg-info}/PKG-INFO +6 -1
  33. {wxdata-3.0 → wxdata-3.1}/src/wxdata.egg-info/SOURCES.txt +6 -0
  34. {wxdata-3.0 → wxdata-3.1}/src/wxdata.egg-info/entry_points.txt +1 -0
  35. wxdata-3.0/src/wxdata/client/level_coords.py +0 -182
  36. {wxdata-3.0 → wxdata-3.1}/LICENSE +0 -0
  37. {wxdata-3.0 → wxdata-3.1}/setup.cfg +0 -0
  38. {wxdata-3.0 → wxdata-3.1}/src/wxdata/api/airnow_api/__init__.py +0 -0
  39. {wxdata-3.0 → wxdata-3.1}/src/wxdata/api/airnow_api/_errors.py +0 -0
  40. {wxdata-3.0 → wxdata-3.1}/src/wxdata/api/airnow_api/observations.py +0 -0
  41. {wxdata-3.0 → wxdata-3.1}/src/wxdata/api/open_meteo_api/air_quality/__init__.py +0 -0
  42. {wxdata-3.0 → wxdata-3.1}/src/wxdata/api/open_meteo_api/air_quality/cams.py +0 -0
  43. {wxdata-3.0 → wxdata-3.1}/src/wxdata/api/open_meteo_api/climate/__init__.py +0 -0
  44. {wxdata-3.0 → wxdata-3.1}/src/wxdata/api/open_meteo_api/climate/climate_data.py +0 -0
  45. {wxdata-3.0 → wxdata-3.1}/src/wxdata/api/open_meteo_api/marine_forecasts/__init__.py +0 -0
  46. {wxdata-3.0 → wxdata-3.1}/src/wxdata/api/open_meteo_api/marine_forecasts/dwd.py +0 -0
  47. {wxdata-3.0 → wxdata-3.1}/src/wxdata/api/open_meteo_api/marine_forecasts/ecmwf.py +0 -0
  48. {wxdata-3.0 → wxdata-3.1}/src/wxdata/api/open_meteo_api/marine_forecasts/meteo_france.py +0 -0
  49. {wxdata-3.0 → wxdata-3.1}/src/wxdata/api/open_meteo_api/marine_forecasts/noaa.py +0 -0
  50. {wxdata-3.0 → wxdata-3.1}/src/wxdata/api/open_meteo_api/seasonal_forecasts/__init__.py +0 -0
  51. {wxdata-3.0 → wxdata-3.1}/src/wxdata/api/open_meteo_api/seasonal_forecasts/ecmwf_daily.py +0 -0
  52. {wxdata-3.0 → wxdata-3.1}/src/wxdata/api/open_meteo_api/seasonal_forecasts/ecmwf_monthly.py +0 -0
  53. {wxdata-3.0 → wxdata-3.1}/src/wxdata/api/open_meteo_api/seasonal_forecasts/ecmwf_weekly.py +0 -0
  54. {wxdata-3.0 → wxdata-3.1}/src/wxdata/api/open_meteo_api/solar_radiation/__init__.py +0 -0
  55. {wxdata-3.0 → wxdata-3.1}/src/wxdata/api/open_meteo_api/solar_radiation/models.py +0 -0
  56. {wxdata-3.0 → wxdata-3.1}/src/wxdata/api/open_meteo_api/solar_radiation/solar_radiation.py +0 -0
  57. {wxdata-3.0 → wxdata-3.1}/src/wxdata/api/open_meteo_api/weather_forecasts/__init__.py +0 -0
  58. {wxdata-3.0 → wxdata-3.1}/src/wxdata/api/open_meteo_api/weather_forecasts/cmc.py +0 -0
  59. {wxdata-3.0 → wxdata-3.1}/src/wxdata/api/open_meteo_api/weather_forecasts/current_weather.py +0 -0
  60. {wxdata-3.0 → wxdata-3.1}/src/wxdata/api/open_meteo_api/weather_forecasts/dwd.py +0 -0
  61. {wxdata-3.0 → wxdata-3.1}/src/wxdata/api/open_meteo_api/weather_forecasts/ecmwf.py +0 -0
  62. {wxdata-3.0 → wxdata-3.1}/src/wxdata/api/open_meteo_api/weather_forecasts/google.py +0 -0
  63. {wxdata-3.0 → wxdata-3.1}/src/wxdata/api/open_meteo_api/weather_forecasts/jma.py +0 -0
  64. {wxdata-3.0 → wxdata-3.1}/src/wxdata/api/open_meteo_api/weather_forecasts/meteo_france.py +0 -0
  65. {wxdata-3.0 → wxdata-3.1}/src/wxdata/api/open_meteo_api/weather_forecasts/noaa.py +0 -0
  66. {wxdata-3.0 → wxdata-3.1}/src/wxdata/api/open_meteo_api/weather_forecasts/ukmo.py +0 -0
  67. {wxdata-3.0 → wxdata-3.1}/src/wxdata/archived_data/model_data/noaa/cfs/__init__.py +0 -0
  68. {wxdata-3.0 → wxdata-3.1}/src/wxdata/archived_data/model_data/noaa/cfs/cfs.py +0 -0
  69. {wxdata-3.0 → wxdata-3.1}/src/wxdata/archived_data/model_data/noaa/cfs/url_scanner.py +0 -0
  70. {wxdata-3.0 → wxdata-3.1}/src/wxdata/archived_data/model_data/noaa/gefs/__init__.py +0 -0
  71. {wxdata-3.0 → wxdata-3.1}/src/wxdata/archived_data/model_data/noaa/gefs/gefs.py +0 -0
  72. {wxdata-3.0 → wxdata-3.1}/src/wxdata/archived_data/model_data/noaa/gefs/paths.py +0 -0
  73. {wxdata-3.0 → wxdata-3.1}/src/wxdata/archived_data/model_data/noaa/gefs/url_scanner.py +0 -0
  74. {wxdata-3.0 → wxdata-3.1}/src/wxdata/archived_data/model_data/noaa/gfs/__init__.py +0 -0
  75. {wxdata-3.0 → wxdata-3.1}/src/wxdata/archived_data/model_data/noaa/gfs/gfs.py +0 -0
  76. {wxdata-3.0 → wxdata-3.1}/src/wxdata/archived_data/model_data/noaa/gfs/url_scanners.py +0 -0
  77. {wxdata-3.0 → wxdata-3.1}/src/wxdata/archived_data/model_data/noaa/rtma/__init__.py +0 -0
  78. {wxdata-3.0 → wxdata-3.1}/src/wxdata/archived_data/model_data/noaa/rtma/rtma.py +0 -0
  79. {wxdata-3.0 → wxdata-3.1}/src/wxdata/archived_data/model_data/noaa/rtma/url_scanner.py +0 -0
  80. {wxdata-3.0 → wxdata-3.1}/src/wxdata/archived_data/radar_data/__init__.py +0 -0
  81. {wxdata-3.0 → wxdata-3.1}/src/wxdata/archived_data/radar_data/nexrad2.py +0 -0
  82. {wxdata-3.0 → wxdata-3.1}/src/wxdata/archived_data/radar_data/url_scanner.py +0 -0
  83. {wxdata-3.0 → wxdata-3.1}/src/wxdata/calc/__init__.py +0 -0
  84. {wxdata-3.0 → wxdata-3.1}/src/wxdata/calc/derived_fields.py +0 -0
  85. {wxdata-3.0 → wxdata-3.1}/src/wxdata/calc/kinematics.py +0 -0
  86. {wxdata-3.0 → wxdata-3.1}/src/wxdata/calc/thermodynamics.py +0 -0
  87. {wxdata-3.0 → wxdata-3.1}/src/wxdata/calc/unit_conversion.py +0 -0
  88. {wxdata-3.0 → wxdata-3.1}/src/wxdata/client/__init__.py +0 -0
  89. {wxdata-3.0 → wxdata-3.1}/src/wxdata/fuels_data/fems/__init__.py +0 -0
  90. {wxdata-3.0 → wxdata-3.1}/src/wxdata/fuels_data/fems/meta_data.py +0 -0
  91. {wxdata-3.0 → wxdata-3.1}/src/wxdata/fuels_data/fems/observations.py +0 -0
  92. {wxdata-3.0 → wxdata-3.1}/src/wxdata/gridded_forecasts/noaa/nws/__init__.py +0 -0
  93. {wxdata-3.0 → wxdata-3.1}/src/wxdata/gridded_forecasts/noaa/nws/nws.py +0 -0
  94. {wxdata-3.0 → wxdata-3.1}/src/wxdata/metars_cli.py +0 -0
  95. {wxdata-3.0 → wxdata-3.1}/src/wxdata/model_data/cmc/cansips/forecast/__init__.py +0 -0
  96. {wxdata-3.0 → wxdata-3.1}/src/wxdata/model_data/cmc/cansips/forecast/cansips_forecast.py +0 -0
  97. {wxdata-3.0 → wxdata-3.1}/src/wxdata/model_data/cmc/cansips/forecast/url_scanner.py +0 -0
  98. {wxdata-3.0 → wxdata-3.1}/src/wxdata/model_data/cmc/cansips/hindcast/__init__.py +0 -0
  99. {wxdata-3.0 → wxdata-3.1}/src/wxdata/model_data/cmc/cansips/hindcast/cansips_hindcast.py +0 -0
  100. {wxdata-3.0 → wxdata-3.1}/src/wxdata/model_data/cmc/cansips/hindcast/file_sorter.py +0 -0
  101. {wxdata-3.0 → wxdata-3.1}/src/wxdata/model_data/cmc/cansips/hindcast/url_scanner.py +0 -0
  102. {wxdata-3.0 → wxdata-3.1}/src/wxdata/model_data/cmc/gdps/__init__.py +0 -0
  103. {wxdata-3.0 → wxdata-3.1}/src/wxdata/model_data/cmc/gdps/gdps.py +0 -0
  104. {wxdata-3.0 → wxdata-3.1}/src/wxdata/model_data/cmc/gdps/url_scanner.py +0 -0
  105. {wxdata-3.0 → wxdata-3.1}/src/wxdata/model_data/cmc/geps/__init__.py +0 -0
  106. {wxdata-3.0 → wxdata-3.1}/src/wxdata/model_data/cmc/geps/geps.py +0 -0
  107. {wxdata-3.0 → wxdata-3.1}/src/wxdata/model_data/cmc/geps/url_scanner.py +0 -0
  108. {wxdata-3.0 → wxdata-3.1}/src/wxdata/model_data/cmc/hrdps/__init__.py +0 -0
  109. {wxdata-3.0 → wxdata-3.1}/src/wxdata/model_data/cmc/hrdps/hrdps.py +0 -0
  110. {wxdata-3.0 → wxdata-3.1}/src/wxdata/model_data/cmc/hrdps/url_scanner.py +0 -0
  111. {wxdata-3.0 → wxdata-3.1}/src/wxdata/model_data/cmc/rdps/__init__.py +0 -0
  112. {wxdata-3.0 → wxdata-3.1}/src/wxdata/model_data/cmc/rdps/rdps.py +0 -0
  113. {wxdata-3.0 → wxdata-3.1}/src/wxdata/model_data/cmc/rdps/url_scanner.py +0 -0
  114. {wxdata-3.0 → wxdata-3.1}/src/wxdata/model_data/cmc/utils/_exceptions.py +0 -0
  115. {wxdata-3.0 → wxdata-3.1}/src/wxdata/model_data/cmc/utils/cmc_keys.py +0 -0
  116. {wxdata-3.0 → wxdata-3.1}/src/wxdata/model_data/cmc/utils/file_scanner.py +0 -0
  117. {wxdata-3.0 → wxdata-3.1}/src/wxdata/model_data/cmc/utils/filenames.py +0 -0
  118. {wxdata-3.0 → wxdata-3.1}/src/wxdata/model_data/ecmwf/__init__.py +0 -0
  119. {wxdata-3.0 → wxdata-3.1}/src/wxdata/model_data/ecmwf/byte_range.py +0 -0
  120. {wxdata-3.0 → wxdata-3.1}/src/wxdata/model_data/ecmwf/ecmwf.py +0 -0
  121. {wxdata-3.0 → wxdata-3.1}/src/wxdata/model_data/ecmwf/file_funcs.py +0 -0
  122. {wxdata-3.0 → wxdata-3.1}/src/wxdata/model_data/ecmwf/keys.py +0 -0
  123. {wxdata-3.0 → wxdata-3.1}/src/wxdata/model_data/ecmwf/parsers.py +0 -0
  124. {wxdata-3.0 → wxdata-3.1}/src/wxdata/model_data/ecmwf/paths.py +0 -0
  125. {wxdata-3.0 → wxdata-3.1}/src/wxdata/model_data/ecmwf/url_scanners.py +0 -0
  126. {wxdata-3.0 → wxdata-3.1}/src/wxdata/model_data/ecmwf/validate.py +0 -0
  127. {wxdata-3.0 → wxdata-3.1}/src/wxdata/model_data/noaa/aigefs/__init__.py +0 -0
  128. {wxdata-3.0 → wxdata-3.1}/src/wxdata/model_data/noaa/aigefs/aigefs.py +0 -0
  129. {wxdata-3.0 → wxdata-3.1}/src/wxdata/model_data/noaa/aigefs/paths.py +0 -0
  130. {wxdata-3.0 → wxdata-3.1}/src/wxdata/model_data/noaa/aigefs/url_scanners.py +0 -0
  131. {wxdata-3.0 → wxdata-3.1}/src/wxdata/model_data/noaa/aigfs/__init__.py +0 -0
  132. {wxdata-3.0 → wxdata-3.1}/src/wxdata/model_data/noaa/aigfs/aigfs.py +0 -0
  133. {wxdata-3.0 → wxdata-3.1}/src/wxdata/model_data/noaa/aigfs/paths.py +0 -0
  134. {wxdata-3.0 → wxdata-3.1}/src/wxdata/model_data/noaa/aigfs/url_scanners.py +0 -0
  135. {wxdata-3.0 → wxdata-3.1}/src/wxdata/model_data/noaa/cfs/__init__.py +0 -0
  136. {wxdata-3.0 → wxdata-3.1}/src/wxdata/model_data/noaa/cfs/cfs.py +0 -0
  137. {wxdata-3.0 → wxdata-3.1}/src/wxdata/model_data/noaa/cfs/file_scanner.py +0 -0
  138. {wxdata-3.0 → wxdata-3.1}/src/wxdata/model_data/noaa/cfs/url_scanners.py +0 -0
  139. {wxdata-3.0 → wxdata-3.1}/src/wxdata/model_data/noaa/gefs/__init__.py +0 -0
  140. {wxdata-3.0 → wxdata-3.1}/src/wxdata/model_data/noaa/gefs/exception_messages.py +0 -0
  141. {wxdata-3.0 → wxdata-3.1}/src/wxdata/model_data/noaa/gefs/file_funcs.py +0 -0
  142. {wxdata-3.0 → wxdata-3.1}/src/wxdata/model_data/noaa/gefs/gefs.py +0 -0
  143. {wxdata-3.0 → wxdata-3.1}/src/wxdata/model_data/noaa/gefs/paths.py +0 -0
  144. {wxdata-3.0 → wxdata-3.1}/src/wxdata/model_data/noaa/gefs/url_scanners.py +0 -0
  145. {wxdata-3.0 → wxdata-3.1}/src/wxdata/model_data/noaa/gfs/__init__.py +0 -0
  146. {wxdata-3.0 → wxdata-3.1}/src/wxdata/model_data/noaa/gfs/exception_messages.py +0 -0
  147. {wxdata-3.0 → wxdata-3.1}/src/wxdata/model_data/noaa/gfs/gfs.py +0 -0
  148. {wxdata-3.0 → wxdata-3.1}/src/wxdata/model_data/noaa/gfs/paths.py +0 -0
  149. {wxdata-3.0 → wxdata-3.1}/src/wxdata/model_data/noaa/gfs/url_scanners.py +0 -0
  150. {wxdata-3.0 → wxdata-3.1}/src/wxdata/model_data/noaa/hgefs/__init__.py +0 -0
  151. {wxdata-3.0 → wxdata-3.1}/src/wxdata/model_data/noaa/hgefs/hgefs.py +0 -0
  152. {wxdata-3.0 → wxdata-3.1}/src/wxdata/model_data/noaa/hgefs/paths.py +0 -0
  153. {wxdata-3.0 → wxdata-3.1}/src/wxdata/model_data/noaa/hgefs/url_scanner.py +0 -0
  154. {wxdata-3.0 → wxdata-3.1}/src/wxdata/model_data/noaa/rtma/__init__.py +0 -0
  155. {wxdata-3.0 → wxdata-3.1}/src/wxdata/model_data/noaa/rtma/file_funcs.py +0 -0
  156. {wxdata-3.0 → wxdata-3.1}/src/wxdata/model_data/noaa/rtma/file_scanner.py +0 -0
  157. {wxdata-3.0 → wxdata-3.1}/src/wxdata/model_data/noaa/rtma/keys.py +0 -0
  158. {wxdata-3.0 → wxdata-3.1}/src/wxdata/model_data/noaa/rtma/rtma.py +0 -0
  159. {wxdata-3.0 → wxdata-3.1}/src/wxdata/model_data/noaa/rtma/url_scanners.py +0 -0
  160. {wxdata-3.0 → wxdata-3.1}/src/wxdata/ndfd_cli.py +0 -0
  161. {wxdata-3.0 → wxdata-3.1}/src/wxdata/nexrad2_cli.py +0 -0
  162. {wxdata-3.0 → wxdata-3.1}/src/wxdata/observational_data/metars/__init__.py +0 -0
  163. {wxdata-3.0 → wxdata-3.1}/src/wxdata/observational_data/metars/_clean_data.py +0 -0
  164. {wxdata-3.0 → wxdata-3.1}/src/wxdata/observational_data/metars/metar_obs.py +0 -0
  165. {wxdata-3.0 → wxdata-3.1}/src/wxdata/observational_data/radar/__init__.py +0 -0
  166. {wxdata-3.0 → wxdata-3.1}/src/wxdata/observational_data/radar/nexrad2.py +0 -0
  167. {wxdata-3.0 → wxdata-3.1}/src/wxdata/observational_data/radar/url_scanner.py +0 -0
  168. {wxdata-3.0 → wxdata-3.1}/src/wxdata/observational_data/soundings/__init__.py +0 -0
  169. {wxdata-3.0 → wxdata-3.1}/src/wxdata/observational_data/soundings/_exceptions.py +0 -0
  170. {wxdata-3.0 → wxdata-3.1}/src/wxdata/observational_data/soundings/wyoming_soundings.py +0 -0
  171. {wxdata-3.0 → wxdata-3.1}/src/wxdata/post_processors/aigefs_post_processing.py +0 -0
  172. {wxdata-3.0 → wxdata-3.1}/src/wxdata/post_processors/aigfs_post_processing.py +0 -0
  173. {wxdata-3.0 → wxdata-3.1}/src/wxdata/post_processors/cfs_post_processing.py +0 -0
  174. {wxdata-3.0 → wxdata-3.1}/src/wxdata/post_processors/cmc_post_processing.py +0 -0
  175. {wxdata-3.0 → wxdata-3.1}/src/wxdata/post_processors/ecmwf_post_processing.py +0 -0
  176. {wxdata-3.0 → wxdata-3.1}/src/wxdata/post_processors/gfs_post_processing.py +0 -0
  177. {wxdata-3.0 → wxdata-3.1}/src/wxdata/post_processors/hgefs_post_processing.py +0 -0
  178. {wxdata-3.0 → wxdata-3.1}/src/wxdata/post_processors/rtma_post_processing.py +0 -0
  179. {wxdata-3.0 → wxdata-3.1}/src/wxdata/soundings_cli.py +0 -0
  180. {wxdata-3.0 → wxdata-3.1}/src/wxdata/utils/__init__.py +0 -0
  181. {wxdata-3.0 → wxdata-3.1}/src/wxdata/utils/api.py +0 -0
  182. {wxdata-3.0 → wxdata-3.1}/src/wxdata/utils/exceptions.py +0 -0
  183. {wxdata-3.0 → wxdata-3.1}/src/wxdata/utils/file_funcs.py +0 -0
  184. {wxdata-3.0 → wxdata-3.1}/src/wxdata/utils/progress_bar.py +0 -0
  185. {wxdata-3.0 → wxdata-3.1}/src/wxdata/utils/recycle_bin.py +0 -0
  186. {wxdata-3.0 → wxdata-3.1}/src/wxdata/utils/scripts.py +0 -0
  187. {wxdata-3.0 → wxdata-3.1}/src/wxdata/utils/tools.py +0 -0
  188. {wxdata-3.0 → wxdata-3.1}/src/wxdata/utils/transforms.py +0 -0
  189. {wxdata-3.0 → wxdata-3.1}/src/wxdata/utils/verify.py +0 -0
  190. {wxdata-3.0 → wxdata-3.1}/src/wxdata/utils/warnings.py +0 -0
  191. {wxdata-3.0 → wxdata-3.1}/src/wxdata.egg-info/dependency_links.txt +0 -0
  192. {wxdata-3.0 → wxdata-3.1}/src/wxdata.egg-info/requires.txt +0 -0
  193. {wxdata-3.0 → wxdata-3.1}/src/wxdata.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wxdata
3
- Version: 3.0
3
+ Version: 3.1
4
4
  Summary: A Python package of end-to-end weather data clients & raw data clients with VPN/Proxy Server support, data processors that decode variable keys from GRIB format into a plain-language format & various tools for assisting Python automated workflows, querying meteorological datasets and filling gaps in meteorological data.
5
5
  Author: Eric J. Drewitz
6
6
  Project-URL: Documentation, https://edrewitz.github.io/WxData/
@@ -50,6 +50,9 @@ Dynamic: license-file
50
50
 
51
51
  [![PyPI Downloads](https://static.pepy.tech/personalized-badge/wxdata?period=total&units=INTERNATIONAL_SYSTEM&left_color=BLACK&right_color=GREEN&left_text=downloads)](https://pepy.tech/projects/wxdata)
52
52
 
53
+ ![PyPI Downloads](https://img.shields.io/pypi/dm/wxdata)
54
+
55
+
53
56
 
54
57
  **WxData User Guide**
55
58
 
@@ -178,3 +181,5 @@ These datasets include 20+ Weather Forecast Models, Observational Data, Radar Da
178
181
  12) [Amazon Web Services](https://aws.amazon.com/)
179
182
 
180
183
  13) [Google Cloud](https://cloud.google.com/)
184
+
185
+ 14) [Recast Systems Open-Source WOOF-NAM](https://woof-nam.recastsystems.com/index.html)
@@ -18,6 +18,9 @@
18
18
 
19
19
  [![PyPI Downloads](https://static.pepy.tech/personalized-badge/wxdata?period=total&units=INTERNATIONAL_SYSTEM&left_color=BLACK&right_color=GREEN&left_text=downloads)](https://pepy.tech/projects/wxdata)
20
20
 
21
+ ![PyPI Downloads](https://img.shields.io/pypi/dm/wxdata)
22
+
23
+
21
24
 
22
25
  **WxData User Guide**
23
26
 
@@ -146,3 +149,5 @@ These datasets include 20+ Weather Forecast Models, Observational Data, Radar Da
146
149
  12) [Amazon Web Services](https://aws.amazon.com/)
147
150
 
148
151
  13) [Google Cloud](https://cloud.google.com/)
152
+
153
+ 14) [Recast Systems Open-Source WOOF-NAM](https://woof-nam.recastsystems.com/index.html)
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "wxdata"
3
- version = "3.0"
3
+ version = "3.1"
4
4
  description = "A Python package of end-to-end weather data clients & raw data clients with VPN/Proxy Server support, data processors that decode variable keys from GRIB format into a plain-language format & various tools for assisting Python automated workflows, querying meteorological datasets and filling gaps in meteorological data."
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.10"
@@ -49,6 +49,7 @@ wxdata-gdps = "wxdata.gdps_cli:main"
49
49
  wxdata-rdps = "wxdata.rdps_cli:main"
50
50
  wxdata-hrdps = "wxdata.hrdps_cli:main"
51
51
  wxdata-geps = "wxdata.geps_cli:main"
52
+ wxdata-woof-nam = "wxdata.woof_nam_cli:main"
52
53
  wxdata-ndfd = "wxdata.ndfd_cli:main"
53
54
  wxdata-soundings = "wxdata.soundings_cli:main"
54
55
  wxdata-metars = "wxdata.metars_cli:main"
@@ -210,6 +210,11 @@ from wxdata.model_data.cmc.geps.geps import geps
210
210
  from wxdata.model_data.cmc.cansips.forecast.cansips_forecast import cansips_forecast
211
211
  from wxdata.model_data.cmc.cansips.hindcast.cansips_hindcast import cansips_hindcast
212
212
 
213
+ ##################
214
+ # Recast Systems #
215
+ ##################
216
+ # - WOOF-NAM
217
+ from wxdata.model_data.recast_systems.woof_nam.woof_nam import woof_nam
213
218
 
214
219
 
215
220
  """
@@ -347,6 +352,9 @@ import wxdata.post_processors.cmc_post_processing as cmc_post_processing
347
352
  # Real-Time Mesoscale Analysis (RTMA)
348
353
  from wxdata.post_processors.rtma_post_processing import process_rtma_data
349
354
 
355
+ # WOOF-NAM
356
+ from wxdata.post_processors.woof_nam_post_processing import woof_nam_post_processing
357
+
350
358
 
351
359
  """
352
360
  ****************************************************************************************************************
@@ -412,20 +412,20 @@ def aigefs():
412
412
  @_click.option(
413
413
  '--levels',
414
414
  '-l',
415
- default=[1000,
416
- 925,
417
- 850,
418
- 700,
419
- 600,
420
- 500,
421
- 400,
422
- 300,
423
- 250,
424
- 150,
425
- 100,
426
- 50],
415
+ default=['1000',
416
+ '925',
417
+ '850',
418
+ '700',
419
+ '600',
420
+ '500',
421
+ '400',
422
+ '300',
423
+ '250',
424
+ '150',
425
+ '100',
426
+ '50'],
427
427
  multiple=True,
428
- type=int,
428
+ type=str,
429
429
  help=("""Levels for pressure.
430
430
 
431
431
  Pressure (hPa)
@@ -365,20 +365,20 @@ def aigfs():
365
365
  @_click.option(
366
366
  '--levels',
367
367
  '-l',
368
- default=[1000,
369
- 925,
370
- 850,
371
- 700,
372
- 600,
373
- 500,
374
- 400,
375
- 300,
376
- 250,
377
- 150,
378
- 100,
379
- 50],
368
+ default=['1000',
369
+ '925',
370
+ '850',
371
+ '700',
372
+ '600',
373
+ '500',
374
+ '400',
375
+ '300',
376
+ '250',
377
+ '150',
378
+ '100',
379
+ '50'],
380
380
  multiple=True,
381
- type=int,
381
+ type=str,
382
382
  help=("""Levels for pressure.
383
383
 
384
384
  Pressure (hPa)
@@ -102,7 +102,7 @@ def get_cansips_data():
102
102
 
103
103
  -cdir = Custom Directory (Default=none).
104
104
 
105
- If the user wishes to build their own directory to hold the data files set -cd directory_branch_path.
105
+ If the user wishes to build their own directory to hold the data files set -cdir directory_branch_path.
106
106
 
107
107
  -cr = Clear Recycle Bin (Default=False).
108
108
 
@@ -386,8 +386,8 @@ def get_cansips_data():
386
386
  @_click.option(
387
387
  '--level',
388
388
  '-l',
389
- default=500,
390
- type=int,
389
+ default='500',
390
+ type=str,
391
391
  help=("""The pressure level in hPa or height above ground in meters.
392
392
 
393
393
  Default=500 hPa
@@ -106,7 +106,7 @@ def cfs_pressure():
106
106
 
107
107
  -cdir = Custom Directory (Default=None).
108
108
 
109
- If the user wishes to build their own directory to hold the data files set -cd directory_branch_path.
109
+ If the user wishes to build their own directory to hold the data files set -cdir directory_branch_path.
110
110
 
111
111
  -cr = Clear Recycle Bin (Default=False).
112
112
 
@@ -468,7 +468,7 @@ def cfs_pressure():
468
468
  300,
469
469
  250],
470
470
  multiple=True,
471
- type=int,
471
+ type=str,
472
472
  help=("""Levels for pressure, height, PVU etc.
473
473
 
474
474
  Pressure (hPa)
@@ -754,7 +754,7 @@ def cfs_pressure_fetch(final_forecast_hour,
754
754
  300,
755
755
  250],
756
756
  multiple=True,
757
- type=int,
757
+ type=str,
758
758
  help=("""Levels for pressure, height, PVU etc.
759
759
 
760
760
  Pressure (hPa)
@@ -941,7 +941,7 @@ def cfs_flux():
941
941
 
942
942
  -cdir = Custom Directory (Default=None).
943
943
 
944
- If the user wishes to build their own directory to hold the data files set -cd directory_branch_path.
944
+ If the user wishes to build their own directory to hold the data files set -cdir directory_branch_path.
945
945
 
946
946
  -cr = Clear Recycle Bin (Default=False).
947
947
 
@@ -1331,7 +1331,7 @@ def cfs_flux():
1331
1331
  '-l',
1332
1332
  default=[2],
1333
1333
  multiple=True,
1334
- type=int,
1334
+ type=str,
1335
1335
  help=("""Levels for pressure, height, PVU etc.
1336
1336
 
1337
1337
  Height (m above ground)
@@ -1605,9 +1605,9 @@ def cfs_flux_fetch(final_forecast_hour,
1605
1605
  @_click.option(
1606
1606
  '--levels',
1607
1607
  '-l',
1608
- default=[2],
1608
+ default=['2'],
1609
1609
  multiple=True,
1610
- type=int,
1610
+ type=str,
1611
1611
  help=("""Levels for level_type.
1612
1612
 
1613
1613
  Height (m above ground)
@@ -14,7 +14,8 @@ from tqdm.auto import tqdm
14
14
  def fetch_range(url,
15
15
  start,
16
16
  end,
17
- proxies):
17
+ proxies,
18
+ source='noaa'):
18
19
 
19
20
  """
20
21
  This function downloads the data corresponding to the bytes-range for each variable
@@ -34,15 +35,27 @@ def fetch_range(url,
34
35
  'https':'http://your-proxy-address:port'
35
36
  }
36
37
 
37
- Optional Arguments: None
38
+ Optional Arguments:
39
+
40
+ 1) source (String) - Default='noaa'. When downloading from recast_systems we must use User-Agent headers to avoid 403 response codes.
38
41
 
39
42
  Returns
40
43
  -------
41
44
 
42
45
  The data to be written to a GRIB file.
43
46
  """
44
-
45
- headers = {"Range": f"bytes={start}-{end}" if end else f"bytes={start}-"}
47
+ if source == 'noaa':
48
+ headers = {"Range": f"bytes={start}-{end}" if end else f"bytes={start}-"}
49
+ else:
50
+ headers = {
51
+ "User-Agent": (
52
+ "Mozilla/5.0 (Windows NT 10.0; Win64; x64) "
53
+ "AppleWebKit/537.36 (KHTML, like Gecko) "
54
+ "Chrome/141.0 Safari/537.36"
55
+ ),
56
+ "Referer": "https://woof-nam.recastsystems.com/",
57
+ "Range": f"bytes={start}-{end}" if end else f"bytes={start}-"
58
+ }
46
59
 
47
60
  if proxies == None:
48
61
  try:
@@ -147,7 +160,8 @@ def fetch_data(ranges,
147
160
  url,
148
161
  start,
149
162
  end,
150
- proxies):
163
+ proxies,
164
+ source='noaa'):
151
165
 
152
166
  """
153
167
  This function downloads the data corresponding to the bytes-range for each variable
@@ -167,7 +181,9 @@ def fetch_data(ranges,
167
181
  'https':'http://your-proxy-address:port'
168
182
  }
169
183
 
170
- Optional Arguments: None
184
+ Optional Arguments:
185
+
186
+ 1) source (String) - Default='noaa'. When downloading from recast_systems we must use User-Agent headers to avoid 403 response codes.
171
187
 
172
188
  Returns
173
189
  -------
@@ -182,7 +198,8 @@ def fetch_data(ranges,
182
198
  url,
183
199
  start,
184
200
  end,
185
- proxies
201
+ proxies,
202
+ source=source
186
203
  )
187
204
  except Exception as e:
188
205
  for i in range(0, 10, 1):
@@ -194,7 +211,8 @@ def fetch_data(ranges,
194
211
  url,
195
212
  start,
196
213
  end,
197
- proxies
214
+ proxies,
215
+ source=source
198
216
  )
199
217
  break
200
218
  except Exception as e:
@@ -214,7 +232,8 @@ def download_grib_data_by_byte_range(ranges,
214
232
  grib_url,
215
233
  start,
216
234
  end,
217
- proxies):
235
+ proxies,
236
+ source):
218
237
  """
219
238
  results: dict[(var, level)] = bytes
220
239
  Writes all GRIB messages to a single file with polished progress bars.
@@ -245,7 +264,9 @@ def download_grib_data_by_byte_range(ranges,
245
264
  'https':'http://your-proxy-address:port'
246
265
  }
247
266
 
248
- Optional Arguments: None
267
+ Optional Arguments:
268
+
269
+ 1) source (String) - Default='noaa'. When downloading from recast_systems we must use User-Agent headers to avoid 403 response codes.
249
270
 
250
271
  Returns
251
272
  -------
@@ -257,7 +278,8 @@ def download_grib_data_by_byte_range(ranges,
257
278
  grib_url,
258
279
  start,
259
280
  end,
260
- proxies)
281
+ proxies,
282
+ source=source)
261
283
 
262
284
  ordered = sorted(results.items(), key=lambda x: (x[0][0], x[0][1]))
263
285
 
@@ -585,7 +585,9 @@ def byte_range_request(grib_url,
585
585
  proxies=None,
586
586
  chunk_size=1024,
587
587
  notifications='on',
588
- clear_recycle_bin=False):
588
+ clear_recycle_bin=False,
589
+ source='noaa',
590
+ model='gfs0p25'):
589
591
 
590
592
  """
591
593
  This client downloads GRIB data for a specific variable that is defined by the range in bytes in that GRIB file.
@@ -649,6 +651,11 @@ def byte_range_request(grib_url,
649
651
 
650
652
  4) clear_recycle_bin (Boolean) - Default=False. When set to True, the contents in your recycle/trash bin
651
653
  will be deleted with each run of the program you are calling WxData. This setting is to help preserve memory on the machine.
654
+
655
+ 5) source (String) - Default='noaa'. When downloading from recast_systems we must use User-Agent headers to avoid 403 response codes.
656
+
657
+ 6) model (String) - Default='gfs0p25'. The weather forecast model. This is to distinguish from the WOOF-NAM to handle the
658
+ WOOF-NAM index file.
652
659
 
653
660
  Returns
654
661
  -------
@@ -669,39 +676,80 @@ def byte_range_request(grib_url,
669
676
 
670
677
  variables = _key_list(variables)
671
678
 
679
+ headers = {
680
+ "User-Agent": (
681
+ "Mozilla/5.0 (Windows NT 10.0; Win64; x64) "
682
+ "AppleWebKit/537.36 (KHTML, like Gecko) "
683
+ "Chrome/141.0 Safari/537.36"
684
+ ),
685
+ "Referer": "https://woof-nam.recastsystems.com/"
686
+ }
687
+
672
688
  try:
673
-
674
- if proxies == None:
675
- try:
676
- idx_text = _requests.get(idx_url).text
677
- except Exception as e:
678
- for i in range(0, 10, 1):
679
- print(f"Client lost connection to server - Waiting 30 seconds and trying again.")
680
- _time.sleep(30)
681
- try:
682
- idx_text = _requests.get(idx_url).text
683
- break
684
- except Exception as e:
685
- i = i
686
- if i >= 9:
687
- print(f"Client cannot establish connection to server - System Exit.")
688
- _sys.exit(1)
689
-
689
+ if source == 'noaa':
690
+ if proxies == None:
691
+ try:
692
+ idx_text = _requests.get(idx_url).text
693
+ except Exception as e:
694
+ for i in range(0, 10, 1):
695
+ print(f"Client lost connection to server - Waiting 30 seconds and trying again.")
696
+ _time.sleep(30)
697
+ try:
698
+ idx_text = _requests.get(idx_url).text
699
+ break
700
+ except Exception as e:
701
+ i = i
702
+ if i >= 9:
703
+ print(f"Client cannot establish connection to server - System Exit.")
704
+ _sys.exit(1)
705
+
706
+ else:
707
+ try:
708
+ idx_text = _requests.get(idx_url, proxies=proxies).text
709
+ except Exception as e:
710
+ for i in range(0, 10, 1):
711
+ print(f"Client lost connection to server - Waiting 30 seconds and trying again.")
712
+ _time.sleep(30)
713
+ try:
714
+ idx_text = _requests.get(idx_url, proxies=proxies).text
715
+ break
716
+ except Exception as e:
717
+ i = i
718
+ if i >= 9:
719
+ print(f"Client cannot establish connection to server - System Exit.")
720
+ _sys.exit(1)
690
721
  else:
691
- try:
692
- idx_text = _requests.get(idx_url, proxies=proxies).text
693
- except Exception as e:
694
- for i in range(0, 10, 1):
695
- print(f"Client lost connection to server - Waiting 30 seconds and trying again.")
696
- _time.sleep(30)
697
- try:
698
- idx_text = _requests.get(idx_url, proxies=proxies).text
699
- break
700
- except Exception as e:
701
- i = i
702
- if i >= 9:
703
- print(f"Client cannot establish connection to server - System Exit.")
704
- _sys.exit(1)
722
+ if proxies == None:
723
+ try:
724
+ idx_text = _requests.get(idx_url, headers=headers).text
725
+ except Exception as e:
726
+ for i in range(0, 10, 1):
727
+ print(f"Client lost connection to server - Waiting 30 seconds and trying again.")
728
+ _time.sleep(30)
729
+ try:
730
+ idx_text = _requests.get(idx_url, headers=headers).text
731
+ break
732
+ except Exception as e:
733
+ i = i
734
+ if i >= 9:
735
+ print(f"Client cannot establish connection to server - System Exit.")
736
+ _sys.exit(1)
737
+
738
+ else:
739
+ try:
740
+ idx_text = _requests.get(idx_url, proxies=proxies, headers=headers).text
741
+ except Exception as e:
742
+ for i in range(0, 10, 1):
743
+ print(f"Client lost connection to server - Waiting 30 seconds and trying again.")
744
+ _time.sleep(30)
745
+ try:
746
+ idx_text = _requests.get(idx_url, proxies=proxies, headers=headers).text
747
+ break
748
+ except Exception as e:
749
+ i = i
750
+ if i >= 9:
751
+ print(f"Client cannot establish connection to server - System Exit.")
752
+ _sys.exit(1)
705
753
 
706
754
  records = []
707
755
  for line in idx_text.strip().splitlines():
@@ -724,7 +772,8 @@ def byte_range_request(grib_url,
724
772
  })
725
773
 
726
774
  req_levels, levels = _get_level_expression(levels,
727
- level_type)
775
+ level_type,
776
+ model=model)
728
777
 
729
778
  if levels is not None:
730
779
  reqs = list(_itertools.product(variables, req_levels))
@@ -762,7 +811,8 @@ def byte_range_request(grib_url,
762
811
  grib_url,
763
812
  start,
764
813
  end,
765
- proxies)
814
+ proxies,
815
+ source=source)
766
816
 
767
817
  if notifications == 'on':
768
818
  print(f"{filename} saved to {path}")
@@ -771,38 +821,70 @@ def byte_range_request(grib_url,
771
821
  for i in range(0, 10, 1):
772
822
  _time.sleep(30)
773
823
  try:
774
-
775
- if proxies == None:
776
- try:
777
- idx_text = _requests.get(idx_url).text
778
- except Exception as e:
779
- for i in range(0, 10, 1):
780
- print(f"Client lost connection to server - Waiting 30 seconds and trying again.")
781
- _time.sleep(30)
782
- try:
783
- idx_text = _requests.get(idx_url).text
784
- break
785
- except Exception as e:
786
- i = i
787
- if i >= 9:
788
- print(f"Client cannot establish connection to server - System Exit.")
789
- _sys.exit(1)
790
-
824
+ if source == 'noaa':
825
+ if proxies == None:
826
+ try:
827
+ idx_text = _requests.get(idx_url).text
828
+ except Exception as e:
829
+ for i in range(0, 10, 1):
830
+ print(f"Client lost connection to server - Waiting 30 seconds and trying again.")
831
+ _time.sleep(30)
832
+ try:
833
+ idx_text = _requests.get(idx_url).text
834
+ break
835
+ except Exception as e:
836
+ i = i
837
+ if i >= 9:
838
+ print(f"Client cannot establish connection to server - System Exit.")
839
+ _sys.exit(1)
840
+
841
+ else:
842
+ try:
843
+ idx_text = _requests.get(idx_url, proxies=proxies).text
844
+ except Exception as e:
845
+ for i in range(0, 10, 1):
846
+ print(f"Client lost connection to server - Waiting 30 seconds and trying again.")
847
+ _time.sleep(30)
848
+ try:
849
+ idx_text = _requests.get(idx_url, proxies=proxies).text
850
+ break
851
+ except Exception as e:
852
+ i = i
853
+ if i >= 9:
854
+ print(f"Client cannot establish connection to server - System Exit.")
855
+ _sys.exit(1)
791
856
  else:
792
- try:
793
- idx_text = _requests.get(idx_url, proxies=proxies).text
794
- except Exception as e:
795
- for i in range(0, 10, 1):
796
- print(f"Client lost connection to server - Waiting 30 seconds and trying again.")
797
- _time.sleep(30)
798
- try:
799
- idx_text = _requests.get(idx_url, proxies=proxies).text
800
- break
801
- except Exception as e:
802
- i = i
803
- if i >= 9:
804
- print(f"Client cannot establish connection to server - System Exit.")
805
- _sys.exit(1)
857
+ if proxies == None:
858
+ try:
859
+ idx_text = _requests.get(idx_url, headers=headers).text
860
+ except Exception as e:
861
+ for i in range(0, 10, 1):
862
+ print(f"Client lost connection to server - Waiting 30 seconds and trying again.")
863
+ _time.sleep(30)
864
+ try:
865
+ idx_text = _requests.get(idx_url, headers=headers).text
866
+ break
867
+ except Exception as e:
868
+ i = i
869
+ if i >= 9:
870
+ print(f"Client cannot establish connection to server - System Exit.")
871
+ _sys.exit(1)
872
+
873
+ else:
874
+ try:
875
+ idx_text = _requests.get(idx_url, proxies=proxies, headers=headers).text
876
+ except Exception as e:
877
+ for i in range(0, 10, 1):
878
+ print(f"Client lost connection to server - Waiting 30 seconds and trying again.")
879
+ _time.sleep(30)
880
+ try:
881
+ idx_text = _requests.get(idx_url, proxies=proxies, headers=headers).text
882
+ break
883
+ except Exception as e:
884
+ i = i
885
+ if i >= 9:
886
+ print(f"Client cannot establish connection to server - System Exit.")
887
+ _sys.exit(1)
806
888
 
807
889
  records = []
808
890
  for line in idx_text.strip().splitlines():
@@ -863,7 +945,8 @@ def byte_range_request(grib_url,
863
945
  grib_url,
864
946
  start,
865
947
  end,
866
- proxies)
948
+ proxies,
949
+ source=source)
867
950
 
868
951
  if notifications == 'on':
869
952
  print(f"{filename} saved to {path}")
@@ -894,7 +977,8 @@ def byte_range_request(grib_url,
894
977
  proxies=proxies,
895
978
  chunk_size=chunk_size,
896
979
  notifications=notifications,
897
- clear_recycle_bin=clear_recycle_bin)
980
+ clear_recycle_bin=clear_recycle_bin,
981
+ source=source)
898
982
  break
899
983
  except Exception as e:
900
984
  i = i