source: trunk/src/get_tao_netcdf.sh @ 39

Last change on this file since 39 was 4, checked in by pinsard, 13 years ago

add .sh extension to shell scripts; minimal header; complete data guide

File size: 2.0 KB
Line 
1#! /bin/sh
2#+
3#
4# .. program:: get_tao_netcdf.sh
5#
6# .. _get_tao_netcdf.sh:
7#
8# ============================================
9# get_tao_netcdf.sh -- get TAO reference files
10# ============================================
11#
12#
13# SYNOPSIS
14# ========
15#
16# ::
17#
18#  $ get_tao_netcdf.sh
19#
20# DESCRIPTION
21# ===========
22#
23# ``get_tao_netcdf.sh`` get TAO reference files
24#
25# SEE ALSO
26# ========
27#
28# :ref:`guide data TAO <data_in_tao>`
29#
30# TODO
31# ====
32#
33# trace
34#
35# hard coded directory - usage of ${TROPFLUX_ID}
36#
37# coding rules
38#
39# EVOLUTIONS
40# ==========
41#
42# - fplod 20101213T161152Z aedon.locean-ipsl.upmc.fr (Darwin)
43#
44#   * minimal header
45#
46# - jv 2008
47#
48#   * creation
49#
50#-
51dir=/Users/jv/data/TAO/data/
52
53# bf  : buoyancy flux
54# d   : sigma-theta
55# dyn : dynamic height
56# emp : e-p
57# iso : 20C depth
58# met : wind (u,v,speed,direction),  airT, hum rel, SST   (= w + airt + rh)
59# pos : lon, lat
60# rad : shortwave down
61# rf  : rain heat flux
62# w   : wind
63
64varlist="adcp airt bf bp cur d dyn emp evap heat iso lw lwnet met pos qlat qnet qsen rad rain rf rh s ssd sss sst swnet t tau w"
65sitelist=                                       "2n137e 5n137e 8n137e"
66sitelist="$sitelist                      0n147e 2n147e 5n147e"
67sitelist="$sitelist        5s156e 2s156e 0n156e 2n156e 5n156e 8n156e"
68sitelist="$sitelist 8s165e 5s165e 2s165e 0n165e 2n165e 5n165e 8n165e"
69sitelist="$sitelist 8s180w 5s180w 2s180w 0n180w 2n180w 5n180w 8n180w"
70sitelist="$sitelist 8s170w 5s170w 2s170w 0n170w 2n170w 5n170w 8n170w"
71sitelist="$sitelist 8s155w 5s155w 2s155w 0n155w 2n155w 5n155w 8n155w"
72sitelist="$sitelist        5s140w 2s140w 0n140w 2n140w 5n140w 9n140w"
73sitelist="$sitelist 8s125w 5s125w 2s125w 0n125w 2n125w 5n125w 8n125w"
74sitelist="$sitelist 8s110w 5s110w 2s110w 0n110w 2n110w 5n110w 8n110w"
75sitelist="$sitelist 8s95w  5s95w  2s95w  0n95w  2n95w  5n95w  8n95w "
76
77echo $sitelist
78
79cd $dir
80for site in $sitelist ; do
81 for var in $varlist ; do
82  wget --password=G10b@LCh@Ng3 ftp://taopmelftp@ftp.pmel.noaa.gov/cdf/sites/daily/${var}${site}_dy.cdf
83 done
84done
85
86ls -l
Note: See TracBrowser for help on using the repository browser.