Skip to content

Commit

Permalink
update gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
bpe2tycho committed Jan 12, 2023
1 parent ae9169d commit 4f25731
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 68 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,7 @@ dmypy.json

# Pyre type checker
.pyre/

# Autobern files
config/config.*
!config/config.template
16 changes: 10 additions & 6 deletions bin/rundd.py
Original file line number Diff line number Diff line change
Expand Up @@ -816,13 +816,17 @@ def get_rinex_version_info():
version_info = {}
for staid,rnx_dct in rinex_holdings.items():
if not rnx_dct['exclude']:
print('opening file {:}'.format(rnx_dct['local']))
with open(rnx_dct['local'], 'r') as fin:
fline = fin.readline()
if not fline.rstrip().endswith('RINEX VERSION / TYPE'):
print('[WRNNG] RINEX file {:} is missing version field!'.format(rnx_dct['local']), file=sys.stderr)
version = 'unknown'
else:
version = fline.split()[0].strip()
try:
fline = fin.readline()
if not fline.rstrip().endswith('RINEX VERSION / TYPE'):
print('[WRNNG] RINEX file {:} is missing version field!'.format(rnx_dct['local']), file=sys.stderr)
version = 'unknown'
else:
version = fline.split()[0].strip()
except:
version = 'unknown'
if version in version_info:
version_info[version] += 1
else:
Expand Down
2 changes: 1 addition & 1 deletion cron/ddfinal-croasp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if ! test -d $ABPE_DIR
exit 1
fi

CONFIG=config.enceladus
CONFIG=config.greece

## get the date 15 days ago
year=$(python3 -c "import datetime; print('{:}'.format((datetime.datetime.now()-datetime.timedelta(days = 15)).strftime(\"%Y\")))")
Expand Down
13 changes: 6 additions & 7 deletions cron/ddfinal-hepos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ if ! test -d $ABPE_DIR
exit 1
fi

year=2015
yr2=15
doy=001
year=2021
yr2=21
#doy=020

#for doy in {151..180} ; do
for doy in {123..365} ; do
idoy=$(echo $doy | sed 's/^0*//g')

## we need to make an a-priori crd file for the BPE
Expand All @@ -34,11 +34,10 @@ doy=001
--use-euref-exclusion-list \
--min-reference-stations 10 \
--aprinf REG${yr2}${doy}0 \
|| echo "ERROR. BPE and/or rundd script failed!"
# || { echo "ERROR. BPE and/or rundd script failed!"; exit 1; }
|| { echo "ERROR. BPE and/or rundd script failed!"; exit 1; }

rm ${HOME}/tables/crd/REG${yr2}${doy}0.CRD

#done
done

exit 0
4 changes: 2 additions & 2 deletions cron/ddfinal.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ CONFIG=config.greece
## get the date 15 days ago
year=$(python3 -c "import datetime; print('{:}'.format((datetime.datetime.now()-datetime.timedelta(days = 15)).strftime(\"%Y\")))")
yr2=$(python3 -c "import datetime; print('{:}'.format((datetime.datetime.now()-datetime.timedelta(days = 15)).strftime(\"%y\")))")
doy=$(python3 -c "import datetime; print('{:}'.format((datetime.datetime.now()-datetime.timedelta(days = 15)).strftime(\"%j\")))")
#doy=$(python3 -c "import datetime; print('{:}'.format((datetime.datetime.now()-datetime.timedelta(days = 15)).strftime(\"%j\")))")
doy=315
idoy=$(echo $doy | sed 's/^0*//g') ## remove leading '0'

## we need to make an a-priori crd file for the BPE
Expand All @@ -35,7 +36,6 @@ python3 ${ABPE_DIR}/bin/rundd.py \
--use-euref-exclusion-list \
--min-reference-stations 10 \
--aprinf REG${yr2}${doy}0 \
--upload-to-epnd \
|| { echo "ERROR. BPE and/or rundd script failed!"; exit 1; }

rm ${HOME}/tables/crd/REG${yr2}${doy}0.CRD
Expand Down
49 changes: 0 additions & 49 deletions cron/ddurapid-croasp.sh

This file was deleted.

10 changes: 7 additions & 3 deletions cron/ddurapid.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#! /bin/bash

args=("$@")
before=${args[0]}
echo "Num days before: $before"

ABPE_DIR="/home/bpe/applications/autobern"
if ! test -d $ABPE_DIR
then
Expand All @@ -10,9 +14,9 @@ fi
CONFIG=config.greece

## get the date 1 days ago
year=$(python3 -c "import datetime; print('{:}'.format((datetime.datetime.now()-datetime.timedelta(days = 1)).strftime(\"%Y\")))")
yr2=$(python3 -c "import datetime; print('{:}'.format((datetime.datetime.now()-datetime.timedelta(days = 1)).strftime(\"%y\")))")
doy=$(python3 -c "import datetime; print('{:}'.format((datetime.datetime.now()-datetime.timedelta(days = 1)).strftime(\"%j\")))")
year=$(python3 -c "import datetime; print('{:}'.format((datetime.datetime.now()-datetime.timedelta(days = $before)).strftime(\"%Y\")))")
yr2=$(python3 -c "import datetime; print('{:}'.format((datetime.datetime.now()-datetime.timedelta(days = $before)).strftime(\"%y\")))")
doy=$(python3 -c "import datetime; print('{:}'.format((datetime.datetime.now()-datetime.timedelta(days = $before)).strftime(\"%j\")))")
idoy=$(echo $doy | sed 's/^0*//g') ## remove leading '0'

## we need to make an a-priori crd file for the BPE
Expand Down

0 comments on commit 4f25731

Please sign in to comment.