Skip to content
Snippets Groups Projects
Unverified Commit b1c63439 authored by Hernán Asorey's avatar Hernán Asorey
Browse files

Extractor tool included. Instantaneous profiles removed due to large storage needs.

parent 990a498f
No related branches found
No related tags found
No related merge requests found
{
"type": "service_account",
"project_id": "access-data-307918",
"private_key_id": "64a03ecb59d0bde0215304b4eb26a3aae24dadc0",
"private_key": "-----BEGIN PRIVATE KEY-----\nMIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQCOHpn2FBbkT5Nc\nHu5YJMqqCr3NfnjLsDekIfF6g4OkHO39QyUzxUtoXrtKsaqVCnNreRfmgHCzNCia\nnRiOJxIDNj+2Er+sR2u7SnHaR3mELurcM3PxmSLK+1gflxlBHqcXK3nnil+9f26+\nk2AJ9IS8BZ6wffS81X50S1ZXiaFEpEg9mW4MO8jIoB4ZjMZFNGyZP8uKwQpFoZMW\nV5RAK3NGosNTUMtQvB7/Aosly8bhO5siTbcDEif4czf8160j4tFk6wdDekk+Nyiq\nzPIH+DUJMal/gLa6RrJN9ImZf0E3r4tOp3cx9nqkwZF5YjQatcPANVzZrWntBEEi\nvyirynFBAgMBAAECggEAJqczB6cqHLl54j21ZHrJNhtKyRejQf7w+y6SL1iSlrGZ\nlt7KwPxhiIbvWJ7evr+DadEbC4GWZV8Dxh2A/rSopP/9rwcFY5VfOybBtXToG2fp\nT6+c0rJsMJnQu3LMlxX/qwETnEJZzL/afnG11q9O5JaAtQ7k3/EO/hE5cACKQJEo\nHTZpYEvRZuKjQubsojBBNXZOCE2PIyIMorE6WYUPE29ISmLo2SekZRhXMTHQl3SW\nVaJbhO+9N1qooiUr8xjl6BQU39AhjXUdAAk/mpwzUKlFyrGSSLhdGFnOvXP9ytoJ\nxj7ajmShx3SZNqPuEOcqULt8rEMDdTQGkqIK7YmiQwKBgQDDdV6DQILPvHYx3vED\nBB3vhi9k7V/FQDbymrEoU+l3a0aS8pNi50wZHKvdG0uUleuY+sHOgLddK01vIdPE\n8oMidpCBPFVwuGsAOAzLQn1svZjxtCDuGkOD03v8McmHOesDJYpj8g4KIht8C7Hw\n2Vt9ROkU8dtuEBM+igfJ8U3JLwKBgQC6I8oFelYHRxATZsM1SCCAI0AIiIR47HAY\nVSHqMTgsSy3yS2xk6epPR25dwz/g0DCFrkpZenzUG1SQCLnW6UUvVk7KTr1cSbI9\n7pmUYQS5ypnIC7noO3BJfZ/0Mv9AJOhDazTytzDjLWVsIxxHPGxN0nyj09x46X6J\n/Lu+EjXwjwKBgHWZfXcM7mecpaSV1X6SEIzXuFZKN9APNcA78JEqA5M1OS4awzDD\np1aImKMc1BmfJjRR0x+y9CAbeKh/utGJc/rdSU5ohaOfYcms742wAJTXclkinpmD\ntdFwAe4X6n/xCgRHpv9BWM8h/FVjF/moXVJ+jppqdjK/e0Sqecs34yxDAoGBAJmu\nhNRi/fZCQM6T8KXkKBlDgVHKTP190Mr2NushugwwAf5jMVpcGr1b745wbyQRH46v\nqOkZjUieTAIjgjQjIqEDtEeqHQO+QPCLN7ffJkSzNqaIr/RCZuH2W4MGO+Jc1nsb\nX3rpru5SA8P1dRqHk6/pEkk82XHm7jfFN8ilRm2XAoGBAI7lTbHiGDZTrtHNJVp/\nJ1rHwFFEQEhj7HBzpNoq+ZEf4d+FP+nvlC4qBRBpln7YbeWit4UIL00vGapppgcv\n8eap3EDhfxwyqh+hSvJbZ9yAuuu3TI9JTsi6mlPsoRYcS1pu0Czdnrw23eykcmDs\nU05fIylWm5rsgsbC0CzMO126\n-----END PRIVATE KEY-----\n",
"client_email": "lagosites@access-data-307918.iam.gserviceaccount.com",
"client_id": "103384087479928270546",
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://oauth2.googleapis.com/token",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/lagosites%40access-data-307918.iam.gserviceaccount.com"
}
#!/bin/bash
# /************************************************************************/
# /* Package: ARTI */
# /* Module: get_atm_from_repo.sh */
# /************************************************************************/
# /* Authors: Hernán Asorey */
# /* e-mail: hernan.asoreyh@iteda.cnea.gov.ar */
# /************************************************************************/
# /* Comments: Get GDAS monthly averaged atmopsheric profiles produced by */
# /* LAGO foreach of the sites described at in the LAGO DMP */
# /************************************************************************/
# /*
# LICENSE BSD-3-Clause
# Copyright (c) 2015
# The LAGO Collaboration
# https://lagoproject.net
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHORS ''AS IS'' AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
# NO EVENT SHALL LAB DPR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
#
# The views and conclusions contained in the software and documentation are
# those of the authors and should not be interpreted as representing
# official policies, either expressed or implied, of the LAGO Collaboration.
#
# */
# /************************************************************************/
url_base="https://raw.githubusercontent.com/lagoproject/atmospheres/main/atmprof"
[ -z "$1" ] && { echo "Usage: $0 <siteId> <year>" ; exit 99; }
[ -z "$2" ] && { echo "Usage: $0 <siteId> <year (YY)>" ; exit 99; }
if [ "$2" -lt 0 ] || [ $2 -gt 99 ]; then
echo "Year should be given in YY format (00 to 99). Usage: $0 <siteId> <year (YY)>"
exit 99
fi
site=$1
year=$(printf "%02d" $2)
for m in $(seq -w 1 12); do
url_file="$url_base/${site}/atmprof${site}${year}${m}.dat"
wget $url_file
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment