original_docstring: 
          Writes a json file which contains the latest state of the meteorological database
          :param jsonfile: output json file
          
docstring: Writes a json file which contains the latest state of the meteorological database
docstring_tokens: Writes a json file which contains the latest state of the meteorological database
code: def status(self, jsonfile):
          """
          Writes a json file which contains the latest state of the meteorological database
          :param jsonfile: output json file
          """
          import json
          import socket
          from datetime import datetime
  
          jsondata = {'metget': {}}
          jsondata['metget']['hwrf'] = self.hwrf_status()
          jsondata['metget']['gfs-ncep'] = self.generic_status("gfs_ncep", 384)
          jsondata['metget']['nam-ncep'] = self.generic_status("nam_ncep", 84)
          jsondata['metget']['nhc'] = {}
          jsondata['metget']['nhc']["forecast"], jsondata['metget']['nhc'][
              "best_track"] = self.nhc_status()
          jsondata['metget']['state'] = {
              'last_fetch': datetime.now().strftime("%Y-%m-%d %H:%M:%S"),
              'host': socket.gethostname()
          }
  
          with open(jsonfile, 'w') as statfile:
              json.dump(jsondata, statfile, indent=1)
code_tokens: def status ( self , jsonfile ) : import json import socket from datetime import datetime jsondata = { 'metget' : { } } jsondata [ 'metget' ] [ 'hwrf' ] = self . hwrf_status ( ) jsondata [ 'metget' ] [ 'gfs-ncep' ] = self . generic_status ( "gfs_ncep" , 384 ) jsondata [ 'metget' ] [ 'nam-ncep' ] = self . generic_status ( "nam_ncep" , 84 ) jsondata [ 'metget' ] [ 'nhc' ] = { } jsondata [ 'metget' ] [ 'nhc' ] [ "forecast" ] , jsondata [ 'metget' ] [ 'nhc' ] [ "best_track" ] = self . nhc_status ( ) jsondata [ 'metget' ] [ 'state' ] = { 'last_fetch' : datetime . now ( ) . strftime ( "%Y-%m-%d %H:%M:%S" ) , 'host' : socket . gethostname ( ) } with open ( jsonfile , 'w' ) as statfile : json . dump ( jsondata , statfile , indent = 1 )
short_docstring: Writes a json file which contains the latest state of the meteorological database
short_docstring_tokens: Writes a json file which contains the latest state of the meteorological database
comment: """
          Writes a json file which contains the latest state of the meteorological database
          :param jsonfile: output json file
          """