Skip to content
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

[Update] 20061229.2200.00.san.rawacf.bz2 #14

Open
2 of 5 tasks
mts299 opened this issue Jul 9, 2020 · 4 comments
Open
2 of 5 tasks

[Update] 20061229.2200.00.san.rawacf.bz2 #14

mts299 opened this issue Jul 9, 2020 · 4 comments
Labels
blocked_BAS blocked_USASK These files have been blocked at USASK help wanted Extra attention is needed

Comments

@mts299
Copy link

mts299 commented Jul 9, 2020

Files

20061229.2200.00.san.rawacf.bz2

Mirrors To be Updated

  • Usask
  • BAS

Description

Recently I found some files that made their way onto the mirror with no minutes in the file name.
Example:
instead of 20061229.2200.00.san.rawacf.bz2
they are 20061229.22.00.san.rawacf.bz2

There are 2083 san files from the beginning of July 2006 to the end of Dec 2006.
These files were added to the mirror by me back in September 2016 when I went through all the old CDs and DVDs of data here, looking for files that were not in the distribution already.

Tasks

  • We blacklist these file names and remove them from the mirrors
  • Read the first record of each file and rename the file accordingly, placing the minute in each file name
  • Place renamed files on the mirror.
@kevinkrieger kevinkrieger added blocked_USASK These files have been blocked at USASK help wanted Extra attention is needed labels Jul 28, 2020
@kevinkrieger
Copy link
Collaborator

These were blocked at USASK.
It's likely possible to get them back into the distribution if someone can spend some time and rename these files properly, according to the first record.
HELP WANTED

@egthomas
Copy link
Member

egthomas commented Sep 9, 2020

Were these rawacf files produced on-site, or converted from dat files using the dattorawacf utility? If the latter, then it is understandable why the minute information may be missing from the file names. We have some bash scripts which could probably be adapted to address this issue, using logic along the lines of

# Convert dat file to rawacf format
dattorawacf $basefile.dat > tmp.rawacf

# Get file date and hour from filename
date=`echo $file | cut -c1-8`
hour=`echo $file | cut -c9-10`

# Get minute and second of first record in file
dmapdump tmp.rawacf > rawacf.dump
minutes=`sed -n -e 's/^.*time.mt" =//p' rawacf.dump`
minute=`echo $minutes | cut -d " " -f1`
seconds=`sed -n -e 's/^.*time.sc" =//p' rawacf.dump`
second=`echo $seconds | cut -d " " -f1`

# Add leading zeros to minute and second if necessary
minute=$(printf %02d $minute)
second=$(printf %02d $second)

# Convert old single-letter radar code to 3-letter code
case $site in
    ...

# Construct YYYYMMDD.HHMN.SS.RRR filename format
baseraw="$date.$hour$minute.$second.$newsite"

# Rename rawacf file with correct format
mv tmp.rawacf $baseraw.rawacf

@kevinkrieger
Copy link
Collaborator

Hmm, from testing one file it appears they are dattorawacf files that were distributed on optical media:

string "origin.time" = "Tue Sep 25 15:17:32 2007"
string "origin.command" = "dattorawacf 2006083114d0.dat"

@tjk584
Copy link

tjk584 commented Apr 28, 2023

None on NSSC mirror

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked_BAS blocked_USASK These files have been blocked at USASK help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants