Changeset 957 for palm/trunk/SCRIPTS/NCL/cross_sections.ncl
- Timestamp:
- Jul 20, 2012 10:57:49 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SCRIPTS/NCL/cross_sections.ncl
r827 r957 2220 2220 png_output = new((/no_frames/), string) 2221 2221 j = 0 2222 do i=0, no_frames-1 2223 j = i + 1 2224 if (j .LE. 9) then 2225 png_output(i) = file_out+".00000"+j+".png" 2226 end if 2227 if (j .GT. 9 .AND. j .LE. 99) then 2228 png_output(i) = file_out+".0000"+j+".png" 2229 end if 2230 if (j .GT. 99 .AND. j .LE. 999) then 2231 png_output(i) = file_out+".000"+j+".png" 2232 end if 2233 if (j .GT. 999) then 2234 png_output(i) = file_out+".00"+j+".png" 2235 end if 2236 2237 ;using imagemagick's convert for reducing the white 2238 ;space around the plot 2239 cmd = "convert -geometry 1000x1000 -density 300 -trim " + \ 2240 png_output(i) + " " + png_output(i) 2222 2223 if (no_frames .eq. 1) then 2224 if (ncl_version .GE. 6 ) then 2225 png_output(0) = file_out+".png" 2226 else 2227 png_output(0) = file_out+".00000"+1+".png" 2228 end if 2229 ;using imagemagick's convert for reducing the white 2230 ;space around the plot 2231 cmd = "convert -geometry 1000x1000 -density 300 -trim " + \ 2232 png_output(0) + " " + png_output(0) 2241 2233 system(cmd) 2242 end do 2234 else 2235 2236 do i=0, no_frames-1 2237 j = i + 1 2238 if (j .LE. 9) then 2239 png_output(i) = file_out+".00000"+j+".png" 2240 end if 2241 if (j .GT. 9 .AND. j .LE. 99) then 2242 png_output(i) = file_out+".0000"+j+".png" 2243 end if 2244 if (j .GT. 99 .AND. j .LE. 999) then 2245 png_output(i) = file_out+".000"+j+".png" 2246 end if 2247 if (j .GT. 999) then 2248 png_output(i) = file_out+".00"+j+".png" 2249 end if 2250 2251 ;using imagemagick's convert for reducing the white 2252 ;space around the plot 2253 cmd = "convert -geometry 1000x1000 -density 300 -trim " + \ 2254 png_output(i) + " " + png_output(i) 2255 system(cmd) 2256 end do 2257 end if 2243 2258 2244 2259 print(" ") … … 2250 2265 print(" ") 2251 2266 end if 2252 2267 2253 2268 end
Note: See TracChangeset
for help on using the changeset viewer.