Changeset 495 for trunk/SRC/ToBeReviewed/LECTURE
- Timestamp:
- 04/17/14 10:49:43 (10 years ago)
- Location:
- trunk/SRC/ToBeReviewed/LECTURE
- Files:
-
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/ToBeReviewed/LECTURE/GRIB/TABLES/usertables.txt
r67 r495 23 23 [This is the preferred search order for foreign-language parameter tables.] 24 24 25 26 25 The name of the user-defined table is searched for in 27 26 … … 37 36 setenv GRIBTAB ~/data/gribtab (csh) 38 37 GRIBTAB=$HOME/data/gribtab ; export GRIBTAB (sh) 39 40 41 38 42 39 The format of the GRIBTAB file is -
trunk/SRC/ToBeReviewed/LECTURE/GRIB/bit2int.pro
r327 r495 2 2 ; @file_comments 3 3 ; 4 ;5 4 ; @categories 6 ;7 5 ; 8 6 ; @param BITIN 9 7 ; 10 ;11 8 ; @keyword CHECKNEG 12 ;13 9 ; 14 10 ; @returns 15 11 ; 16 ;17 12 ; @uses 18 ;19 13 ; 20 14 ; @restrictions 21 15 ; 22 ;23 16 ; @examples 24 17 ; 25 ;26 18 ; @history 27 ;28 19 ; 29 20 ; @version -
trunk/SRC/ToBeReviewed/LECTURE/GRIB/read_grib.pro
r327 r495 50 50 ; FOR i = 1L, n_elements(recstart)-1 DO $ 51 51 ; addoff[i] = recstart[i]-recstart[i-1]-messize[i-1] 52 ;53 52 ; 54 53 ; nbits = scan_grib_nbits(num, recstart) -
trunk/SRC/ToBeReviewed/LECTURE/GRIB/read_grib_bds.pro
r325 r495 1 1 ;+ 2 ; @file_comments 3 ; 4 ; 2 ; @file_comments 3 ; 5 4 ; @categories 6 ;7 ;8 ; @param NUM9 5 ; 6 ; @param NUM 10 7 ; 11 8 ; @param RECSTART 12 9 ; 13 ; 14 ; @param NI 15 ; 10 ; @param NI 16 11 ; 17 12 ; @param NJ 18 ; 19 ; 13 ; 20 14 ; @returns 21 ; 22 ; 15 ; 23 16 ; @restrictions 24 ; 25 ; 17 ; 26 18 ; @examples 27 19 ; 28 ;29 20 ; @history 30 ;31 21 ; 32 22 ; @version … … 34 24 ;- 35 25 FUNCTION read_grib_bds, num, recstart, ni, nj 36 ;37 26 ; 38 27 compile_opt idl2, strictarrsubs … … 63 52 ; 64 53 sizebds = bit2int([binary(a[1]), binary(a[2]), binary(a[3])]) 65 ; 54 ; 66 55 flags = binary(a[4]) 67 56 ; BIT VALUE MEANING 68 57 ; 1 0 Grid point data 69 58 ; 1 Spherical Harmonic Coefficients 70 ; 2 0 Simple packing 71 ; 1 Second order ("Complex") Packing 59 ; 2 0 Simple packing 60 ; 1 Second order ("Complex") Packing 72 61 ; 3 0 Original data were floating point values 73 62 ; 1 Original data were integer values -
trunk/SRC/ToBeReviewed/LECTURE/GRIB/read_grib_end.pro
r325 r495 1 1 ;+ 2 ; @file_comments 3 ; 4 ; 2 ; @file_comments 3 ; 5 4 ; @categories 6 ;7 ;8 ; @param NUM9 5 ; 6 ; @param NUM 10 7 ; 11 8 ; @param OFFSET 12 ;13 9 ; 14 10 ; @returns 15 ; 16 ; 11 ; 17 12 ; @restrictions 18 ; 19 ; 13 ; 20 14 ; @examples 21 15 ; 22 ;23 16 ; @history 24 ;25 17 ; 26 18 ; @version 27 19 ; $Id$ 20 ; 28 21 ;- 29 22 PRO read_grib_end, num, offset -
trunk/SRC/ToBeReviewed/LECTURE/GRIB/read_grib_gds.pro
r325 r495 1 1 ;+ 2 ; @file_comments 3 ; 4 ; 2 ; @file_comments 3 ; 5 4 ; @categories 6 ;7 ;8 ; @param NUM9 5 ; 6 ; @param NUM 10 7 ; 11 8 ; @param RECSTART 12 9 ; 13 ;14 10 ; @returns 15 ; 16 ; 11 ; 17 12 ; @restrictions 18 ; 19 ; 13 ; 20 14 ; @examples 21 15 ; 22 ;23 16 ; @history 24 ;25 17 ; 26 18 ; @version … … 28 20 ;- 29 21 FUNCTION read_grib_gds, num, recstart 30 ;31 22 ; 32 23 compile_opt idl2, strictarrsubs … … 40 31 ; 41 32 sizegds = bit2int([binary(a[1]), binary(a[2]), binary(a[3])]) 42 ; 33 ; 43 34 nv = (a[4])[0] 44 35 pv = (a[5])[0] … … 83 74 gridtype EQ 2: 84 75 ; Lambert Conformal, secant or tangent, conical or bipolar (normal or 85 ; oblique) Projection Grid 76 ; oblique) Projection Grid 86 77 gridtype EQ 3: 87 78 ; Polar Stereographic Projection Grid -
trunk/SRC/ToBeReviewed/LECTURE/GRIB/read_grib_is.pro
r325 r495 1 ;+2 ; @file_comments3 ;4 ;5 ; @categories6 ;7 ;8 ; @param NUM9 ;10 1 ; 11 2 ; @param OFFSET 12 ;13 3 ; 14 4 ; @returns 15 ; 16 ; 5 ; 17 6 ; @restrictions 18 ; 19 ; 7 ; 20 8 ; @examples 21 9 ; 22 ;23 10 ; @history 24 ;25 11 ; 26 12 ; @version … … 37 23 typefile = string(a[0]) 38 24 IF typefile NE 'GRIB' THEN stop 39 25 40 26 ; 41 27 a = assoc(num, bytarr(1, /nozero), offset+4) 42 28 sizerecord = bit2int([binary(a[0]), binary(a[1]), binary(a[2])]) 43 ; 29 ; 44 30 a = assoc(num, bytarr(1, /nozero), offset+7) 45 31 gribed = a[0] -
trunk/SRC/ToBeReviewed/LECTURE/GRIB/read_grib_pds.pro
r325 r495 1 1 ;+ 2 ; @file_comments 3 ; 4 ; 2 ; @file_comments 3 ; 5 4 ; @categories 6 ;7 ;8 ; @param NUM9 5 ; 6 ; @param NUM 10 7 ; 11 8 ; @param RECSTART 12 ;13 9 ; 14 10 ; @returns 15 ; 16 ; 11 ; 17 12 ; @restrictions 18 ; 19 ; 13 ; 20 14 ; @examples 21 15 ; 22 ;23 16 ; @history 24 ;25 17 ; 26 18 ; @version … … 28 20 ;- 29 21 FUNCTION read_grib_pds, num, recstart 30 ;31 22 ; 32 23 compile_opt idl2, strictarrsubs … … 36 27 ; 37 28 sizepds = bit2int([binary(a[1]), binary(a[2]), binary(a[3])]) 38 ; 29 ; 39 30 paramtableversion = (a[4])[0] 40 ; 31 ; 41 32 centerid = (a[5])[0] 42 ; 33 ; 43 34 procid = (a[6])[0] 44 ; 35 ; 45 36 gridid = (a[7])[0] 46 37 ; … … 51 42 paramunitid = (a[9])[0] 52 43 ; 53 levtype = (a[10])[0] 44 levtype = (a[10])[0] 54 45 levalue1 = (a[11])[0] 55 46 levalue2 = (a[12])[0] … … 74 65 ;......... 75 66 76 77 67 RETURN, {size:sizepds, gdsnotomitted:gdsnotomitted, bmsnotomitted:bmsnotomitted, d:d} 78 68 END -
trunk/SRC/ToBeReviewed/LECTURE/GRIB/read_gribtable.pro
r371 r495 6 6 ; @categories 7 7 ; 8 ;9 8 ; @param TABLENAME {in}{required} 10 9 ; The full path name of a gribtable file … … 12 11 ; @keyword PARMTABL 13 12 ; 14 ;15 13 ; @keyword CENTER 16 ;17 14 ; 18 15 ; @keyword SUBCENTER 19 16 ; 20 ;21 17 ; @keyword TABLNUM 22 ;23 18 ; 24 19 ; @returns 25 20 ; 26 ;27 21 ; @uses 28 22 ; 29 ;30 23 ; @restrictions 31 ;32 24 ; 33 25 ; @examples … … 46 38 compile_opt idl2, strictarrsubs 47 39 ; 48 40 49 41 ON_ERROR,2 50 42 -
trunk/SRC/ToBeReviewed/LECTURE/GRIB/scan_grib_code.pro
r325 r495 1 1 ;+ 2 ; @file_comments 3 ; 4 ; 2 ; @file_comments 3 ; 5 4 ; @categories 6 ;7 ;8 ; @param NUM9 5 ; 6 ; @param NUM 10 7 ; 11 8 ; @param RECSTART 12 ;13 9 ; 14 10 ; @returns 15 ; 16 ; 11 ; 17 12 ; @restrictions 18 ; 19 ; 13 ; 20 14 ; @examples 21 15 ; 22 ;23 16 ; @history 24 ;25 17 ; 26 18 ; @version … … 28 20 ;- 29 21 FUNCTION scan_grib_code, num, recstart 30 ;31 22 ; 32 23 compile_opt idl2, strictarrsubs -
trunk/SRC/ToBeReviewed/LECTURE/GRIB/scan_grib_date.pro
r325 r495 1 1 ;+ 2 ; @file_comments 3 ; 4 ; 2 ; @file_comments 3 ; 5 4 ; @categories 6 ;7 ;8 ; @param NUM9 5 ; 6 ; @param NUM 10 7 ; 11 8 ; @param RECSTART 12 ;13 9 ; 14 10 ; @returns 15 ; 16 ; 11 ; 17 12 ; @restrictions 18 ; 19 ; 13 ; 20 14 ; @examples 21 15 ; 22 ;23 16 ; @history 24 ;25 17 ; 26 18 ; @version … … 28 20 ;- 29 21 FUNCTION scan_grib_date, num, recstart 30 ;31 22 ; 32 23 compile_opt idl2, strictarrsubs … … 38 29 offset = recstart[i] 39 30 a = assoc(num, bytarr(1, /nozero), offset+8-1) 40 dates[i] = (a[13]+ 100L*(a[25]-1))*10000L+a[14]*100L+a[15]31 dates[i] = (a[13]+ 100L *(a[25]-1)) * 10000L + a[14] * 100L + a[15] 41 32 ENDFOR 42 33 ; -
trunk/SRC/ToBeReviewed/LECTURE/GRIB/scan_grib_messize.pro
r325 r495 1 1 ;+ 2 ; @file_comments 3 ; 4 ; 2 ; @file_comments 3 ; 5 4 ; @categories 6 ;7 ;8 ; @param NUM9 5 ; 6 ; @param NUM 10 7 ; 11 8 ; @param RECSTART 12 ;13 9 ; 14 10 ; @returns 15 ; 16 ; 11 ; 17 12 ; @restrictions 18 ; 19 ; 13 ; 20 14 ; @examples 21 15 ; 22 ;23 16 ; @history 24 ;25 17 ; 26 18 ; @version … … 28 20 ;- 29 21 FUNCTION scan_grib_messize, num, recstart 30 ;31 22 ; 32 23 compile_opt idl2, strictarrsubs -
trunk/SRC/ToBeReviewed/LECTURE/GRIB/scan_grib_nbits.pro
r325 r495 1 1 ;+ 2 ; @file_comments 3 ; 4 ; 2 ; @file_comments 3 ; 5 4 ; @categories 6 ;7 ;8 ; @param NUM9 5 ; 6 ; @param NUM 10 7 ; 11 8 ; @param RECSTART 12 ;13 9 ; 14 10 ; @returns 15 ; 16 ; 11 ; 17 12 ; @restrictions 18 ; 19 ; 13 ; 20 14 ; @examples 21 15 ; 22 ;23 16 ; @history 24 ;25 17 ; 26 18 ; @version -
trunk/SRC/ToBeReviewed/LECTURE/GRIB/scan_grib_recstart.pro
r325 r495 1 1 ;+ 2 ; @file_comments 3 ; 4 ; 2 ; @file_comments 3 ; 5 4 ; @categories 6 ; 7 ; 8 ; @param NUM 9 ; 5 ; 6 ; @param NUM 10 7 ; 11 8 ; @returns 12 ; 13 ; 9 ; 14 10 ; @restrictions 15 ; 16 ; 11 ; 17 12 ; @examples 18 13 ; 19 ;20 14 ; @history 21 ;22 15 ; 23 16 ; @version … … 80 73 ; 81 74 start = [start, offset] 82 ; 75 ; 83 76 a = assoc(num, bytarr(1, /nozero), offset+4) 84 77 recsize = bit2int([binary(a[0]), binary(a[1]), binary(a[2])]) … … 90 83 out: 91 84 ; 92 RETURN, start[1:n_elements(start)-1] 85 RETURN, start[1:n_elements(start)-1] 93 86 END -
trunk/SRC/ToBeReviewed/LECTURE/inverse_binary.pro
r371 r495 17 17 ; 18 18 ; (d1, d2...) are the output dimensions 19 ;20 19 ; 21 20 ; @returns -
trunk/SRC/ToBeReviewed/LECTURE/litchamp.pro
r493 r495 7 7 ; - a structure, litchamp send back the first element of the structure 8 8 ; which must be the field in an array. 9 ; litchamp profit of this to look other elements of the structure and 9 ; litchamp profit of this to look other elements of the structure and 10 10 ; update if needed global variables which refer to the field: 11 11 ; vargrid, varname, varunit, vardate, varexp , valmask et time … … 89 89 ; IDL> print, vargrid,', ', varname,', ', varunit,', ', vardate,', ', varexp 90 90 ; T, toto, C, 1999, 91 ;92 91 ; 93 92 ; @history -
trunk/SRC/ToBeReviewed/LECTURE/read_ncdf.pro
r493 r495 3 3 ; @file_comments 4 4 ; Reading function for the file net_cdf. 5 ; This program is less universal than <pro>ncdf_lec</pro> (it appeal to 6 ; declared variables in <pro>common</pro>) but it is very easier to be used. 5 ; This program is less universal than <pro>ncdf_lec</pro> (it appeal to 6 ; declared variables in <pro>common</pro>) but it is very easier to be used. 7 7 ; It considerate 8 8 ; the declaration of the different zooms which have been defined 9 9 ; (ixminmesh...premierx...), the declaration of the variable key_shift... 10 ; To put it in a nutshell, the result of read_ncdf can be directly used in 10 ; To put it in a nutshell, the result of read_ncdf can be directly used in 11 11 ; <pro>plt</pro> ... 12 12 ; … … 46 46 ; 47 47 ; @keyword CALLITSELF {default=0}{type=scalar: 0 or 1} 48 ; For ROMS outputs. Use by read_ncdf itself to access auxiliary data 48 ; For ROMS outputs. Use by read_ncdf itself to access auxiliary data 49 49 ; (h and zeta). 50 50 ; … … 68 68 ; 69 69 ; @keyword TIMESTEP {default=0}{type=scalar: 0 or 1} 70 ; Specify that BEGINNING and ENDING refer to indexes of the time axis and not 70 ; Specify that BEGINNING and ENDING refer to indexes of the time axis and not 71 71 ; to dates 72 72 ; … … 95 95 ; 96 96 ; @returns 97 ; Structure readable by <pro>litchamp</pro> or an array if NOSTRUCT is 97 ; Structure readable by <pro>litchamp</pro> or an array if NOSTRUCT is 98 98 ; activated. 99 99 ; … … 189 189 firsttps = long(beginning[0]) 190 190 IF n_elements(ending) NE 0 THEN lasttps = long(ending[0]) ELSE lasttps = firsttps 191 IF NOT keyword_set(callitself) then BEGIN 191 IF NOT keyword_set(callitself) then BEGIN 192 192 time = ncdf_gettime(filename, cdfid, caller = 'read_ncdf', err = err, _extra = ex) 193 193 jpt = lasttps-firsttps+1 … … 210 210 keyword_set(allrecords) OR n_elements(beginning) EQ 0:BEGIN 211 211 time = ncdf_gettime(filename, cdfid, caller = 'read_ncdf', err = err, _extra = ex) 212 IF time[0] LT 0 then BEGIN 212 IF time[0] LT 0 then BEGIN 213 213 jpt = -time[0] 214 214 time = julday(1, 1, 1) + lindgen(jpt) -
trunk/SRC/ToBeReviewed/LECTURE/xncdf_lec.pro
r493 r495 8 8 ; 9 9 ; @param NAME {in}{optional}{type=string} 10 ; It give the name of the file to be opened. 10 ; It give the name of the file to be opened. 11 11 ; 12 12 ; If NAME … … 21 21 ; 22 22 ; @keyword COUNT {type=vector} 23 ; An optional vector containing the counts to be used in reading Value. 23 ; An optional vector containing the counts to be used in reading Value. 24 24 ; 25 25 ; COUNT is a 1-based vector with an element for … … 30 30 ; 31 31 ; @keyword GROUP 32 ; The widget ID of the widget that calls XNCDF_LEC. 32 ; The widget ID of the widget that calls XNCDF_LEC. 33 33 ; 34 34 ; When this ID is specified, a death of the caller results in a death … … 42 42 ; A vector of integers, specifying for each dimension how much we have to shift it. 43 43 ; 44 ; See the function <proidl>SHIFT</proidl> for more explanations. 44 ; See the function <proidl>SHIFT</proidl> for more explanations. 45 45 ; 46 46 ; BEWARE, 47 47 ; the shift is done on the biggest array before a possible reduction determined 48 ; by OFFSET and COUNT. 48 ; by OFFSET and COUNT. 49 49 ; 50 50 ; On the other hand, it is done after the possible extraction
Note: See TracChangeset
for help on using the changeset viewer.