Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
arti
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
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
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
halleyUIS
Software
arti
Commits
ee5e606e
Commit
ee5e606e
authored
2 years ago
by
Alexander Martínez Méndez
Browse files
Options
Downloads
Patches
Plain Diff
Agregar scripts para realizar análisis
parent
2aab8cb5
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#2039
failed with stages
in 2 minutes and 9 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Dockerfile
+27
-0
27 additions, 0 deletions
Dockerfile
do_analysis_redcca.sh
+6
-0
6 additions, 0 deletions
do_analysis_redcca.sh
do_sims_redcca.sh
+29
-0
29 additions, 0 deletions
do_sims_redcca.sh
with
62 additions
and
0 deletions
Dockerfile
0 → 100644
+
27
−
0
View file @
ee5e606e
FROM
lagocollaboration/lago-corsika:77402
LABEL
maintainer.name="The LAGO ARTI team"
LABEL
maintainer.email="lago-docker@lagoproject.net"
ENV
LANG=C.UTF-8
ENV
LAGO_ARTI=/opt/arti
ENV
wdir="/opt"
WORKDIR
${wdir}
COPY
do_analysis_redcca.sh /opt/arti/analysis/
ARG
CRK_VERSION="77402"
ARG
ARTI_BRANCH="master"
ARG
arti_pack="vim gcc gcc-c++ gcc-gfortran screen curl csh make perl perl-Data-Dumper git perl-Switch file unzip bzip2"
# CORSIKA image is based on CENTOS, so we use yum
RUN
[
"/bin/bash"
,
"-c"
,
"yum -y update
\
&& yum -y install
$arti_pack
\
&& echo export LAGO_CRK=
\"
/opt/lago-corsika-
${
CRK_VERSION
}
/run
\"
>>
${
HOME
}
/.bashrc
\
&& git clone https://github.com/lagoproject/arti.git -b
${
ARTI_BRANCH
}
\
&& cd arti
\
&& git checkout dad3e1581f50168b2b53829b4e7a517b6cfa354a
\
&& sed -i '628s/F/T/' sims/rain.pl
\
&& ./lago-arti.sh
\
&& source
${
HOME
}
/.bashrc
\
&& make"
]
&& chmod +x /opt/arti/analysis/do_analysis_redcca.sh
CMD
bash
This diff is collapsed.
Click to expand it.
do_analysis_redcca.sh
0 → 100644
+
6
−
0
View file @
ee5e606e
!
#/bin/bash
for
i
in
DAT??????.bz2
;
do
j
=
$(
echo
$i
|
sed
-e
's/.bz2//'
)
;
u
=
$(
echo
$j
|
sed
-e
's/DAT//'
)
;
bzip2
-d
-k
$i
;
echo
$j
| ../../../arti/analysis/lagocrkread | ../../../arti/analysis/analysis
-p
-v
$u
;
rm
$j
;
done
bzcat
*
sec.bz2 | ../../../arti/analysis/showers
-a
10
-d
10
-c
5100.
-n
1 1
-v
salida_apx
This diff is collapsed.
Click to expand it.
do_sims_redcca.sh
0 → 100644
+
29
−
0
View file @
ee5e606e
!
#/bin/bash
# Parámetros
nombre_contenedor
=
"arti-redcca"
nombre_proyecto
=
"BGA60"
# Crear imagen
docker build
--no-cache
--build-arg
ARTI_BRANCH
=
"master"
-t
arti:redcca.1.0 - < Dockerfile
# Crear e iniciar contenedor
docker run
-d
-it
--name
$nombre_contenedor
arti:redcca.1.0
# Crear archivos de simulación
docker
exec
--workdir
/opt/arti/sims/
$nombre_contenedor
./do_sims.sh
-w
../../lago-corsika-77402/run/
-p
$nombre_proyecto
-v
77402
-u
csar
-t
360
-m
0.0
-n
90
-r
1
-i
1E6
-s
bga
-b
5
# Ejecutar simulaciones
## *all
for
i
in
{
1..6
}
;
do
docker
exec
--workdir
/opt/lago-corsika-77402/run/
$nombre_contenedor
bash go-
$nombre_proyecto
-all-0
$i
.sh
;
done
## *pr
for
i
in
{
1..8
}
;
do
docker
exec
--workdir
/opt/lago-corsika-77402/run/
$nombre_contenedor
bash go-
$nombre_proyecto
-pr-
$i
.sh
;
done
## he
docker
exec
--workdir
/opt/lago-corsika-77402/run/
$nombre_contenedor
bash go-
$nombre_proyecto
-he
.sh
# Análisis
## Copiar archivo para análisis
docker
cp
do_analysis_redcca.sh
$nombre_contenedor
:/opt/lago-corsika-77402/run/
$nombre_proyecto
## Realizar análisis
docker
exec
--workdir
/opt/lago-corsika-77402/run/
$nombre_proyecto
$nombre_contenedor
bash do_analysis_redcca.sh
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