-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CDDIS #19
Comments
Went with the CDDIS instruction.
# Makes request of URL, stores response in variable r
r = requests.get(site, timeout=20)
# Opens a local file of same name as remote file for writing to
with open(file_topath, 'wb') as fd:
for chunk in r.iter_content(chunk_size=1000):
fd.write(chunk)
# Closes local file
fd.close() But now: import gnsspy as gp
stn = gp.read_obsFile('Ctwn-SB_obs_log_202111081430.obs')
then: orbit = gp.sp3_interp(stn.epoch, interval=stn.interval, sp3_product="gfz", clock_product="gfz")
With |
I eventually got this to execute successfully with: Subsequently its all been: Downloading: {any-file-here}.sp3.Z | Requested file {any-file-here}.sp3.Z cannot be found!
An exception has occurred, use %tb to see the full traceback.
Traceback (most recent call last):
File ~\miniconda3\envs\rt_ppp-env\lib\site-packages\urllib3\response.py:441 in _error_catcher
yield
File ~\miniconda3\envs\rt_ppp-env\lib\site-packages\urllib3\response.py:522 in read
data = self._fp.read(amt) if not fp_closed else b""
File ~\miniconda3\envs\rt_ppp-env\lib\http\client.py:459 in read
n = self.readinto(b)
File ~\miniconda3\envs\rt_ppp-env\lib\http\client.py:503 in readinto
n = self.fp.readinto(b)
File ~\miniconda3\envs\rt_ppp-env\lib\socket.py:669 in readinto
return self._sock.recv_into(b)
File ~\miniconda3\envs\rt_ppp-env\lib\ssl.py:1241 in recv_into
return self.read(nbytes, buffer)
File ~\miniconda3\envs\rt_ppp-env\lib\ssl.py:1099 in read
return self._sslobj.read(len, buffer)
ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File ~\miniconda3\envs\rt_ppp-env\lib\site-packages\requests\models.py:760 in generate
for chunk in self.raw.stream(chunk_size, decode_content=True):
File ~\miniconda3\envs\rt_ppp-env\lib\site-packages\urllib3\response.py:579 in stream
data = self.read(amt=amt, decode_content=decode_content)
File ~\miniconda3\envs\rt_ppp-env\lib\site-packages\urllib3\response.py:544 in read
raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
File ~\miniconda3\envs\rt_ppp-env\lib\contextlib.py:131 in __exit__
self.gen.throw(type, value, traceback)
File ~\miniconda3\envs\rt_ppp-env\lib\site-packages\urllib3\response.py:458 in _error_catcher
raise ProtocolError("Connection broken: %r" % e, e)
ProtocolError: ("Connection broken: ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None)", ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File ~\miniconda3\envs\rt_ppp-env\lib\site-packages\gnsspy\download.py:380 in get_sp3
r = requests.get(address, timeout=20)
File ~\miniconda3\envs\rt_ppp-env\lib\site-packages\requests\api.py:75 in get
return request('get', url, params=params, **kwargs)
File ~\miniconda3\envs\rt_ppp-env\lib\site-packages\requests\api.py:61 in request
return session.request(method=method, url=url, **kwargs)
File ~\miniconda3\envs\rt_ppp-env\lib\site-packages\requests\sessions.py:529 in request
resp = self.send(prep, **send_kwargs)
File ~\miniconda3\envs\rt_ppp-env\lib\site-packages\requests\sessions.py:667 in send
history = [resp for resp in gen]
File ~\miniconda3\envs\rt_ppp-env\lib\site-packages\requests\sessions.py:667 in <listcomp>
history = [resp for resp in gen]
File ~\miniconda3\envs\rt_ppp-env\lib\site-packages\requests\sessions.py:237 in resolve_redirects
resp = self.send(
File ~\miniconda3\envs\rt_ppp-env\lib\site-packages\requests\sessions.py:687 in send
r.content
File ~\miniconda3\envs\rt_ppp-env\lib\site-packages\requests\models.py:838 in content
self._content = b''.join(self.iter_content(CONTENT_CHUNK_SIZE)) or b''
File ~\miniconda3\envs\rt_ppp-env\lib\site-packages\requests\models.py:763 in generate
raise ChunkedEncodingError(e)
ChunkedEncodingError: ("Connection broken: ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None)", ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))
During handling of the above exception, another exception occurred:
SystemExit
C:\Users\miniconda3\envs\rt_ppp-env\lib\site-packages\IPython\core\interactiveshell.py:3405: UserWarning: To exit: use 'exit', 'quit', or Ctrl-D.
warn("To exit: use 'exit', 'quit', or Ctrl-D.", stacklevel=1) I haven't been able to access CDDIS anymore. |
How did u get the skyplots, for me it didn't work |
I went a completely different route. Harvest 'Dilution of Precision' and 'Azimuth' from rtklib and then generate a skyplot. |
I think you can generate directly a skyplot using rtklib. |
I've raised this question on StackExchange
CDDIS now requires authentication.
I am attempting to hack the download.py with utility functions courtesy pyTMD.
Then we can change the GNSSpy function so:
When I follow the instructions and execute:
./log_rinex/Ctwn-SB_obs_log_202111081430.obs exist in working directory | Reading... Observation file ./log_rinex/Ctwn-SB_obs_log_202111081430.obs is read in 6.46 seconds.
and:
I get:
The
.sp3.7
has a file size of 13KB. It should be 96KB.The text was updated successfully, but these errors were encountered: