- Timestamp:
- 12/13/11 15:51:21 (13 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/file_amsu_t2_to_mem.pro
r459 r460 5 5 ; ======================= 6 6 ; 7 ; .. function:: file_amsu_t2_to_mem(yyyy, mm, dd, numch, testfilename)7 ; .. function:: file_amsu_t2_to_mem(yyyy, mm, dd, numch, lon_min, lon_max, lat_min, lat_max, testfilename) 8 8 ; 9 9 ; DESCRIPTION … … 13 13 ; 14 14 ; This type of file has been produced by :ref:`extract_amsua.pro` 15 ; thow landseamask is NaN++16 15 ; 17 16 ; If **testfilename** is not empty, this filename will be written, otherwise … … 25 24 ; 26 25 ; Realistic example with VARAMMA file AMSU-A chanel 5 27 ; :file:`${PROJECT_ID}/AMSU/2006/08/a5_20060801 .dat`::26 ; :file:`${PROJECT_ID}/AMSU/2006/08/a5_20060801_060w30s_050e45n.dat`:: 28 27 ; 29 28 ; IDL> numch='a5' … … 31 30 ; IDL> mm=8 32 31 ; IDL> dd=1 32 ; IDL> lon_min=-60. 33 ; IDL> lon_max=50. 34 ; IDL> lat_min=-30. 35 ; IDL> lat_max=45. 33 36 ; IDL> testfilename='' 34 ; IDL> result = file_amsu_t2_to_mem(yyyy, mm, dd, numch, testfilename)37 ; IDL> result = file_amsu_t2_to_mem(yyyy, mm, dd, numch, lon_min, lon_max, lat_min, lat_max, testfilename) 35 38 ; 36 39 ; impression de controle : structure et 1re ligne de données:: … … 53 56 ; ajouter de # dans les lignes d'entete 54 57 ; 55 ; à intégrer dans correct_nadir_amsu.pro58 ; à intégrer dansla chaine de traitement amsu 56 59 ; 57 60 ; check args … … 65 68 ; 66 69 ; $URL$ 70 ; 71 ; - fplod 20111213T143503Z aedon.locean-ipsl.upmc.fr (Darwin) 72 ; 73 ; * geobox in filename 67 74 ; 68 75 ; - fplod 20111213T094118Z cratos (Linux) … … 95 102 ;- 96 103 FUNCTION file_amsu_t2_to_mem, yyyy, mm, dd, numch $ 104 , lon_min, lon_max, lat_min, lat_max $ 97 105 , testfilename 98 106 ; … … 106 114 usage = 'result=file_amsu_t2_to_mem(yyyy, mm, dd, numch, testfilename)' 107 115 nparam = N_PARAMS() 108 IF (nparam NE 5) THEN BEGIN116 IF (nparam NE 9) THEN BEGIN 109 117 ras = report(['Incorrect number of arguments.' $ 110 118 + '!C' $ … … 114 122 ; 115 123 if (testfilename eq '') then begin 124 look = 'filename' 125 scale = 1. 126 geomin = geolocation_to_string_idl(lon_min, lat_min, look, scale) 127 geomax = geolocation_to_string_idl(lon_max, lat_max, look, scale) 116 128 fullfilename = project_id_env+ 'AMSU/' $ 117 129 + string(yyyy,format='(I4.4)') + '/' $ … … 120 132 + string(yyyy,format='(I4.4)') $ 121 133 + string(mm,format='(I2.2)') $ 122 + string(dd,format='(I2.2)') $ 134 + string(dd,format='(I2.2)') + '_' $ 135 + geomin + '_' $ 136 + geomax $ 123 137 + '.dat' 124 138 endif else begin … … 165 179 ;++ handle error 166 180 ; 167 help, result,/structure168 help, header1,/structure169 181 ; read header lines 170 182 READF, lun, header1, format=format_header1 -
trunk/src/mem_to_file_amsu_t2.pro
r459 r460 5 5 ; ======================= 6 6 ; 7 ; .. function:: mem_to_file_amsu_t2( yyyy, mm, dd, numch,amsu_t2, testfilename)7 ; .. function:: mem_to_file_amsu_t2(amsu_t2, testfilename) 8 8 ; 9 9 ; DESCRIPTION … … 44 44 ; :func:`file_amsu_t2_to_mem` 45 45 ; 46 ; use :func:`geolocation_to_string_idl` 47 ; 46 48 ; TODO 47 49 ; ==== … … 55 57 ; check args 56 58 ; 57 ; spécial idl : je n arrive pas à éviter la boucle sur les ligens de data !!59 ; spécial idl : je n'arrive pas à éviter la boucle sur les lignes de data !! 58 60 ; 59 61 ; EVOLUTIONS … … 63 65 ; 64 66 ; $URL$ 67 ; 68 ; - fplod 20111213T143503Z aedon.locean-ipsl.upmc.fr (Darwin) 69 ; 70 ; * geobox in filename 65 71 ; 66 72 ; - fplod 20111213T094118Z cratos (Linux) … … 89 95 ;- 90 96 FUNCTION mem_to_file_amsu_t2, amsu_t2 $ 91 97 , testfilename 92 98 ; 93 99 compile_opt idl2, strictarrsubs … … 109 115 ENDIF 110 116 ; 117 111 118 if (testfilename eq '') then begin 119 look = 'filename' 120 scale = 1. 121 geomin = geolocation_to_string_idl(amsu_t2.header2.lon_min, amsu_t2.header2.lat_min, look, scale) 122 geomax = geolocation_to_string_idl(amsu_t2.header2.lon_max, amsu_t2.header2.lat_max, look, scale) 112 123 fullfilename = project_id_env+ 'AMSU/' $ 113 124 + string(amsu_t2.header1.yyyy,format='(I4.4)') + '/' $ … … 116 127 + string(amsu_t2.header1.yyyy,format='(I4.4)') $ 117 128 + string(amsu_t2.header1.mm,format='(I2.2)') $ 118 + string(amsu_t2.header1.dd,format='(I2.2)') $ 129 + string(amsu_t2.header1.dd,format='(I2.2)') + '_' $ 130 + geomin + '_' $ 131 + geomax $ 119 132 + '.dat' 120 133 endif else begin
Note: See TracChangeset
for help on using the changeset viewer.