Skip to content

Commit

Permalink
removed some dead functions from highrate (allowing archive=all)
Browse files Browse the repository at this point in the history
  • Loading branch information
kristinemlarson committed Sep 11, 2024
1 parent 76c8f61 commit b7a625d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
10 changes: 6 additions & 4 deletions gnssrefl/karnak_libraries.py
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,8 @@ def rinex2_highrate(station, year, doy,archive,strip_snr):
strip_snr is boolean as to whether you want to strip out the non-SNR data
it can be slow with highrate data. it requires gfzrnx
this no longer allows the all archive ... which should have been stopped at rinex2snr_cl
Parameters
----------
station : string
Expand All @@ -693,15 +695,15 @@ def rinex2_highrate(station, year, doy,archive,strip_snr):
d = g.doy2ymd(year,doy);
month = d.month; day = d.day
rinexfile,rinexfiled = g.rinex_name(station, year, month, day)
if (archive == 'unavco') or (archive == 'all'):
if (archive == 'unavco') :
g.rinex_unavco_highrate(station, year, month, day)
# file does not exist, so keep looking
if not os.path.isfile(rinexfile):
if (archive == 'nrcan') or (archive == 'all'):
if (archive == 'nrcan') :
g.rinex_nrcan_highrate(station, year, month, day)
# try new cddis for highrate rINex 2
# try new cddis for highrate rinex 2
if not os.path.isfile(rinexfile):
if (archive == 'cddis') or (archive == 'all'):
if (archive == 'cddis') :
stream = 'R'
srate = 1 # one second
ch.cddis_highrate(station, year, month, day,stream,srate)
Expand Down
5 changes: 3 additions & 2 deletions gnssrefl/rinex2snr.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ def conv2snr(year, doy, station, option, orbtype,receiverrate,dec_rate,archive,t
# further down code wnats it called rinexfile ... so let's play along
rinexfile = r2_filename
else:
print('In principle the RINEX 2.11 file does not yet exist : ', r2_filename)
print('the RINEX 2.11 file does not yet exist, so will look for it')
if receiverrate == 'high':
strip_snr = False # for now -
file_name, foundit = k.rinex2_highrate(station, year, doy,archive,strip_snr)
Expand Down Expand Up @@ -520,7 +520,7 @@ def conv2snr(year, doy, station, option, orbtype,receiverrate,dec_rate,archive,t

in6 = g.binary(errorlog)
log.write('SNR file {0:50s} \n will use hybrid of python and fortran to make \n'.format( snrname))
# these are calls to the fortran codes that have been ported to be called from python
# these are calls to the fortran codes that are called from python
if (orbtype == 'gps') or ('nav' in orbtype):
gpssnr.foo(in1,in2,in3,in4,in5,in6)
else:
Expand Down Expand Up @@ -549,6 +549,7 @@ def conv2snr(year, doy, station, option, orbtype,receiverrate,dec_rate,archive,t
log.write('SNR file {0:50s} \n will use python to make \n'.format( snrname))
log.write('Decimating will be done here instead of using teqc \n')
t1=time.time()
# i think this uses the strandberg way
rnx2snr(rinexfile, orbfile,snrname,option,year,month,day,dec_rate,log)
t2=time.time()

Expand Down

0 comments on commit b7a625d

Please sign in to comment.