Package: bomshell
bomshellis used to retrieve weather data from theAustralian Bureau of Meteorology’s (BOM)public ftpsite, and display the result in the shell, where it belongs, as God intended it.
Not this silly web clownsuit bullshit the kids are all agog about.bomshellretrieves the spatial data from the public ftp site and packs it into a local database. Tools are provided to
build and maintain the local database. Queries can be made of the database and the spatial database files. As the tool matures
the spatial database will be used to determine the product ID’s of reports the user is interested in and those specific products
downloaded from the BOM’s public ftp site.InstallationpipinstallbomshellSample UsageAllbomshellcommand line options are avilable from the--helpoption$bomshellUsage:bomshell[OPTIONS]COMMAND[ARGS]...RetrieveweatherdatafromtheAustralianBureauofMeteorologyOptions:--versionShowtheversionandexit.-v,--verboseLevelofverbosityoflogs-c,--cache-pathPATHBOMdatacachepath,Default:/home/thys/.cache/bomshell--helpShowthismessageandexit.Commands:spatialSpatialdatabasemanagementSub-commands’ options are also available using--helpon the subcommand.In order to know what the BOM calls a specific product you need to figure out
what the product ID is. This is available from the spatial databases.bomshelldownloads the current spatial data and packs it into a convenient local database
that can be queried for, amongst other things, product ID’s.The local spatial database can be synced, or re-build as necessary.$ bomshell spatial
Usage: bomshell spatial [OPTIONS] COMMAND [ARGS]...

  Spatial database management

Options:
  -o, --overwrite / --no-overwrite
                                  Overwrite existing spatial data, default is:
                                  False
  --help                          Show this message and exit.

Commands:
  build      Build the local spatial database
  csvdump    Dump spatial data to csv
  fetch      Fetch spatial data
  sync       Sync the local spatial data, overwriting...
  tabledump  Dump spatial data to tableAll spatial data can be printed to nicely formatted tables. Many output formats are available.$ bomshell spatial tabledump --help
Usage: bomshell spatial tabledump [OPTIONS]

  Dump spatial data to table

Options:
  -s, --spatial-type [cyclone_areas|fire_districts|forecast_districts|high_sea_areas|marine_zones|metros|ocean_wind_warning|point_places|radar_coverage|radar_location|rainfall_districts]
                                  choose a spatial type
  -f, --table-format [fancy_grid|grid|html|jira|latex|latex_booktabs|mediawiki|moinmoin|orgtbl|pipe|plain|psql|rst|simple|textile|tsv]
                                  choose a table type
  --help                          Show this message and exit.Examples$ bomshell spatial tabledump --spatial-type radar_coverage --table-format rstResults in the following table:NameRADAR_IDLONGITUDELATITUDEFULL_NAMEIDRNN0NAMEIDRNN1NAMESTATETYPEGROUPSTATUSARCHIVESouth Doodlakine58117.953-31.777South DoodlakineSthDoodSthDoodlakineWADopplerYesPublicSthDoodWeipa18141.925-12.666WeipaWeipaWeipaQLDDopplerYesPublicWeipaSydney71151.209-33.7008Sydney (Terrey Hills)TerreyHillsTerreyHillsNSWDopplerYesPublicT_HillsAdelaide64138.469-34.6169Adelaide (Buckland Park)BuckPkBucklandPkSADopplerYesPublicBuckPkAlice Springs25133.888-23.796Alice SpringsAliceSpAliceSpringsNTPart-time windfindingYesPublicAliceSpBrisbane66153.24-27.7178Brisbane (Mt Stapylton)MtStaplMtStapyltonQLDDopplerYesPublicMtStaplBroome17122.235-17.9483BroomeBroomeBroomeWAPart-time windfindingYesPublicBroomeCairns19145.683-16.817CairnsCairnsCairnsQLDDopplerYesPublicCairnsCarnarvon5113.669-24.8878CarnarvonCarnvnCarnarvonWADedicated weather watchYesPublicCarnvnCeduna33133.696-32.1298CedunaCedunaCedunaSADedicated weather watchYesPublicCedunaDampier15116.687-20.65DampierDampierDampierWADedicated weather watchYesPublicDampierDarwin63130.925-12.457Darwin (Berrimah)BerrimaDarwinNTDopplerYesPublicBerrimaEsperance32121.892-33.8303EsperanceEsprnceEsperanceWAPart-time windfindingYesPublicEsprnceMt Gambier14140.775-37.7477Mount GambierGambierMtGambierSADedicated weather watchYesPublicGambierGeraldton6114.697-28.8044GeraldtonGerltonGeraldtonWAPart-time windfindingYesPublicGerltonGiles44128.3-25.03GilesGilesGilesWAPart-time windfindingYesPublicGilesGladstone23151.263-23.855GladstoneGladstnGladstoneQLDDedicated weather watchYesPublicGladstnGove9136.823-12.275GoveGoveGoveNTPart-time windfindingYesPublicGoveGrafton28152.951-29.622GraftonGraftonGraftonNSWDedicated weather watchYesPublicGraftonMornington Is36139.167-16.666Mornington Island (Gulf of Carpentaria)GlfCarpGulfCarpNTDedicated weather watchYesPublicGlfCarpHalls Creek39127.663-18.231Halls CreekHallsCkHallsCreekWAPart-time windfindingYesPublicHallsCkPort Hedland16118.632-20.3719Port HedlandPtHedlandPtHedlandWADedicated weather watchYesPublicP_HedldHobart Ap37147.501-42.8374Hobart AirportHobartAPHobartAPTASPart-time windfindingYesReg_usersHobrtAPGympie8152.577-25.9574Gympie (Mount Kanigan)KanignGympieQLDDopplerYesPublicKanignKurnell54151.226-34.0148Sydney (Kurnell)KurnellKurnellNSWDopplerNoReg_usersKurnellMelbourne2144.755-37.8552Melbourne (Laverton)MelbMelbourneVICDopplerYesPublicMelbLearmonth29113.999-22.103LearmonthLrmonthLearmonthWADedicated weather watchYesPublicLrmonthNewcastle4152.025-32.73NewcastleLemnTreNewcasleNSWDopplerYesPublicLemnTreWollongong3150.875-34.2625Wollongong (Appin)WollgngWollgngNSWDopplerYesPublicWollgngLongreach56144.29-23.43LongreachLongrchLongreachQLDPart-time windfindingYesPublicLongrchMackay22149.217-21.117MackayMackayMackayQLDDedicated weather watchYesPublicMackayMarburg50152.539-27.608Brisbane (Marburg)MarburgBrisbaneQLDDedicated weather watchYesPublicMarburgMildura30142.086-34.235MilduraMilduraMilduraVICDedicated weather watchYesPublicMilduraMoree53149.85-29.5MoreeMoreeMoreeNSWDedicated weather watchYesPublicMoreePerth Ap26115.976-31.9273Perth AirportPrthAPPerthAPWAPart-time windfindingNoReg_usersPrthAPSellicks Hill46138.5-35.33Adelaide (Sellicks Hill)SellickAdelaideSADedicated weather watchYesPublicSellickKatherine42132.446-14.513Katherine (Tindal)TindalTindalNTDedicated weather watchYesPublicTindalWagga Wagga55147.467-35.167Wagga WaggaWaggaWaggaNSWPart-time windfindingYesPublicWaggaWillis Is41149.965-16.2874Willis IslandWillisWillisIsQLDPart-time windfindingYesPublicWillisWoomera27136.803-31.157WoomeraWoomeraWoomeraSADedicated weather watchYesPublicWoomeraNW Tasmania52145.579-41.181NW Tasmania (West Takone)WTakoneNW-TasTASDedicated weather watchYesPublicWTakoneWyndham7128.119-15.453WyndhamWyndhamWyndhamWADedicated weather watchYesPublicWyndhamYarrawonga49146.023-36.0297YarrawongaNE-VicYarrawongaVICDopplerYesPublicNE_VicCanberra40149.512-35.6614Canberra (Captains Flat)CapFlatCaptFlatNSWDopplerYesPublicCapFlatNorfolk Is62167.933-29.033Norfolk IslandNorfolkNorfolkIsNSWPart-time windfindingYesPublicNorfolkBowen24148.075-19.886BowenBowenBowenQLDDedicated weather watchYesPublicBowenWarrego67147.349-26.44WarregoWarregoWarregoQLDDedicated weather watchYesPublicWarregoBairnsdale68147.576-37.8876BairnsdaleBnsdaleBairnsdaleVICDedicated weather watchYesPublicBnsdaleDarwin Ap10130.892-12.4247Darwin AirportDarwinDarwinAPNTPart-time windfindingNoReg_usersDarwinMelbourne Ap51144.831-37.6656Melbourne AirportMelbnAPTullaAPVICPart-time windfindingNoReg_usersMelbnAPEmerald72148.239-23.5498EmeraldEmeraldEmeraldQLDDopplerYesPublicEmeraldPerth70115.867-32.3917Perth (Serpentine)SerptinSerpentineWADopplerYesPublicSerptinNamoi69150.192-31.0236Namoi (Blackjack Mountain)NamoiNamoiNSWDopplerYesPublicNamoiTownsville73146.551-19.4198Townsville (Hervey Range)HrvyRngHrvyRngQLDDopplerYesPublicHrvyRngHobart76147.806-43.1122Hobart (Mt Koonya)MtKoonyaMtKoonyaTASDopplerYesPublicKoonyaAlbany31117.816-34.9418AlbanyAlbanyAlbanyWAPart-time windfindingYesPublicAlbanyMt Isa75139.555-20.7112Mount IsaMnt_IsaMnt_IsaQLDDopplerYesPublicMnt_IsaWarruwi77133.38-11.6485WarruwiArafuraArafuraNTDopplerYesPublicArafuraKalgoorlie48121.455-30.7834KalgoorlieK/grlieKalgoorlieWADopplerYesPublicK/grlieNewdegate38119.009-33.097NewdegateNdegateNewdegateWADopplerYesPublicNdegateThe spatial data type needs to specified when doing queries on the database.bomshell spatial tabledump --spatial-type forecast_districts --table-format fancy_grid

╒═══════════╤═══════════╤════════════════════════════════════════╤══════════════╤══════════════════════════╕
│ AAC       │   DIST_NO │ DIST_NAME                              │ STATE_CODE   │ GROUP_NAME               │
╞═══════════╪═══════════╪════════════════════════════════════════╪══════════════╪══════════════════════════╡
│ NSW_PW001 │         1 │ Northern Rivers                        │ NSW          │                          │
├───────────┼───────────┼────────────────────────────────────────┼──────────────┼──────────────────────────┤
│ NSW_PW002 │         2 │ Mid North Coast                        │ NSW          │                          │
├───────────┼───────────┼────────────────────────────────────────┼──────────────┼──────────────────────────┤
│ NSW_PW003 │         3 │ Hunter                                 │ NSW          │                          │
├───────────┼───────────┼────────────────────────────────────────┼──────────────┼──────────────────────────┤
│ NT_PW009  │         9 │ Tanami                                 │ NT           │                          │
├───────────┼───────────┼────────────────────────────────────────┼──────────────┼──────────────────────────┤
│ QLD_PW001 │         1 │ Peninsula                              │ QLD          │ Northern Districts       │
├───────────┼───────────┼────────────────────────────────────────┼──────────────┼──────────────────────────┤
│ QLD_PW002 │         2 │ Gulf Country                           │ QLD          │ Northern Districts       │
├───────────┼───────────┼────────────────────────────────────────┼──────────────┼──────────────────────────┤
│ QLD_PW003 │         3 │ Northern Goldfields and Upper Flinders │ QLD          │ Northern Districts       │
├───────────┼───────────┼────────────────────────────────────────┼──────────────┼──────────────────────────┤
│ QLD_PW004 │         4 │ North Tropical Coast and Tablelands    │ QLD          │ Northern Districts       │
├───────────┼───────────┼────────────────────────────────────────┼──────────────┼──────────────────────────┤
│ QLD_PW005 │         5 │ Herbert and Lower Burdekin             │ QLD          │ Northern Districts       │
├───────────┼───────────┼────────────────────────────────────────┼──────────────┼──────────────────────────┤
│ QLD_PW006 │         6 │ Central Coast and Whitsundays          │ QLD          │ Central Districts        │
├───────────┼───────────┼────────────────────────────────────────┼──────────────┼──────────────────────────┤
│ QLD_PW007 │         7 │ Capricornia                            │ QLD          │ Central Districts        │
├───────────┼───────────┼────────────────────────────────────────┼──────────────┼──────────────────────────┤
│ QLD_PW008 │         8 │ Central Highlands and Coalfields       │ QLD          │ Central Districts        │
├───────────┼───────────┼────────────────────────────────────────┼──────────────┼──────────────────────────┤
│ QLD_PW009 │         9 │ Central West                           │ QLD          │ Western Districts        │
├───────────┼───────────┼────────────────────────────────────────┼──────────────┼──────────────────────────┤
│ QLD_PW010 │        10 │ North West                             │ QLD          │ Western Districts        │
├───────────┼───────────┼────────────────────────────────────────┼──────────────┼──────────────────────────┤
│ QLD_PW011 │        11 │ Channel Country                        │ QLD          │ Western Districts        │
├───────────┼───────────┼────────────────────────────────────────┼──────────────┼──────────────────────────┤
│ QLD_PW012 │        12 │ Maranoa and Warrego                    │ QLD          │ Western Districts        │
├───────────┼───────────┼────────────────────────────────────────┼──────────────┼──────────────────────────┤
│ QLD_PW013 │        13 │ Darling Downs and Granite Belt         │ QLD          │ Southeast Districts      │
├───────────┼───────────┼────────────────────────────────────────┼──────────────┼──────────────────────────┤
│ QLD_PW014 │        14 │ Wide Bay and Burnett                   │ QLD          │ Southeast Districts      │
├───────────┼───────────┼────────────────────────────────────────┼──────────────┼──────────────────────────┤
│ QLD_PW015 │        15 │ Southeast Coast                        │ QLD          │ Southeast Districts      │
├───────────┼───────────┼────────────────────────────────────────┼──────────────┼──────────────────────────┤
│ SA_PW001  │         1 │ Adelaide Metropolitan                  │ SA           │                          │
├───────────┼───────────┼────────────────────────────────────────┼──────────────┼──────────────────────────┤
│ SA_PW002  │         2 │ Yorke Peninsula                        │ SA           │                          │
├───────────┼───────────┼────────────────────────────────────────┼──────────────┼──────────────────────────┤
│ SA_PW003  │         3 │ Kangaroo Island                        │ SA           │                          │
├───────────┼───────────┼────────────────────────────────────────┼──────────────┼──────────────────────────┤
│ SA_PW004  │         4 │ Upper South East                       │ SA           │                          │
├───────────┼───────────┼────────────────────────────────────────┼──────────────┼──────────────────────────┤
│ VIC_PW001 │         1 │ Mallee                                 │ VIC          │                          │
├───────────┼───────────┼────────────────────────────────────────┼──────────────┼──────────────────────────┤
│ VIC_PW002 │         2 │ Wimmera                                │ VIC          │                          │
├───────────┼───────────┼────────────────────────────────────────┼──────────────┼──────────────────────────┤
│ VIC_PW003 │         3 │ Northern Country                       │ VIC          │                          │
├───────────┼───────────┼────────────────────────────────────────┼──────────────┼──────────────────────────┤
│ VIC_PW004 │         4 │ North East                             │ VIC          │                          │
├───────────┼───────────┼────────────────────────────────────────┼──────────────┼──────────────────────────┤
│ VIC_PW005 │         5 │ East Gippsland                         │ VIC          │                          │
├───────────┼───────────┼────────────────────────────────────────┼──────────────┼──────────────────────────┤
│ VIC_PW006 │         6 │ West and South Gippsland               │ VIC          │                          │
├───────────┼───────────┼────────────────────────────────────────┼──────────────┼──────────────────────────┤
│ VIC_PW007 │         7 │ Central                                │ VIC          │                          │
├───────────┼───────────┼────────────────────────────────────────┼──────────────┼──────────────────────────┤
│ VIC_PW008 │         8 │ North Central                          │ VIC          │                          │
├───────────┼───────────┼────────────────────────────────────────┼──────────────┼──────────────────────────┤
│ VIC_PW009 │         9 │ South West                             │ VIC          │                          │
├───────────┼───────────┼────────────────────────────────────────┼──────────────┼──────────────────────────┤
│ WA_PW001  │         1 │ Kimberley                              │ WA           │ Mining and Pastoral      │
├───────────┼───────────┼────────────────────────────────────────┼──────────────┼──────────────────────────┤
│ WA_PW002  │         2 │ Pilbara                                │ WA           │ Mining and Pastoral      │
├───────────┼───────────┼────────────────────────────────────────┼──────────────┼──────────────────────────┤
│ WA_PW003  │         3 │ Gascoyne                               │ WA           │ Mining and Pastoral      │
├───────────┼───────────┼────────────────────────────────────────┼──────────────┼──────────────────────────┤
│ WA_PW004  │         4 │ Goldfields                             │ WA           │ Mining and Pastoral      │
├───────────┼───────────┼────────────────────────────────────────┼──────────────┼──────────────────────────┤
│ WA_PW005  │         5 │ Eucla                                  │ WA           │ Mining and Pastoral      │
├───────────┼───────────┼────────────────────────────────────────┼──────────────┼──────────────────────────┤
│ WA_PW006  │         6 │ North Interior                         │ WA           │ Mining and Pastoral      │
├───────────┼───────────┼────────────────────────────────────────┼──────────────┼──────────────────────────┤
│ WA_PW007  │         7 │ South Interior                         │ WA           │ Mining and Pastoral      │
├───────────┼───────────┼────────────────────────────────────────┼──────────────┼──────────────────────────┤
│ WA_PW008  │         8 │ Central West                           │ WA           │ South West Land Division │
├───────────┼───────────┼────────────────────────────────────────┼──────────────┼──────────────────────────┤
│ WA_PW009  │         9 │ Lower West                             │ WA           │ South West Land Division │
├───────────┼───────────┼────────────────────────────────────────┼──────────────┼──────────────────────────┤
│ WA_PW010  │        10 │ South West                             │ WA           │ South West Land Division │
├───────────┼───────────┼────────────────────────────────────────┼──────────────┼──────────────────────────┤
│ WA_PW011  │        11 │ South Coastal                          │ WA           │ South West Land Division │
├───────────┼───────────┼────────────────────────────────────────┼──────────────┼──────────────────────────┤
│ WA_PW012  │        12 │ South East Coastal                     │ WA           │ South West Land Division │
├───────────┼───────────┼────────────────────────────────────────┼──────────────┼──────────────────────────┤
│ WA_PW013  │        13 │ Great Southern                         │ WA           │ South West Land Division │
├───────────┼───────────┼────────────────────────────────────────┼──────────────┼──────────────────────────┤
│ WA_PW014  │        14 │ Central Wheat Belt                     │ WA           │ South West Land Division │
╘═══════════╧═══════════╧════════════════════════════════════════╧══════════════╧══════════════════════════╛VersioningCurrent version is 1.1.0Changelog0.1.0 (2017-04-22)First release on PyPI.