-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupload_to_aeris.sh
executable file
·30 lines (28 loc) · 1.87 KB
/
upload_to_aeris.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/usr/bin/env bash
# short shell script to upload data from eurec4a to aeris by mirroring a whole folder
# before uploading, check if the folder you want to upload to already exists
# connect to aeris via lftp and cd to where the folder should be
# lftp [email protected]
# password: pass4eurec4a!
# if not there, mkdir "dirname" to create it
# or use WinSCP for that
DAY=$(date +%Y%m%d)
YYYYMMDD=$(date +%Y%m%d --date="$DAY")
HOST="ftp.climserv.ipsl.polytechnique.fr" # define host server -> aeris
RUSER="eurec4a" # define user
PASS="pass4eurec4a!" # define password
# define local directory
#LCD="/projekt2/remsens/data/campaigns/eurec4a/LIMRAD94/upload_to_aeris" # LIMRAD94 data (30s averages)
#LCD="/projekt2/remsens/data_new/site-campaign/rv_meteor-eurec4a/instruments/LIMRAD94/upload_to_aeris_v1.1" # LIMRAD94 heave corrected, original res data
#LCD="/projekt2/remsens/data_new/site-campaign/rv_meteor-eurec4a/instruments/RV-METEOR_CEILOMETER/upload_to_aeris" # ceilometer data (nc files)
#LCD="/projekt2/remsens/data_new/site-campaign/rv_meteor-eurec4a/instruments/HATPRO/upload_to_aeris" # HATPRO data and plots
LCD="/projekt2/remsens/data_new/site-campaign/rv_meteor-eurec4a/instruments/RV-METEOR_DSHIP/upload_to_aeris" # DSHIP data
#LCD="/projekt2/remsens/data_new/site-campaign/rv_meteor-eurec4a/instruments/RV-METEOR_DWD/upload_to_aeris" # DWD precip data
#define remote directory
#RCD="/upload/SHIPS/RV-METEOR/cloudradar/ncfiles" # cloud radar
#RCD="/upload/SHIPS/RV-METEOR/cloudradar/heave_corr_high_res_ncfiles" # cloud radar
#RCD="/upload/SHIPS/RV-METEOR/ceilometer/ncfiles" # ceilometer nc files
#RCD="/upload/SHIPS/RV-METEOR/radiometer" # HATPRO data and plots, level 1 + 2
RCD="/upload/SHIPS/RV-METEOR/DSHIP" # DSHIP data
#RCD="/upload/SHIPS/RV-METEOR/weather_station" # DWD weather station data
lftp -e "mirror -R $LCD $RCD " -u "$RUSER","$PASS" "$HOST"