Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RadioObservatory
LOFAR
Commits
9c9293bf
Commit
9c9293bf
authored
16 years ago
by
Ger van Diepen
Browse files
Options
Downloads
Patches
Plain Diff
bug 1207:
Added support for imaging an MS without description files
parent
b91dd255
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CEP/BB/MWImager/src/mwimager
+13
-9
13 additions, 9 deletions
CEP/BB/MWImager/src/mwimager
CEP/BB/MWImager/src/mwimager-part
+12
-0
12 additions, 0 deletions
CEP/BB/MWImager/src/mwimager-part
with
25 additions
and
9 deletions
CEP/BB/MWImager/src/mwimager
+
13
−
9
View file @
9c9293bf
...
...
@@ -29,7 +29,7 @@ pgmpath=`cd $pgmpath > /dev/null 2>&1 && pwd`
# Check if LOFARROOT is set.
if
test
"
$LOFARROOT
"
=
""
;
then
echo
"LOFARROT is undefined; source lofarinit.(c)sh first"
echo
"LOFARRO
O
T is undefined; source lofarinit.(c)sh first"
exit
1
fi
...
...
@@ -41,7 +41,9 @@ if test $# = 0; then
echo
" parset-file name of parset file"
echo
" clusterdesc name of clusterdesc file"
echo
" default is
$HOME
/CEP.clusterdesc"
echo
" wd working directory in subprocesses"
echo
" wd working directory in subprocesses which will get"
echo
" the images and log files"
echo
" default is same directory as MS"
echo
" logfile root name of logfile of each subprocess"
echo
" A sequence number gets appended to it"
echo
" default is mwimager.log"
...
...
@@ -67,9 +69,6 @@ if test $# != 0; then
wd
=
$1
shift
fi
if
test
"
$wd
"
=
""
;
then
wd
=
.
fi
logfile
=
if
test
$#
!=
0
;
then
logfile
=
$1
...
...
@@ -90,7 +89,6 @@ if test $# != 0; then
fi
# Make all file names absolute.
wd
=
`
cd
$wd
>
/dev/null
;
pwd
`
dn
=
`
dirname
$psn
`
psn
=
`
cd
$dn
>
/dev/null
;
pwd
`
/
`
basename
$psn
`
dn
=
`
dirname
$cdn
`
...
...
@@ -101,8 +99,14 @@ if test "$hfn" != ""; then
fi
# Get dataset name from the parset.
# If it is an MS, operate directly on it (as rank 0).
msvds
=
`
getparsetvalue
$psn
dataset
`
||
exit
1
if
test
-d
"
$msvds
"
-a
-e
"
$msvds
/table.dat"
;
then
echo
"mwimager-part '' '' '' '' 0 '
$msvds
' '
$LOFARROOT
' '
$psn
' '
$wd
' '
$dry
'"
mwimager-part
""
""
""
""
0
"
$msvds
"
"
$LOFARROOT
"
"
$psn
"
"
$wd
"
"
$dry
"
# Start the imager processes on the various machines.
echo
"startdistproc -mode 0 -nomasterhost -dsn
$msvds
-hfn "
$hfn
" -cdn
$cdn
-logfile "
$logfile
"
$pgmpath
/mwimager-part
$LOFARROOT
$psn
$wd
$dry
"
startdistproc
-mode
0
-nomasterhost
-dsn
"
$msvds
"
-hfn
"
$hfn
"
-cdn
"
$cdn
"
-logfile
"
$logfile
"
$pgmpath
/mwimager-part
"
$LOFARROOT
"
"
$psn
"
"
$wd
"
"
$dry
"
else
# Start the imager processes on the various machines.
echo
"startdistproc -mode 0 -nomasterhost -dsn '
$msvds
' -hfn '
$hfn
' -cdn '
$cdn
' -logfile '
$logfile
'
$pgmpath
/mwimager-part '
$LOFARROOT
' '
$psn
' '
$wd
' '
$dry
'"
startdistproc
-mode
0
-nomasterhost
-dsn
"
$msvds
"
-hfn
"
$hfn
"
-cdn
"
$cdn
"
-logfile
"
$logfile
"
$pgmpath
/mwimager-part
"
$LOFARROOT
"
"
$psn
"
"
$wd
"
"
$dry
"
fi
This diff is collapsed.
Click to expand it.
CEP/BB/MWImager/src/mwimager-part
+
12
−
0
View file @
9c9293bf
...
...
@@ -48,9 +48,21 @@ psnbase=`basename $psn`
# Initialize lofar environment.
.
$lroot
/lofarinit.sh
# Get the data set name and the directory name of it.
if
test
"
$wd
"
=
""
;
then
wd
=
`
dirname
"
$msn
"
`
fi
# Set to working directory.
cd
$wd
# If an MS name is given, create a temporary description file for it.
if
test
-d
"
$msn
"
-a
-e
"
$msn
/table.dat"
;
then
makevds
""
"
$msn
"
"
$msn
.tmpvds"
msn
=
"
$msn
.tmpvds"
fi
# Add channel info to the parset file.
cp
$psn
$psnbase
.part
$seqnr
schan
=
`
getparsetvalue
$psnbase
.part
$seqnr
firstchan 2>/dev/null
`
||
schan
=
0
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment