Changeset 19 for trunk/src/interp_erai_ws_1989_2009.pro
- Timestamp:
- 12/17/10 16:18:08 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/interp_erai_ws_1989_2009.pro
r12 r19 16 16 ; file_v10 [shape=ellipse,fontname=Courier,label="/Volumes/PRAVEEN/ERAI_global/20c3m_erai_v10_TROP_1989_2009.nc"]; 17 17 ; 18 ; mask [shape=ellipse,fontname=Courier,label=" /Volumes/PRAVEEN/work/flux_reconstruction/gridded_data/mask_oaflux_30N30S.nc"];18 ; mask [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/mask_oaflux_30N30S.nc"]; 19 19 ; 20 20 ; ncfile [shape=ellipse,fontname=Courier,label="/Volumes/PRAVEEN/TropFlux/input_uncor/erai_ws_19890101_20091231_oafluxgrid.nc"]; … … 33 33 ; ======== 34 34 ; 35 ; :ref:`tropflux_profile.sh` 36 ; 35 37 ; EXAMPLES 36 38 ; ======== … … 48 50 ; coding rules 49 51 ; 52 ; KNOWN ISSUES 53 ; ============ 54 ; 55 ; test of existence of fullfilename_msk not very efficient because 56 ; MUST_EXIST keyword of :func:`isafile <saxo:isafile>` not yet implemented 57 ; 50 58 ; EVOLUTIONS 51 59 ; ========== 60 ; 61 ; - fplod 20101217T140745Z aedon.locean-ipsl.upmc.fr (Darwin) 62 ; 63 ; * remove hard coded directory for mask_oaflux_30N30S.nc 52 64 ; 53 65 ; - fplod 20101215T112657Z aedon.locean-ipsl.upmc.fr (Darwin) … … 66 78 pro interp_erai_ws_1989_2009 67 79 @common 80 ; 81 ; check for input directory 82 ; 83 ; test if ${TROPFLUX_ID} defined 84 tropflux_id_env=GETENV('TROPFLUX_ID') 85 CASE tropflux_id_env OF 86 '' : BEGIN 87 msg = 'eee : ${TROPFLUX_ID} is not defined' 88 ras = report(msg) 89 STOP 90 END 91 ELSE: BEGIN 92 msg = 'iii : ${TROPFLUX_ID} is ' + tropflux_id_env 93 ras = report(msg) 94 END 95 ENDCASE 96 ; 97 iodirin = isadirectory(tropflux_id_env) 98 ; 99 ; existence and protection of ${TROPFLUX_ID} 100 IF (FILE_TEST(iodirin, /DIRECTORY, /EXECUTABLE, /READ) EQ 0) THEN BEGIN 101 msg = 'eee : the directory' + iodirin + ' is not accessible.' 102 ras = report(msg) 103 STOP 104 ENDIF 105 ; 106 ; build mask filename 107 filename_msk='mask_oaflux_30N30S.nc' 108 ; 109 ; check if this file exists 110 fullfilename_msk = isafile(iodirin + filename_msk, NEW=0, /MUST_EXIST) 111 IF fullfilename_msk[0] EQ '' THEN BEGIN 112 msg = 'eee : the file ' + fullfilename_msk + ' was not found.' 113 ras = report(msg) 114 STOP 115 ENDIF 68 116 69 117 st=19880101 & en=20100930 … … 77 125 v10in=read_ncdf("v10",st, en,file=filein,/nostr) 78 126 79 gridout='/Volumes/PRAVEEN/work/flux_reconstruction/gridded_data/mask_oaflux_30N30S.nc'80 81 127 initncdf, filein 82 128 domdef … … 89 135 mskin=glamt*0.+1. 90 136 91 initncdf, gridout137 initncdf, fullfilename_msk 92 138 domdef 93 139 latout=reform(gphit(0,*)) & lonout=reform(glamt(*,0)) 94 140 print, 'lat grid ',min(latout),max(latout),latout(1)-latout(0) 95 141 print, 'lon grid ',min(lonout),max(lonout),lonout(1)-lonout(0) 96 mskout=read_ncdf("msk", file= gridout,/nostr)142 mskout=read_ncdf("msk", file=fullfilename_msk,/nostr) 97 143 98 144 help, u10in, v10in,lonin,latin,mskin,lonout,latout,mskout … … 121 167 xlon=reform(glamt(*,0) ) & ylat=reform(gphit(0,*)) 122 168 123 initncdf, gridout169 initncdf, fullfilename_msk 124 170 valmask=1.e20 125 171
Note: See TracChangeset
for help on using the changeset viewer.