Changeset 48
- Timestamp:
- 04/21/11 17:58:31 (13 years ago)
- Location:
- trunk
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/adm/guides/data_content.rst
r44 r48 9 9 .. ========== 10 10 .. 11 .. - fplod 20110421T085807Z aedon.locean-ipsl.upmc.fr (Darwin) 12 .. 13 .. * add biblio on TAO/TRITION, PIRATA, and RAMA 14 .. * add contact section 15 .. 11 16 .. - fplod 20110407T093006Z aedon.locean-ipsl.upmc.fr (Darwin) 12 17 .. … … 64 69 OAFLUX 65 70 ~~~~~~ 71 72 Contact 73 ^^^^^^^ 74 75 Documentation 76 ^^^^^^^^^^^^^ 66 77 67 78 Reference files … … 102 113 ~~~~~ 103 114 115 Contact 116 ^^^^^^^ 117 118 Documentation 119 ^^^^^^^^^^^^^ 120 104 121 Between 1989-now 105 122 … … 127 144 OLR 128 145 ~~~ 146 147 Contact 148 ^^^^^^^ 149 150 Documentation 151 ^^^^^^^^^^^^^ 129 152 130 153 Interpolated … … 146 169 ~~~~~~ 147 170 148 URL : +todo+ 171 Contact 172 ^^^^^^^ 173 174 atlasrt@noaa.gov 175 176 Documentation 177 ^^^^^^^^^^^^^ 178 179 [BourlesLumpkinEtAL:BAMS:2008]_ 180 181 http://www.pmel.noaa.gov/tao/data_deliv/deliv.html 149 182 150 183 list of variables : +todo+ 151 184 152 185 list of sites : +todo+ 186 187 Tools 188 ^^^^^ 153 189 154 190 :ref:`get_pirata_netcdf.sh` … … 159 195 ~~~~ 160 196 161 URL : +todo+ 197 Contact 198 ^^^^^^^ 199 200 atlasrt@noaa.gov 201 202 Documentation 203 ^^^^^^^^^^^^^ 204 205 [McPhadenMeyersEtAl:BAMS:2009]_ 206 207 http://www.pmel.noaa.gov/tao/data_deliv/deliv.html 162 208 163 209 list of variables : +todo+ 164 210 165 211 list of sites : +todo+ 212 213 Tools 214 ^^^^^ 166 215 167 216 :ref:`get_rama_netcdf.sh` … … 172 221 .. _data_in_tao: 173 222 174 URL : +todo+ 223 Contact 224 ^^^^^^^ 225 226 atlasrt@noaa.gov 227 228 Documentation 229 ^^^^^^^^^^^^^ 230 231 [McPhadenBusalacchiEtAL:JGR:1998]_ 232 233 http://www.pmel.noaa.gov/tao/data_deliv/deliv.html 175 234 176 235 list of variables : +todo+ … … 178 237 list of sites : +todo+ 179 238 239 Tools 240 ^^^^^ 241 180 242 :ref:`get_tao_netcdf.sh` 181 243 -
trunk/adm/guides/generate_statistics.rst
r4 r48 32 32 33 33 34 Praveen will have to send you his netcdf codes to make the pl ts that we use to34 Praveen will have to send you his netcdf codes to make the plots that we use to 35 35 derive the bias corrections that we apply. -
trunk/adm/makefile
r42 r48 13 13 # 14 14 # add -W to sphinx command when encoding problems are solved 15 # 16 # deux biblio : une dans guide et une dans website : actuellement seule celle de# website est vu dans html_dev 15 17 # 16 18 # usage of sphinx/source/Makefile … … 103 105 104 106 LIST_RST_GUIDES = \ 105 $(shell find $(DIRADM)/guides/ -name "*.rst") 107 $(shell find $(DIRADM)/guides/ -name "*.rst") \ 108 $(shell find $(DIRADM)/website/ -name "*.rst") \ 106 109 107 110 LIST_SRCSH = \ … … 185 188 html_dev \ 186 189 html_dev_sphinx \ 190 html_dev_sphinx_one \ 187 191 html_user \ 188 192 pdf \ -
trunk/adm/website/_templates/layout.html
r36 r48 13 13 <div style="background-color: white; text-align: left; padding: 10px 10px 15px 15px"> 14 14 <a href="{{ pathto('index') }}"><img src="{{ 15 pathto("_static/logo.png", 1) }}" border="0" alt=" py4sci"/></a>15 pathto("_static/logo.png", 1) }}" border="0" alt="tropflux logo"/></a> 16 16 </div> 17 17 {{ super() }} -
trunk/adm/website/bibliography.rst
r38 r48 14 14 .. EVOLUTIONS 15 15 .. ========== 16 .. 17 .. - fplod 20110421T085259Z aedon.locean-ipsl.upmc.fr (Darwin) 18 .. 19 .. * add references about TAO/TRITION, PIRATA, and RAMA 16 20 .. 17 21 .. - fplod 20110407T084904Z aedon.locean-ipsl.upmc.fr (Darwin) … … 47 51 ============ 48 52 49 .. [PraveenkumarVialard:CD:2010submitted] B. Praveen Kumar, J. Vialard, M. Lengaigne, V.S.N. Murty, M.J. McPhaden *TropFlux: 53 .. [PraveenkumarVialard:CD:2010submitted] B. Praveen Kumar, J. Vialard, M. Lengaigne, V.S.N. Murty, M.J. McPhaden *TropFlux: Air-Sea Fluxes for the Global Tropical Oceans - Description and evaluation against observations*, *Climate Dynamics*, 2010, submitted `TropFlux_Climate_Dynamics_r.pdf <https://www.locean-ipsl.upmc.fr/~jv/data/TropFlux_Climate_Dynamics_r.pdf>`_ 50 54 51 55 .. [LiebmannSmith:BAMS:1996] Liebmann B. and C.A. Smith, 1996: Description of a Complete (Interpolated) Outgoing Longwave Radiation Dataset. Bulletin of the American Meteorological Society, 77, 1275-1277. `OLRinterpolated.pdf <http://www.esrl.noaa.gov/psd/data/gridded/OLRinterpolated.pdf>`_ 56 57 .. [McPhadenBusalacchiEtAL:JGR:1998] McPhaden, M.J., A.J. Busalacchi, R. Cheney, J.R. Donguy, K.S. Gage, D. Halpern, M. Ji, P. Julian, G. Meyers, G.T. Mitchum, P.P. Niiler, J. Picaut, R.W. Reynolds, N. Smith, K. Takeuchi, 1998: The Tropical Ocean-Global Atmosphere (TOGA) observing system: A decade of progress. J. Geophys. Res., 103, 14, 169-14,240. 58 59 .. [BourlesLumpkinEtAL:BAMS:2008] Bourles, B., R. Lumpkin, M.J. McPhaden, F. Hernandez, P. Nobre, E.Campos, L. Yu, S. Planton, A. Busalacchi, A.D. Moura, J. Servain, and J. Trotte, 2008: The PIRATA Program: History, Accomplishments, and Future Directions. Bull. Amer. Meteor. Soc., 89, 1111-1125. 60 61 .. [McPhadenMeyersEtAl:BAMS:2009] McPhaden, M.J., G. Meyers, K. Ando,Y. Masumoto, V.S.N. Murty, M. Ravichandran, F. Syamsudin, J. Vialard, L. Yu, and W. Yu, 2009: RAMA: The Research Moored Array for African-Asian-Australian Monsoon Analysis and Prediction. Bull. Am. Meteorol. Soc., 90, 459-480, doi:10.1175/2008BAMS2608.1 -
trunk/src/get_oaflux.sh
r33 r48 46 46 # fontname=Courier, 47 47 # color=blue, 48 # URL="http://forge.ipsl.jussieu.fr/tropflux/browser/trunk/src/get_oaflux. pro"49 # label="${TROPFLUX}/src/get_oaflux. pro"];48 # URL="http://forge.ipsl.jussieu.fr/tropflux/browser/trunk/src/get_oaflux.sh" 49 # label="${TROPFLUX}/src/get_oaflux.sh"]; 50 50 # 51 51 # {oaflux_ref} -> {get_oaflux} -> {file_oaflux} … … 82 82 # EVOLUTIONS 83 83 # ========== 84 # 85 # - fplod 20110421T125407Z aedon.locean-ipsl.upmc.fr (Darwin) 86 # 87 # * typo 84 88 # 85 89 # - fplod 20101216T152647Z aedon.locean-ipsl.upmc.fr (Darwin) -
trunk/src/get_pirata_netcdf.sh
r4 r48 10 10 # ================================================== 11 11 # 12 # 12 # 13 13 # SYNOPSIS 14 14 # ======== … … 23 23 # ``get_pirata_netcdf.sh`` get PIRATA reference files 24 24 # 25 # bf 26 # buoyancy flux 27 # d 28 # sigma-theta 29 # dyn 30 # dynamic height 31 # emp 32 # e-p 33 # iso 34 # 20C depth 35 # met 36 # wind (u,v,speed,direction), airT, hum rel, SST (= w + airt + rh) 37 # pos 38 # lon, lat 39 # rad 40 # shortwave down 41 # rf 42 # rain heat flux 43 # w 44 # wind 45 # 46 # Log file is written on :file:`${TROPFLUX_LOG}/get_pirata_netcdf.log.{YYYYMMDDTHHMMSSZ}` 47 # 48 # .. graphviz:: 49 # 50 # digraph get_pirata_netcdf { 51 # graph [ 52 # rankdir="TB", 53 # ] 54 # 55 # pirata_ref [shape=diamond,fontname=Courier,label="ftp://ftp.pmel.noaa.gov/cdf/sites/daily/*_*_dy.cdf"]; 56 # 57 # file_pirata [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/*_*_dy.cdf"]; 58 # 59 # get_pirata_netcdf [shape=box, 60 # fontname=Courier, 61 # color=blue, 62 # URL="http://forge.ipsl.jussieu.fr/tropflux/browser/trunk/src/get_pirata_netcdf.sh" 63 # label="${TROPFLUX}/src/get_pirata_netcdf.sh"]; 64 # 65 # {pirata_ref} -> {get_pirata_netcdf} -> {file_pirata} 66 # 67 # } 68 # 69 # EXAMPLES 70 # ======== 71 # 72 # You don't have any PIRATA reference data, you just have to run this tool :: 73 # 74 # $ get_pirata_netcdf.sh 75 # 76 # And look at log file with :: 77 # 78 # $ tlogd.sh get_pirata_netcdf 79 # 80 # and of course on files in ${TROPFLUX_ID}. 81 # 25 82 # SEE ALSO 26 83 # ======== … … 28 85 # :ref:`guide data PIRATA <data_in_pirata>` 29 86 # 87 # :ref:`tropflux_profile.sh` 88 # 30 89 # TODO 31 90 # ==== 32 91 # 33 # trace34 # 35 # hard coded directory - usage of ${TROPFLUX_ID}36 # 37 # coding rules92 # list of variables and sites in DESCRIPTION 93 # 94 # do we really need all these variables and sites 95 # 96 # study wget status (no exit now on non null wget status) 38 97 # 39 98 # EVOLUTIONS 40 99 # ========== 41 100 # 101 # $Id$ 102 # 103 # - fplod 20110421T125622Z aedon.locean-ipsl.upmc.fr (Darwin) 104 # 105 # * consolidation 106 # 42 107 # - fplod 20101213T160729Z aedon.locean-ipsl.upmc.fr (Darwin) 43 108 # … … 49 114 # 50 115 #- 51 dir=/Users/jv/data/PIRATA/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 116 system=$(uname) 117 case "${system}" in 118 AIX|IRIX64) 119 echo "www : no specific posix checking" 120 ;; 121 *) 122 set -o posix 123 ;; 124 esac 125 unset system 126 # 127 LANG=POSIX 128 # 129 command=$(basename ${0}) 130 log_date=$(date -u +"%Y%m%dT%H%M%SZ") 131 # 132 usage=" Usage : ${command}" 133 # 134 hostname=$(hostname) 135 # 136 # default 137 # N.A. because no parameters 138 # 139 set -u 140 # 141 # test if wget available 142 tool=wget 143 type ${tool} 1> /dev/null 2>&1 144 status=${?} 145 if [ ${status} -ne 0 ] 146 then 147 echo "${command} : eee : tool ${tool} not found" 148 exit 1 149 fi 150 unset status 151 unset tool 152 # 153 # check for ${TROPFLUX_LOG} definition 154 if [ "${TROPFLUX_LOG}" = "" ] 155 then 156 echo "${command} : eee : \${TROPFLUX_LOG} not defined" 157 exit 1 158 fi 159 # 160 # check for ${TROPFLUX_LOG} existence 161 if [ ! -d ${TROPFLUX_LOG} ] 162 then 163 echo "${command} : eee : ${TROPFLUX_LOG} not found" 164 exit 1 165 fi 166 # 167 # check for permission access on TROPFLUX_LOG 168 if [ ! -x ${TROPFLUX_LOG} ] 169 then 170 echo "${command} : eee : ${TROPFLUX_LOG} not reachable" 171 exit 1 172 fi 173 # 174 # check for write permission on TROPFLUX_LOG 175 if [ ! -w ${TROPFLUX_LOG} ] 176 then 177 echo "${command} : eee : ${TROPFLUX_LOG} not writable" 178 exit 1 179 fi 180 # 181 log=${TROPFLUX_LOG}/$(basename ${0} .sh).log.${log_date} 182 echo "[Context]" 1>> ${log} 183 echo "command=$(basename ${0})" 1>>${log} 184 echo "hostname=${hostname}" 1>> ${log} 185 echo "runtime=${log_date}" 1>> ${log} 186 unset log_date 187 echo "" 1>> ${log} 188 # 64 189 varlist="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" 65 190 sitelist=" 0n0e" 66 sitelist="$sitelist 10s10w 6s10w 0n10w" 67 sitelist="$sitelist 0n23w 4n23w 12n23w 21n23w" 68 sitelist="$sitelist 19s34w 14s32w 8s30w 0n35w" 69 sitelist="$sitelist 4n38w 8n38w 12n38w 15n38w 20n38w" 70 71 cd $dir 72 for site in $sitelist ; do 73 for var in $varlist ; do 74 wget --password=G10b@LCh@Ng3 ftp://taopmelftp@ftp.pmel.noaa.gov/cdf/sites/daily/${var}${site}_dy.cdf 75 done 191 sitelist="${sitelist} 10s10w 6s10w 0n10w" 192 sitelist="${sitelist} 0n23w 4n23w 12n23w 21n23w" 193 sitelist="${sitelist} 19s34w 14s32w 8s30w 0n35w" 194 sitelist="${sitelist} 4n38w 8n38w 12n38w 15n38w 20n38w" 195 # 196 locref="ftp://ftp.pmel.noaa.gov/cdf/sites/daily" 197 # 198 list_url="" 199 # 200 # build URL = f(site,var) 201 for site in ${sitelist} 202 do 203 for var in ${varlist} 204 do 205 list_url="${list_url} ${locref}/${var}${site}_dy.cdf" 206 done 76 207 done 77 78 ls -l 208 unset site 209 unset var 210 unset varlist 211 unset sitelist 212 unset locref 213 # 214 # if file is not already in ${TROPFLUX_ID}, get it 215 for url in ${list_url} 216 do 217 file=${TROPFLUX_ID}/$(basename ${url}) 218 if [ ! -f ${file} ] 219 then 220 wget --tries=1 --no-verbose -P ${TROPFLUX_ID} \ 221 --user=taopmelftp \ 222 --password=G10b@LCh@Ng3 \ 223 ${url} >> ${log} 2>&1 224 wget_status=${?} 225 if [ ${wget_status} -ne 0 ] 226 then 227 echo "${command} : eee : ${url} not found" >> ${log} 2>&1 228 # ++ exit 1 229 else 230 echo "${command} : iii : ${url} found" >> ${log} 2>&1 231 fi 232 unset wget_status 233 else 234 echo "iii : ${file} exists" >> ${log} 235 fi 236 done 237 unset file 238 unset url 239 unset list_url 240 # 241 unset command 242 unset log 243 unset hostname 244 unset usage 245 # 246 # end 247 set 248 exit 0 -
trunk/src/get_rama_netcdf.sh
r4 r48 10 10 # ============================================== 11 11 # 12 #13 12 # SYNOPSIS 14 13 # ======== … … 23 22 # ``get_rama_netcdf.sh`` get RAMA reference files 24 23 # 24 # bf 25 # buoyancy flux 26 # d 27 # sigma-theta 28 # dyn 29 # dynamic height 30 # emp 31 # e-p 32 # iso 33 # 20C depth 34 # met 35 # wind (u,v,speed,direction), airT, hum rel, SST (= w + airt + rh) 36 # pos 37 # lon, lat 38 # rad 39 # shortwave down 40 # rf 41 # rain heat flux 42 # w 43 # wind 44 # 45 # Log file is written on :file:`${TROPFLUX_LOG}/get_rama_netcdf.log.{YYYYMMDDTHHMMSSZ}` 46 # 47 # .. graphviz:: 48 # 49 # digraph get_rama_netcdf { 50 # graph [ 51 # rankdir="TB", 52 # ] 53 # 54 # rama_ref [shape=diamond,fontname=Courier,label="ftp://ftp.pmel.noaa.gov/cdf/sites/daily/*_*_dy.cdf"]; 55 # 56 # file_rama [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/*_*_dy.cdf"]; 57 # 58 # get_rama_netcdf [shape=box, 59 # fontname=Courier, 60 # color=blue, 61 # URL="http://forge.ipsl.jussieu.fr/tropflux/browser/trunk/src/get_rama_netcdf.sh" 62 # label="${TROPFLUX}/src/get_rama_netcdf.sh"]; 63 # 64 # {rama_ref} -> {get_rama_netcdf} -> {file_rama} 65 # 66 # } 67 # 68 # EXAMPLES 69 # ======== 70 # 71 # You don't have any RAMA reference data, you just have to run this tool :: 72 # 73 # $ get_rama_netcdf.sh 74 # 75 # And look at log file with :: 76 # 77 # $ tlogd.sh get_rama_netcdf 78 # 79 # and of course on files in ${TROPFLUX_ID}. 80 # 25 81 # SEE ALSO 26 82 # ======== … … 28 84 # :ref:`guide data RAMA <data_in_rama>` 29 85 # 86 # :ref:`tropflux_profile.sh` 87 # 30 88 # TODO 31 89 # ==== 32 90 # 33 # trace 34 # 35 # hard coded directory - usage of ${TROPFLUX_ID} 36 # 37 # coding rules 91 # list of variables and sites in DESCRIPTION 92 # 93 # do we really need all these variables and sites 94 # 95 # Liste complète de RAMA:: 96 # 97 # sitelist=" 16s55e 12s55e 8s55e 4s55e 1.5s55e 0n55e 1.5n55e 4n55e" 98 # sitelist="${sitelist} 15n65e" 99 # sitelist="${sitelist} 12s67e 8s67e 4s67e 1.5s67e 0n67e 1.5n67e 4n67e 8n67e" 100 # sitelist="${sitelist} 16s80.5e 12s80.5e 8s80.5e 4s80.5e 1.5s80.5e 0n80.5e 1.5n80.5e 4n80.5e" 101 # sitelist="${sitelist} 1.5s90e 0n90e 1.5n90e 4n90e 8n90e 12n90e 15n90e 102 # sitelist="${sitelist} 16s95e 12s95e 8s95e 5s95e" 103 # 104 # study wget status (no exit now on non null wget status) 38 105 # 39 106 # EVOLUTIONS 40 107 # ========== 41 108 # 109 # $Id$ 110 # 111 # - fplod 20110421T133632Z aedon.locean-ipsl.upmc.fr (Darwin) 112 # 113 # * consolidation 114 # 42 115 # - fplod 20101213T160928Z aedon.locean-ipsl.upmc.fr (Darwin) 43 116 # … … 49 122 # 50 123 #- 51 52 53 dir=/Users/jv/data/RAMA/data/ 54 55 # bf : buoyancy flux 56 # d : sigma-theta 57 # dyn : dynamic height 58 # emp : e-p 59 # iso : 20C depth 60 # met : wind (u,v,speed,direction), airT, hum rel, SST (= w + airt + rh) 61 # pos : lon, lat 62 # rad : shortwave down 63 # rf : rain heat flux 64 # w : wind 65 124 system=$(uname) 125 case "${system}" in 126 AIX|IRIX64) 127 echo "www : no specific posix checking" 128 ;; 129 *) 130 set -o posix 131 ;; 132 esac 133 unset system 134 # 135 LANG=POSIX 136 # 137 command=$(basename ${0}) 138 log_date=$(date -u +"%Y%m%dT%H%M%SZ") 139 # 140 usage=" Usage : ${command}" 141 # 142 hostname=$(hostname) 143 # 144 # default 145 # N.A. because no parameters 146 # 147 set -u 148 # 149 # test if wget available 150 tool=wget 151 type ${tool} 1> /dev/null 2>&1 152 status=${?} 153 if [ ${status} -ne 0 ] 154 then 155 echo "${command} : eee : tool ${tool} not found" 156 exit 1 157 fi 158 unset status 159 unset tool 160 # 161 # check for ${TROPFLUX_LOG} definition 162 if [ "${TROPFLUX_LOG}" = "" ] 163 then 164 echo "${command} : eee : \${TROPFLUX_LOG} not defined" 165 exit 1 166 fi 167 # 168 # check for ${TROPFLUX_LOG} existence 169 if [ ! -d ${TROPFLUX_LOG} ] 170 then 171 echo "${command} : eee : ${TROPFLUX_LOG} not found" 172 exit 1 173 fi 174 # 175 # check for permission access on TROPFLUX_LOG 176 if [ ! -x ${TROPFLUX_LOG} ] 177 then 178 echo "${command} : eee : ${TROPFLUX_LOG} not reachable" 179 exit 1 180 fi 181 # 182 # check for write permission on TROPFLUX_LOG 183 if [ ! -w ${TROPFLUX_LOG} ] 184 then 185 echo "${command} : eee : ${TROPFLUX_LOG} not writable" 186 exit 1 187 fi 188 # 189 log=${TROPFLUX_LOG}/$(basename ${0} .sh).log.${log_date} 190 echo "[Context]" 1>> ${log} 191 echo "command=$(basename ${0})" 1>>${log} 192 echo "hostname=${hostname}" 1>> ${log} 193 echo "runtime=${log_date}" 1>> ${log} 194 unset log_date 195 echo "" 1>> ${log} 196 # 66 197 varlist="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" 198 # 67 199 sitelist="12s55e 8s55e 8s67e 8s80.5e 4s80.5e 1.5s80.5e 0n80.5e 1.5n80.5e 1.5s90e 0n90e 1.5n90e 4n90e 8n90e 12n90e 15n90e 5s95e" 68 200 69 cd $dir70 for site in $sitelist ; do71 for var in $varlist ; do72 wget --password=G10b@LCh@Ng3 ftp://taopmelftp@ftp.pmel.noaa.gov/cdf/sites/daily/${var}${site}_dy.cdf73 done74 done75 76 ls -l77 78 201 # 79 202 #Liste complète de RAMA: 80 203 #sitelist=" 16s55e 12s55e 8s55e 4s55e 1.5s55e 0n55e 1.5n55e 4n55e" 81 #siteliste="$sitelist 15n65e" 82 #siteliste="$sitelist 12s67e 8s67e 4s67e 1.5s67e 0n67e 1.5n67e 4n67e 8n67e" 83 #siteliste="$sitelist 16s80.5e 12s80.5e 8s80.5e 4s80.5e 1.5s80.5e 0n80.5e 1.5n80.5e 4n80.5e" 84 #siteliste="$sitelist 1.5s90e 0n90e 1.5n90e 4n90e 8n90e 12n90e 15n90e 85 #siteliste="$sitelist 16s95e 12s95e 8s95e 5s95e" 86 # 204 #sitelist="${sitelist} 15n65e" 205 #sitelist="${sitelist} 12s67e 8s67e 4s67e 1.5s67e 0n67e 1.5n67e 4n67e 8n67e" 206 #sitelist="${sitelist} 16s80.5e 12s80.5e 8s80.5e 4s80.5e 1.5s80.5e 0n80.5e 1.5n80.5e 4n80.5e" 207 #sitelist="${sitelist} 1.5s90e 0n90e 1.5n90e 4n90e 8n90e 12n90e 15n90e 208 #sitelist="${sitelist} 16s95e 12s95e 8s95e 5s95e" 209 # 210 # 211 locref="ftp://ftp.pmel.noaa.gov/cdf/sites/daily" 212 # 213 list_url="" 214 # 215 # build URL = f(site,var) 216 for site in ${sitelist} 217 do 218 for var in ${varlist} 219 do 220 list_url="${list_url} ${locref}/${var}${site}_dy.cdf" 221 done 222 done 223 unset site 224 unset var 225 unset varlist 226 unset sitelist 227 unset locref 228 # 229 # if file is not already in ${TROPFLUX_ID}, get it 230 for url in ${list_url} 231 do 232 file=${TROPFLUX_ID}/$(basename ${url}) 233 if [ ! -f ${file} ] 234 then 235 wget --tries=1 --no-verbose -P ${TROPFLUX_ID} \ 236 --user=taopmelftp \ 237 --password=G10b@LCh@Ng3 \ 238 ${url} >> ${log} 2>&1 239 wget_status=${?} 240 if [ ${wget_status} -ne 0 ] 241 then 242 echo "${command} : eee : ${url} not found" >> ${log} 2>&1 243 # ++ exit 1 244 else 245 echo "${command} : iii : ${url} found" >> ${log} 2>&1 246 fi 247 unset wget_status 248 else 249 echo "iii : ${file} exists" >> ${log} 250 fi 251 done 252 unset file 253 unset url 254 unset list_url 255 # 256 unset command 257 unset log 258 unset hostname 259 unset usage 260 # 261 # end 262 set 263 exit 0 -
trunk/src/get_tao_netcdf.sh
r4 r48 10 10 # ============================================ 11 11 # 12 #13 12 # SYNOPSIS 14 13 # ======== … … 23 22 # ``get_tao_netcdf.sh`` get TAO reference files 24 23 # 24 # bf 25 # buoyancy flux 26 # d 27 # sigma-theta 28 # dyn 29 # dynamic height 30 # emp 31 # e-p 32 # iso 33 # 20C depth 34 # met 35 # wind (u,v,speed,direction), airT, hum rel, SST (= w + airt + rh) 36 # pos 37 # lon, lat 38 # rad 39 # shortwave down 40 # rf 41 # rain heat flux 42 # w 43 # wind 44 # 45 # Log file is written on :file:`${TROPFLUX_LOG}/get_tao_netcdf.log.{YYYYMMDDTHHMMSSZ}` 46 # 47 # .. graphviz:: 48 # 49 # digraph get_tao_netcdf { 50 # graph [ 51 # rankdir="TB", 52 # ] 53 # 54 # tao_ref [shape=diamond,fontname=Courier,label="ftp://ftp.pmel.noaa.gov/cdf/sites/daily/*_*_dy.cdf"]; 55 # 56 # file_tao [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/*_*_dy.cdf"]; 57 # 58 # get_tao_netcdf [shape=box, 59 # fontname=Courier, 60 # color=blue, 61 # URL="http://forge.ipsl.jussieu.fr/tropflux/browser/trunk/src/get_tao_netcdf.sh" 62 # label="${TROPFLUX}/src/get_tao_netcdf.sh"]; 63 # 64 # {tao_ref} -> {get_tao_netcdf} -> {file_tao} 65 # 66 # } 67 # 68 # EXAMPLES 69 # ======== 70 # 71 # You don't have any TAO reference data, you just have to run this tool :: 72 # 73 # $ get_tao_netcdf.sh 74 # 75 # And look at log file with :: 76 # 77 # $ tlogd.sh get_tao_netcdf 78 # 79 # and of course on files in ${TROPFLUX_ID}. 80 # 25 81 # SEE ALSO 26 82 # ======== … … 28 84 # :ref:`guide data TAO <data_in_tao>` 29 85 # 86 # :ref:`tropflux_profile.sh` 87 # 30 88 # TODO 31 89 # ==== 32 90 # 33 # trace34 # 35 # hard coded directory - usage of ${TROPFLUX_ID}36 # 37 # coding rules91 # list of variables and sites in DESCRIPTION 92 # 93 # do we really need all these variables and sites 94 # 95 # study wget status (no exit now on non null wget status) 38 96 # 39 97 # EVOLUTIONS 40 98 # ========== 41 99 # 100 # $Id$ 101 # 102 # - fplod 20110421T154046Z aedon.locean-ipsl.upmc.fr (Darwin) 103 # 104 # * consolidation 105 # 42 106 # - fplod 20101213T161152Z aedon.locean-ipsl.upmc.fr (Darwin) 43 107 # … … 49 113 # 50 114 #- 51 dir=/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 115 system=$(uname) 116 case "${system}" in 117 AIX|IRIX64) 118 echo "www : no specific posix checking" 119 ;; 120 *) 121 set -o posix 122 ;; 123 esac 124 unset system 125 # 126 LANG=POSIX 127 # 128 command=$(basename ${0}) 129 log_date=$(date -u +"%Y%m%dT%H%M%SZ") 130 # 131 usage=" Usage : ${command}" 132 # 133 hostname=$(hostname) 134 # 135 # default 136 # N.A. because no parameters 137 # 138 set -u 139 # 140 # test if wget available 141 tool=wget 142 type ${tool} 1> /dev/null 2>&1 143 status=${?} 144 if [ ${status} -ne 0 ] 145 then 146 echo "${command} : eee : tool ${tool} not found" 147 exit 1 148 fi 149 unset status 150 unset tool 151 # 152 # check for ${TROPFLUX_LOG} definition 153 if [ "${TROPFLUX_LOG}" = "" ] 154 then 155 echo "${command} : eee : \${TROPFLUX_LOG} not defined" 156 exit 1 157 fi 158 # 159 # check for ${TROPFLUX_LOG} existence 160 if [ ! -d ${TROPFLUX_LOG} ] 161 then 162 echo "${command} : eee : ${TROPFLUX_LOG} not found" 163 exit 1 164 fi 165 # 166 # check for permission access on TROPFLUX_LOG 167 if [ ! -x ${TROPFLUX_LOG} ] 168 then 169 echo "${command} : eee : ${TROPFLUX_LOG} not reachable" 170 exit 1 171 fi 172 # 173 # check for write permission on TROPFLUX_LOG 174 if [ ! -w ${TROPFLUX_LOG} ] 175 then 176 echo "${command} : eee : ${TROPFLUX_LOG} not writable" 177 exit 1 178 fi 179 # 180 log=${TROPFLUX_LOG}/$(basename ${0} .sh).log.${log_date} 181 echo "[Context]" 1>> ${log} 182 echo "command=$(basename ${0})" 1>>${log} 183 echo "hostname=${hostname}" 1>> ${log} 184 echo "runtime=${log_date}" 1>> ${log} 185 unset log_date 186 echo "" 1>> ${log} 187 # 64 188 varlist="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" 65 sitelist= "2n137e 5n137e 8n137e" 66 sitelist="$sitelist 0n147e 2n147e 5n147e" 67 sitelist="$sitelist 5s156e 2s156e 0n156e 2n156e 5n156e 8n156e" 68 sitelist="$sitelist 8s165e 5s165e 2s165e 0n165e 2n165e 5n165e 8n165e" 69 sitelist="$sitelist 8s180w 5s180w 2s180w 0n180w 2n180w 5n180w 8n180w" 70 sitelist="$sitelist 8s170w 5s170w 2s170w 0n170w 2n170w 5n170w 8n170w" 71 sitelist="$sitelist 8s155w 5s155w 2s155w 0n155w 2n155w 5n155w 8n155w" 72 sitelist="$sitelist 5s140w 2s140w 0n140w 2n140w 5n140w 9n140w" 73 sitelist="$sitelist 8s125w 5s125w 2s125w 0n125w 2n125w 5n125w 8n125w" 74 sitelist="$sitelist 8s110w 5s110w 2s110w 0n110w 2n110w 5n110w 8n110w" 75 sitelist="$sitelist 8s95w 5s95w 2s95w 0n95w 2n95w 5n95w 8n95w " 76 77 echo $sitelist 78 79 cd $dir 80 for 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 189 # 190 sitelist=" 2n137e 5n137e 8n137e" 191 sitelist="${sitelist} 0n147e 2n147e 5n147e" 192 sitelist="${sitelist} 5s156e 2s156e 0n156e 2n156e 5n156e 8n156e" 193 sitelist="${sitelist} 8s165e 5s165e 2s165e 0n165e 2n165e 5n165e 8n165e" 194 sitelist="${sitelist} 8s180w 5s180w 2s180w 0n180w 2n180w 5n180w 8n180w" 195 sitelist="${sitelist} 8s170w 5s170w 2s170w 0n170w 2n170w 5n170w 8n170w" 196 sitelist="${sitelist} 8s155w 5s155w 2s155w 0n155w 2n155w 5n155w 8n155w" 197 sitelist="${sitelist} 5s140w 2s140w 0n140w 2n140w 5n140w 9n140w" 198 sitelist="${sitelist} 8s125w 5s125w 2s125w 0n125w 2n125w 5n125w 8n125w" 199 sitelist="${sitelist} 8s110w 5s110w 2s110w 0n110w 2n110w 5n110w 8n110w" 200 sitelist="${sitelist} 8s95w 5s95w 2s95w 0n95w 2n95w 5n95w 8n95w " 201 # 202 locref="ftp://ftp.pmel.noaa.gov/cdf/sites/daily" 203 # 204 list_url="" 205 # 206 # build URL = f(site,var) 207 for site in ${sitelist} 208 do 209 for var in ${varlist} 210 do 211 list_url="${list_url} ${locref}/${var}${site}_dy.cdf" 212 done 84 213 done 85 86 ls -l 214 unset site 215 unset var 216 unset varlist 217 unset sitelist 218 unset locref 219 # 220 # if file is not already in ${TROPFLUX_ID}, get it 221 for url in ${list_url} 222 do 223 file=${TROPFLUX_ID}/$(basename ${url}) 224 if [ ! -f ${file} ] 225 then 226 wget --tries=1 --no-verbose -P ${TROPFLUX_ID} \ 227 --user=taopmelftp \ 228 --password=G10b@LCh@Ng3 \ 229 ${url} >> ${log} 2>&1 230 wget_status=${?} 231 if [ ${wget_status} -ne 0 ] 232 then 233 echo "${command} : eee : ${url} not found" >> ${log} 2>&1 234 # ++ exit 1 235 else 236 echo "${command} : iii : ${url} found" >> ${log} 2>&1 237 fi 238 unset wget_status 239 else 240 echo "iii : ${file} exists" >> ${log} 241 fi 242 done 243 unset file 244 unset url 245 unset list_url 246 # 247 unset command 248 unset log 249 unset hostname 250 unset usage 251 # 252 # end 253 set 254 exit 0
Note: See TracChangeset
for help on using the changeset viewer.