Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Atmospheres
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
LAGO
Data
Atmospheres
Commits
fe1eae32
Unverified
Commit
fe1eae32
authored
2 years ago
by
Hernán Asorey
Browse files
Options
Downloads
Patches
Plain Diff
Minor typo in extractor. New script to download averaged atmospheric profiles from github
parent
b1c63439
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
extractor/.get_atm_from_repo.sh.swp
+0
-0
0 additions, 0 deletions
extractor/.get_atm_from_repo.sh.swp
extractor/extractor.py
+1
-1
1 addition, 1 deletion
extractor/extractor.py
extractor/get_atm_from_repo.sh
+16
-3
16 additions, 3 deletions
extractor/get_atm_from_repo.sh
with
17 additions
and
4 deletions
extractor/.get_atm_from_repo.sh.swp
0 → 100644
+
0
−
0
View file @
fe1eae32
File added
This diff is collapsed.
Click to expand it.
extractor/extractor.py
+
1
−
1
View file @
fe1eae32
...
...
@@ -196,7 +196,7 @@ def main(argv):
]
if
verbose
:
print
(
"
Extracting data from sites google sheet...
"
,
end
=
''
)
credentials
=
ServiceAccountCredentials
.
from_json_keyfile_name
(
'
access
-
data
-64a03ecb59d0
.json
'
,
scope
)
credentials
=
ServiceAccountCredentials
.
from_json_keyfile_name
(
'
<insert json
access
data
here
.json
'
,
scope
)
client
=
gspread
.
authorize
(
credentials
)
sheet
=
client
.
open
(
"
DatosRC
"
).
sheet1
data
=
sheet
.
get_all_records
()
...
...
This diff is collapsed.
Click to expand it.
extractor/get_atm_from_repo.sh
+
16
−
3
View file @
fe1eae32
...
...
@@ -55,8 +55,21 @@ if [ "$2" -lt 0 ] || [ $2 -gt 99 ]; then
fi
site
=
$1
year
=
$(
printf
"%02d"
$2
)
n
=
0
for
m
in
$(
seq
-w
1 12
)
;
do
url_file
=
"
$url_base
/
${
site
}
/atmprof
${
site
}${
year
}${
m
}
.dat"
wget
$url_file
file
=
"atmprof
${
site
}${
year
}${
m
}
.dat"
url_file
=
"
$url_base
/
${
site
}
/
${
file
}
"
if
$(
wget
-q
$url_file
)
;
then
echo
"File
$file
retrived"
n
=
$((
n
+
1
))
else
echo
"Failed to retrieve
$file
"
fi
done
if
[
"
$n
"
-eq
12
]
;
then
echo
"Success retrieving site:
${
site
}
for year:
$year
"
else
echo
"Failed to retrieve some files.
$n
files extracted"
echo
"Perhaps files does not be already produced. Please check at https://github.com/lagoproject/atmospheres/"
exit
99
fi
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