Skip to content

Commit

Permalink
Convert to rinex for non-zipped files.
Browse files Browse the repository at this point in the history
Fix #348
  • Loading branch information
Stefal committed Dec 17, 2024
1 parent 413ce73 commit c303ffc
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
13 changes: 9 additions & 4 deletions tools/convbin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,17 @@ elif [[ ${RINEX_TYPE} == '30s_full' ]] ; then rnx_conversion_func='convert_to_ri
elif [[ ${RINEX_TYPE} == '1s_full' ]] ; then rnx_conversion_func='convert_to_rinex_1s_full' ; RINEX_FILE=$(echo "${filedate}"-"${MOUNT_NAME}"_"${RINEX_TYPE}".obs)
fi


#Let's launch the CONVBIN process
echo "- Processing on ""${RAW_ARCHIVE}"
extract_raw_file && \
${rnx_conversion_func} && \
file_extension="${RAW_ARCHIVE##*.}"
if [[ $file_extension == 'zip' ]]
then
extract_raw_file
else
raw_file="${RAW_ARCHIVE}"
fi
${rnx_conversion_func}
return_code=$?
echo -n 'rinex_file='"${RINEX_FILE}"
rm "${raw_file}"
[[ $file_extension == 'zip' ]] && rm "${raw_file}"
exit $return_code
6 changes: 0 additions & 6 deletions web_app/static/logs.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,6 @@ window.operateEvents = {
'click #log_edit': function(e, value, row, index) {
document.querySelector('#filename').textContent = row.name;
//console.log(row.format);
if ( row.format.split(".").pop() === "ZIP") {
createRinexBtnElt.removeAttribute('disabled');
}
else {
createRinexBtnElt.setAttribute('disabled', '');
}
$('#editModal').modal();
createRinexBtnElt.dataset.filename = row.name;
//$('#rinex-create-button').data.row = row;
Expand Down
2 changes: 1 addition & 1 deletion web_app/templates/logs.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ <h4 class="modal-title">Warning</h4>

<!-- Modal Header -->
<div class="modal-header">
<h4 class="modal-title">Convert raw file archive (zip) to rinex file</h4>
<h4 class="modal-title">Convert raw file to rinex file</h4>
<button type="button" class="close" data-dismiss="modal">&times;</button>
</div>

Expand Down

0 comments on commit c303ffc

Please sign in to comment.