- Timestamp:
- 01/04/12 15:45:40 (12 years ago)
- Location:
- trunk/src
- Files:
-
- 5 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/extract_amsua.pro
r481 r482 14 14 ; generaliser pour amsub aussi) 15 15 ; 16 ; decode les noms des fichiers dans la date choisie, puis17 ; appelle le prgm de lecture 16 ; decode les noms des fichiers dans la liste de fichiers, puis 17 ; appelle le prgm de lecture L1C 18 18 ; 19 19 ; appelle :ref:`interpol_correc`, qui fournit les fonctions de correction au … … 22 22 ; 23 23 ; applique une interpolation tenant compte de la dimension de la tache 24 ; au sol selon la position dans la fauchee 24 ; au sol selon la position dans la fauchee : appel :ref:`interpolswath` 25 25 ; 26 26 ; ecrit les donnees pour la zone (lat/long) choisie 27 ; 28 ; ++ le fichier de sortie contient dans l'ordre mm, jj (jour de 29 ; l'annee), le temps (identique pour les points d'une meme fauchee), le 30 ; no satellite, le no de fov (1 a 40 ou 1 a 90), long, lat, tb 31 ; 32 ; Les valeurs manquantes sont codées par NaN. 27 ; la structure de sortie contient un en-tete (date, zone, resol) 28 ; puis les donnees du jour et du canal traite 29 ; 33 30 ; 34 31 ; .. only:: man … … 71 68 ; 72 69 ; $ mkdir -p ${PROJECT_ID}/AMSU/2006/08 73 ; $ echo "${PROJECT_ID}/AMSU/AMSUAN15/L1C/2006/2006_08_01/NSS.AMAX.NK.D06213.S0110.E0255.B4271112.GC.L1C" > ${PROJECT_ID}/list_file a74 ; $ echo "${PROJECT_ID}/AMSU/AMSUAN15/L1C/2006/2006_08_01/NSS.AMAX.NK.D06213.S0250.E0437.B4271213.GC.L1C" >> ${PROJECT_ID}/list_file a70 ; $ echo "${PROJECT_ID}/AMSU/AMSUAN15/L1C/2006/2006_08_01/NSS.AMAX.NK.D06213.S0110.E0255.B4271112.GC.L1C" > ${PROJECT_ID}/list_file 71 ; $ echo "${PROJECT_ID}/AMSU/AMSUAN15/L1C/2006/2006_08_01/NSS.AMAX.NK.D06213.S0250.E0437.B4271213.GC.L1C" >> ${PROJECT_ID}/list_file 75 72 ; 76 73 ; Using AMSU-A channel 5:: … … 192 189 ; called by :ref:`traite_amsuab.sh` 193 190 ; 194 ; use :ref:`read_amsua1c .pro`, :ref:`read_amsub1c.pro`,191 ; use :ref:`read_amsua1c`, :ref:`read_amsub1c.pro`, 195 192 ; :func:`geolocation_to_string_idl`, :func:`mem_to_file_amsu_t2` 196 ; 197 ; next step : ++ 193 ; use :ref:`interpol_correc` 194 ; use :ref:`interpolswath` 195 ; 196 ; next step : au choix: amsu2ncdf ou cresamsu pour transformation en netcdf 198 197 ; 199 198 ; TODO … … 203 202 ; interpolswath ne gere pas cette situation 204 203 ; 205 ; comprendre les points bizarres autour de -40,30 visibles avec l'exemple206 ; de 20060801207 ;208 ; lever le doute sur le contenu du fichier écrit par le printf (je (fplod)209 ; crains des zesors louches!!).louche210 ;211 204 ; vérifier que pas NaN dans les lignes écrites 212 205 ; 213 206 ; faire un test avec un zone géographique dans le pacifique pour voir comment 214 ; le système réagi (devrait dire : rien à faire !)207 ; le système réagit 215 208 ; 216 209 ; changer le nom des fichiers de listes pour éviter des conflits lors de runs … … 221 214 ; eviter la creation d'un fichier vide (si pas de points dans la zone) 222 215 ; 223 ; tester la cohérence entre les fichiers présents dans list_file a216 ; tester la cohérence entre les fichiers présents dans list_file 224 217 ; en terme de date avec yyyy, mm et dd donnés en paramètre 225 218 ; -
trunk/src/get_amsu.sh
r396 r482 45 45 # amsu_ref_t1 [shape=ellipse,fontname=Courier,label="/bdd/AMSU-1C/AMSU*/L1C/yyyy/yyyy_mm_dd/*.L1C"]; 46 46 # 47 # amsu_ref_a_cor_land [shape=ellipse,fontname=Courier,label="/homedata/eymard/TRAIT_AMSU/CORR_LAND_AMSUA_JUIL2006.DAT"];48 # amsu_ref_a_cor_sea [shape=ellipse,fontname=Courier,label="/homedata/eymard/TRAIT_AMSU/CORR_SEA_AMSUA_JUIL2006.DAT"];49 # amsu_ref_b_cor_land [shape=ellipse,fontname=Courier,label="/homedata/eymard/TRAIT_AMSU/CORR_LAND_AMSUB_JUIL2006.DAT"];50 # amsu_ref_b_cor_sea [shape=ellipse,fontname=Courier,label="/homedata/eymard/TRAIT_AMSU/AMSU/CORR_SEA_AMSUB_JUIL2006.DAT"];51 47 # 52 48 # amsu_t1 [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/AMSU/AMSU*/L1C/yyyy/yyyy_mm_dd/*.L1C"]; 53 49 # 54 # amsu_a_cor_land [shape=diamond,fontname=Courier,label="${PROJECT_ID}/AMSU/CORR_LAND_AMSUA_JUIL2006.DAT"];55 # amsu_a_cor_sea [shape=diamond,fontname=Courier,label="${PROJECT_ID}/AMSU/CORR_SEA_AMSUA_JUIL2006.DAT"];56 # amsu_b_cor_land [shape=diamond,fontname=Courier,label="${PROJECT_ID}/AMSU/CORR_LAND_AMSUB_JUIL2006.DAT"];57 # amsu_b_cor_sea [shape=diamond,fontname=Courier,label="${PROJECT_ID}/AMSU/CORR_SEA_AMSUB_JUIL2006.DAT"];58 50 # 59 51 # log [shape=ellipse,fontname=Courier,label="${PROJECT_LOG}/get_amsu.log.YYYYMMDDTHHMMSSZ"]; … … 357 349 if [ ! -d ${loc} ] 358 350 then 359 mkdir -p ${loc} 351 mkdir -p ${loc} 2> /dev/null 360 352 echo "iii : adding directory ${loc}" >> ${log} 361 353 fi … … 370 362 fi 371 363 # 372 # looking for correction files 373 list_url="" 374 dirref_base=/homedata/eymard/TRAIT_AMSU/ 375 for bfile in CORR_LAND_AMSUA_JUIL2006.DAT CORR_SEA_AMSUA_JUIL2006.DAT CORR_LAND_AMSUB_JUIL2006.DAT CORR_SEA_AMSUB_JUIL2006.DAT 376 do 377 file=${dirref_base}/${bfile} 378 if [ ! -f ${file} ] 379 then 380 echo "iii : ${file} not found" >> ${log} 2>&1 381 else 382 echo "iii : ${file} found" >> ${log} 2>&1 383 list_url="${list_url} ${file}" 384 fi 385 done 386 # 387 if [ "${list_url}" = "" ] 388 then 389 echo "iii : no files founds" >> ${log} 2>&1 390 else 391 # 392 # if file is not already in ${PROJECT_ID}, get it 393 for url in ${list_url} 394 do 395 file=$(echo ${url} | sed -e "s+${dirref_base}+${PROJECT_ID}/AMSU/+") 396 if [ ! -f ${file} ] 397 then 398 loc=$(dirname ${file}) 399 if [ ! -d ${loc} ] 400 then 401 mkdir -p ${loc} 402 echo "iii : adding directory ${loc}" >> ${log} 403 fi 404 ln -s ${url} ${file} 405 echo "iii : adding file ${file}" >> ${log} 406 else 407 echo "iii : ${file} exists" >> ${log} 408 fi 409 done 410 unset file 411 unset url 412 fi 413 unset list_url 364 414 365 # 415 366 unset command -
trunk/src/interpol_correc.pro
r475 r482 26 26 ; digraph interpol_correc { 27 27 ; 28 ; amsu_b_cor_land [shape=diamond,fontname=Courier,label="${PROJECT _ID}/AMSU/CORR_LAND_AMSUB_JUIL2006.DAT"];29 ; amsu_b_cor_sea [shape=diamond,fontname=Courier,label="${PROJECT _ID}/AMSU/CORR_SEA_AMSUB_JUIL2006.DAT"];28 ; amsu_b_cor_land [shape=diamond,fontname=Courier,label="${PROJECT}/src/dataref_amsu/CORR_LAND_AMSUB_JUIL2006.DAT"]; 29 ; amsu_b_cor_sea [shape=diamond,fontname=Courier,label="${PROJECT}/src/dataref_amsu/CORR_SEA_AMSUB_JUIL2006.DAT"]; 30 30 ; 31 31 ; interpol_correc [shape=box, … … 160 160 161 161 162 path=project_ id_env162 path=project_env + 'src/dataref_amsu/' 163 163 ; lecture des fichiers d'ajustement au nadir pour AMSUA et B 164 164 ; cas amsua 165 165 if nomcanal eq 'a' then begin 166 cor_landa=p roject_id_env+'AMSU/CORR_LAND_AMSUA_JUIL2006.DAT'167 cor_seaa=p roject_id_env+'AMSU/CORR_SEA_AMSUA_JUIL2006.DAT'166 cor_landa=path + '/CORR_LAND_AMSUA_JUIL2006.DAT' 167 cor_seaa=path + '/CORR_SEA_AMSUA_JUIL2006.DAT' 168 168 ;test de l'autre fichier de correction: quel est le bon??? 169 169 ; cor_landa=project_id_env+'AMSU/CORR_LAND_AMSUA.DAT' … … 213 213 ;cas amsub 214 214 if nomcanal eq 'b' then begin 215 cor_landb=path+' AMSU/CORR_LAND_AMSUB_JUIL2006.DAT'216 cor_seab=path+' AMSU/CORR_SEA_AMSUB_JUIL2006.DAT'215 cor_landb=path+'CORR_LAND_AMSUB_JUIL2006.DAT' 216 cor_seab=path+'CORR_SEA_AMSUB_JUIL2006.DAT' 217 217 ;cor_landb=path+'AMSU/CORR_LAND_AMSUB.DAT' 218 218 ;cor_seab=path+'AMSU/CORR_SEA_AMSUB.DAT' -
trunk/src/traite_amsuab.sh
r478 r482 55 55 # 56 56 # amsu_t1 [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/AMSU/AMSU*/L1C/yyyy/yyyy_mm_dd/*.L1C"]; 57 # amsu_a_cor_land [shape=diamond,fontname=Courier,label="${PROJECT _ID}/AMSU/CORR_LAND_AMSUA_JUIL2006.DAT"];58 # amsu_a_cor_sea [shape=diamond,fontname=Courier,label="${PROJECT _ID}/AMSU/CORR_SEA_AMSUA_JUIL2006.DAT"];59 # amsu_b_cor_land [shape=diamond,fontname=Courier,label="${PROJECT _ID}/AMSU/CORR_LAND_AMSUB_JUIL2006.DAT"];60 # amsu_b_cor_sea [shape=diamond,fontname=Courier,label="${PROJECT _ID}/AMSU/CORR_SEA_AMSUB_JUIL2006.DAT"];61 # amsu_t2 [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/yyyy/mm/ amsua_amsub_yyyymmdd_geomin_geomax.dat"];62 # amsu_t3 [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/yyyy/mm/ amsua_amsub_yyyymmdd_geomin_geomax_nadir.dat"];63 # amsu_t4 [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/yyyy/mm/ amsua_amsub_yyyymmdd_geomin_geomax_nadir.nc"];57 # amsu_a_cor_land [shape=diamond,fontname=Courier,label="${PROJECT}/src/dataref_amsu/CORR_LAND_AMSUA_JUIL2006.DAT"]; 58 # amsu_a_cor_sea [shape=diamond,fontname=Courier,label="${PROJECT}/src/dataref_amsu/CORR_SEA_AMSUA_JUIL2006.DAT"]; 59 # amsu_b_cor_land [shape=diamond,fontname=Courier,label="${PROJECT}/src/dataref_amsu/CORR_LAND_AMSUB_JUIL2006.DAT"]; 60 # amsu_b_cor_sea [shape=diamond,fontname=Courier,label="${PROJECT}/src/dataref_amsu/CORR_SEA_AMSUB_JUIL2006.DAT"]; 61 # amsu_t2 [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/yyyy/mm/numch_yyyymmdd_geomin_geomax.dat"]; 62 # amsu_t3 [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/yyyy/mm/numch_yyyymmdd_geomin_geomax_nadir.dat"]; 63 # amsu_t4 [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/yyyy/mm/numch_yyyymmdd_geomin_geomax_nadir.nc"]; 64 64 # mask [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/MASK/ETOPO1_Ice_g_gmt4.nc"]; 65 65 # … … 92 92 # If you want to use only AMSU-B:: 93 93 # 94 # $ traite_amsuab.sh -b 20060813 -e 2006081 4 -lonmin -25 -lonmax 25 -latmin -5 -latmax 20 -numch b594 # $ traite_amsuab.sh -b 20060813 -e 20060815 -lonmin -25 -lonmax 25 -latmin -5 -latmax 20 -numch a5 95 95 # 96 96 # SEE ALSO … … 117 117 # ==== 118 118 # 119 # still not working for use_amsua = 1 because of pb inside correct_nadir_amsu119 # test si list_file non vide pour lancer IDL 120 120 # 121 121 # tri chrono dans les list_filea ou apres la production du fichier .dat … … 129 129 # /homedata/pinsard/varamma_d/AMSU/AMSUBN17/L1C/2006/2006_08_01/NSS.AMBX.NM.D06213.S1029.E1224.B2132223.WI.L1C 130 130 # avec use_amsua 0 131 #132 # why need .compile ?!133 131 # 134 132 # build/complete catalog … … 465 463 # write the file ${PROJECT_ID}/list_filea containing AMSU-A file on the current date 466 464 ls ${PROJECT_ID}/AMSU/AMSU${prefix}*/L1C/${yyyy}/${yyyy}_${mm}_${dd}/*.L1C > ${PROJECT_ID}/list_file 467 465 # 466 # build output directory if needed 467 mkdir -p ${PROJECT_ID}/AMSU/${yyyy}/${mm} 2> /dev/null 468 # 469 # build IDL commands file 468 470 cat >> ${VARAMMA}/src/traite_amsu_${$}.pro << EOF 469 471 .compile interpol_correc … … 492 494 fi 493 495 rm ${VARAMMA}/src/traite_amsu_${$}.pro 494 rm 496 rm ${PROJECT_ID}/list_file 2> /dev/null 495 497 unset status 496 498 if [ ${netcdf_build} -eq 1 ]
Note: See TracChangeset
for help on using the changeset viewer.