Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
apipeline
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexander Kutkin
apipeline
Commits
8321eaa0
Commit
8321eaa0
authored
3 years ago
by
AK
Browse files
Options
Downloads
Patches
Plain Diff
wsclean v=3.0
parent
662c9a49
No related branches found
No related tags found
No related merge requests found
Pipeline
#28645
failed
3 years ago
Stage: build
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Dockerfile
+3
-0
3 additions, 0 deletions
Dockerfile
imcal.py
+2
-2
2 additions, 2 deletions
imcal.py
with
5 additions
and
2 deletions
Dockerfile
+
3
−
0
View file @
8321eaa0
...
@@ -117,6 +117,9 @@ RUN git clone --depth 1 --branch ${DP3_VERSION} \
...
@@ -117,6 +117,9 @@ RUN git clone --depth 1 --branch ${DP3_VERSION} \
ARG
WSCLEAN_VERSION=master
ARG
WSCLEAN_VERSION=master
RUN
git clone
--depth
1
--branch
${
WSCLEAN_VERSION
}
\
RUN
git clone
--depth
1
--branch
${
WSCLEAN_VERSION
}
\
https://gitlab.com/aroffringa/wsclean.git
&&
\
https://gitlab.com/aroffringa/wsclean.git
&&
\
cd
wsclean
&&
\
git reset
--hard
v3.0
&&
\
cd
..
&&
\
mkdir
wsclean/build
&&
\
mkdir
wsclean/build
&&
\
cd
wsclean/build
&&
\
cd
wsclean/build
&&
\
cmake ..
-DPORTABLE
=
${
PORTABLE
}
&&
\
cmake ..
-DPORTABLE
=
${
PORTABLE
}
&&
\
...
...
This diff is collapsed.
Click to expand it.
imcal.py
+
2
−
2
View file @
8321eaa0
...
@@ -217,15 +217,15 @@ def makeCombMask(ima1='noiseMap.fits', ima2='noiseMapLow.fits',
...
@@ -217,15 +217,15 @@ def makeCombMask(ima1='noiseMap.fits', ima2='noiseMapLow.fits',
return
return
def
get_image_ra_dec_min_max
(
msin
,
):
def
get_image_ra_dec_min_max
(
msin
):
"""
"""
Determine image center coords, min and max values for msin
Determine image center coords, min and max values for msin
"""
"""
cmd
=
f
'
wsclean -niter 0 -size 3072 3072 -scale 3arcsec -use-wgridder
{
msin
}
'
cmd
=
f
'
wsclean -niter 0 -size 3072 3072 -scale 3arcsec -use-wgridder
{
msin
}
'
logging
.
debug
(
'
Running command: %s
'
,
cmd
)
subprocess
.
call
(
cmd
,
shell
=
True
)
subprocess
.
call
(
cmd
,
shell
=
True
)
data
=
fits
.
getdata
(
'
wsclean-image.fits
'
)
data
=
fits
.
getdata
(
'
wsclean-image.fits
'
)
header
=
fits
.
getheader
(
'
wsclean-image.fits
'
)
header
=
fits
.
getheader
(
'
wsclean-image.fits
'
)
return
header
[
'
CRVAL1
'
],
header
[
'
CRVAL2
'
],
np
.
nanmin
(
data
),
np
.
nanmax
(
data
)
return
header
[
'
CRVAL1
'
],
header
[
'
CRVAL2
'
],
np
.
nanmin
(
data
),
np
.
nanmax
(
data
)
...
...
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