Example of reading pup radar data official website:
Run the sample code
from cinrad.io import PUP
pup_file='Z_RADR_I_Z9591_20210901004700_P_DOR_SA_V_10_230_60.591.bin'
f = PUP(path+pup_file)
data = f.get_data()
Error 1 connection timeout: (‘connection aborted.’, timeouterror (10060, ‘because the connection party is not correct after a period of time
Solution:
Add code to the program of the path to extend the connection time threshold timeout = 100, as shown in the figure
Error reporting matrix out of range
HTTPSConnectionPool(host=‘github.com’, port=443): Max retries exceeded with url: /Unidata/MetPy/raw/v1.0.1/staticdata/airport-codes.csv (Caused by ConnectTimeoutError(< urllib3.connection.HTTPSConnection object at 0x000001EA124FA370>, ‘ Connection to github.com timed out. (connect timeout=3)’))
resolvent:
Still in the program just now, add code
s = requests.session()
s.keep_alive = False
# InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised.
# HTTPSConnectionPool(host='api.github.com', port=443): Max retries exceeded with url
requests.packages.urllib3.disable_warnings()
response = requests.get(url, **kwargs,timeout=100,verify=False,) ####
Error report: three library package import error
Solution:
Change relative path to absolute path
Run successfully
Read More:
- Extracting Data from XML (Using Python to Access Web Data)
- Python: How to parses HTML, extracts data, and generates word documents
- [CHM] Python: How to Extract CHM Data
- Python: Panda scramble data
- [Solved] AttributeError: OperationJson instance has no attribute ‘data‘
- [leetcode] 295. Find Median from Data Stream Python
- [How to Fix]pandas.errors.ParserError: Error tokenizing data
- [Solved] Backtrader_plotting Error: RuntimeError: Unexpected data type
- Python 3.X error: valueerror: data type must provide an itemsize
- [Solved] modulenotfounderror: no module named ‘torchtext.legacy.data.datasets_ utils‘
- Python: How to Reshape the data in Pandas DataFrame
- [Solved] Jupyter runs error: IOPub data rate exceeded
- [Solved] Unable to find “…\setuptools-40.8.0-py3.7.egg\EGG-INFO“ when adding binary and data files
- [Solved] YOLOv5 Model training error: TypeError: new(): invalid data type ‘str’
- Pandas read_csv pandas.errors.ParserError: Error tokenizing data
- Python opens the table and appears pandas.errors.ParserError: Error tokenizing data. C error:
- [Solved] ansible Command Error: Error -5 while decompressing data: incomplete or truncated stream
- How to Fix pandas.errors.ParserError Error tokenizing data C error Buffer overflow caught
- Pandas Read csv Error tokenizing data. C error: Expected 18 fields in line 173315, saw 20