question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to open file (ValueError: could not broadcast input array...)

See original GitHub issue

I am currently working with the Rinex files from the esa, but unfortunately I cannot load any of the Rinex version 3 files in the daily directory. Thank you very much for your help!

File: ftp://gssc.esa.int/gnss/data/daily/2019/brdc/BRDC00IGS_R_20191330000_01D_MN.rnx.gz

Click to view exception
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
 in 
     29 test = 'data/gnss/data/daily/2019/brdc/BRDC00IGS_R_20191330000_01D_MN.rnx.gz'
     30 
---> 31 obs = gr.load(test, fast=False)
     32 
     33 

~/.local/lib/python3.7/site-packages/georinex/base.py in load(rinexfn, out, use, tlim, useindicators, meas, verbose, fast, interval)
     57 
     58     if info['rinextype'] == 'nav':
---> 59         return rinexnav(rinexfn, outfn, use=use, tlim=tlim)
     60     elif info['rinextype'] == 'obs':
     61         return rinexobs(rinexfn, outfn, use=use, tlim=tlim,

~/.local/lib/python3.7/site-packages/georinex/base.py in rinexnav(fn, outfn, use, group, tlim)
    130         nav = rinexnav2(fn, tlim=tlim)
    131     elif int(info['version']) == 3:
--> 132         nav = rinexnav3(fn, use=use, tlim=tlim)
    133     else:
    134         raise LookupError(f'unknown RINEX  {info}  {fn}')

~/.local/lib/python3.7/site-packages/georinex/nav3.py in rinexnav3(fn, use, tlim)
    101         for j, i in enumerate(svi):
    102             darr[j, :] = np.genfromtxt(io.BytesIO(raws[i].encode('ascii')),
--> 103                                        delimiter=Lf)
    104 
    105 # %% discard duplicated times

ValueError: could not broadcast input array from shape (29) into shape (28)


Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
scivisioncommented, May 17, 2019

@padok thanks for letting us know. We have created GeoRinex v.1.10.1 to fix this issue of malformed entries in NAV3 files. Thanks again!

0reactions
padokcommented, May 22, 2019

Excuse me, I know the origin of the files, I had expressed it badly. I wanted to say that this is one of the most used sources and I have problems with many of these files.

I have to apologize, though. My problems originated from the list of times when you selected a satellite. The list also contains times for which there is no data in the Rinex file and therefore all values are nan, hence my confusion.

For example:

rinexfile = 'data/gnss/data/daily/2019/brdc/BRDC00IGS_R_20191330000_01D_MN.rnx.gz'

obs = gr.load(rinexfile, fast=False)

for time in obs.sel(sv='G02').time:
    print(time.values)

outputs for example

[...]
2019-05-13T03:00:00.000000000
[...]

but G02 2019 05 13 03 00 00 is not part of the rinex file.

the nearest time in that file would be the line G02 2019 05 13 04 00 00-2.118018455803E-04-9.208633855451E-12 0.000000000000E+00

I’m new to xarrays and I guess I just don’t use it right.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ValueError: could not broadcast input array from shape ...
In my case problem was in my data set, Basically i was need to pre process on my data before further processing, because...
Read more >
ValueError: could not broadcast input array from shape (1205 ...
I am trying to read edf file but getting an error as:-> ValueError: could not broadcast input array from shape (1205) into shape...
Read more >
Python Error ""ValueError: could not broadcast input array ...
Your data generator retrieves your labels as categorical and based on the error, I assume you have 4 classes.
Read more >
ValueError: could not broadcast input ... - CryoSPARC Discuss
Dear Cryosparc team. I have been using Cryosparc recently and i have encountered a problem during refinement with the below error
Read more >
could not broadcast input array from shape (70) into shape (1)
ValueError : could not broadcast input array from shape (70) into shape (1) means that there is an array shape mismatch in the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found