Changeset 19 for trunk/src/interp_olr_30n30s_1989_2009.pro
- Timestamp:
- 12/17/10 16:18:08 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/interp_olr_30n30s_1989_2009.pro
r12 r19 15 15 ; file_in [shape=ellipse,fontname=Courier,label="/Users/pkb/data/heat_budget/NOAA_OLR/new/olr.day.mean_new.nc"]; 16 16 ; 17 ; mask [shape=ellipse,fontname=Courier,label=" /Volumes/PRAVEEN/work/flux_reconstruction/gridded_data/mask_oaflux_30N30S.nc"];17 ; mask [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/mask_oaflux_30N30S.nc"]; 18 18 ; 19 19 ; ncfile [shape=ellipse,fontname=Courier,label="/Users/pkb/data/heat_budget/NOAA_OLR/newolr_oafluxgrid_30n30s_19890101_20091231.nc"]; … … 32 32 ; ======== 33 33 ; 34 ; :ref:`tropflux_profile.sh` 35 ; 34 36 ; EXAMPLES 35 37 ; ======== … … 46 48 ; coding rules 47 49 ; 50 ; KNOWN ISSUES 51 ; ============ 52 ; 53 ; test of existence of fullfilename_msk not very efficient because 54 ; MUST_EXIST keyword of :func:`isafile <saxo:isafile>` not yet implemented 55 ; 48 56 ; EVOLUTIONS 49 57 ; ========== 58 ; 59 ; - fplod 20101217T140745Z aedon.locean-ipsl.upmc.fr (Darwin) 60 ; 61 ; * remove hard coded directory for mask_oaflux_30N30S.nc 50 62 ; 51 63 ; - fplod 20101215T113118Z aedon.locean-ipsl.upmc.fr (Darwin) … … 64 76 pro interp_olr_30n30s_1989_2009 65 77 @common 78 ; 79 ; check for input directory 80 ; 81 ; test if ${TROPFLUX_ID} defined 82 tropflux_id_env=GETENV('TROPFLUX_ID') 83 CASE tropflux_id_env OF 84 '' : BEGIN 85 msg = 'eee : ${TROPFLUX_ID} is not defined' 86 ras = report(msg) 87 STOP 88 END 89 ELSE: BEGIN 90 msg = 'iii : ${TROPFLUX_ID} is ' + tropflux_id_env 91 ras = report(msg) 92 END 93 ENDCASE 94 ; 95 iodirin = isadirectory(tropflux_id_env) 96 ; 97 ; existence and protection of ${TROPFLUX_ID} 98 IF (FILE_TEST(iodirin, /DIRECTORY, /EXECUTABLE, /READ) EQ 0) THEN BEGIN 99 msg = 'eee : the directory' + iodirin + ' is not accessible.' 100 ras = report(msg) 101 STOP 102 ENDIF 103 ; 104 ; build mask filename 105 filename_msk='mask_oaflux_30N30S.nc' 106 ; 107 ; check if this file exists 108 fullfilename_msk = isafile(iodirin + filename_msk, NEW=0, /MUST_EXIST) 109 IF fullfilename_msk[0] EQ '' THEN BEGIN 110 msg = 'eee : the file ' + fullfilename_msk + ' was not found.' 111 ras = report(msg) 112 STOP 113 ENDIF 66 114 67 115 filein='/Users/pkb/data/heat_budget/NOAA_OLR/new/olr.day.mean_new.nc' 68 gridout='/Volumes/PRAVEEN/work/flux_reconstruction/gridded_data/mask_oaflux_30N30S.nc'69 116 70 117 initncdf, filein … … 79 126 timein=time & jptin=jpt 80 127 81 initncdf, gridout128 initncdf, fullfilename_msk 82 129 domdef 83 130 latout=reform(gphit(0,*)) & lonout=reform(glamt(*,0)) 84 131 print, 'lat grid ',min(latout),max(latout),latout(1)-latout(0) 85 132 print, 'lon grid ',min(lonout),max(lonout),lonout(1)-lonout(0) 86 mskout=read_ncdf("msk", file= gridout,/nostr)133 mskout=read_ncdf("msk", file=fullfilename_msk,/nostr) 87 134 88 135 help, olrin,lonin,latin,mskin,lonout,latout,mskout
Note: See TracChangeset
for help on using the changeset viewer.