Hi all,What Ryo did here is to fill in the background with gray, which makes a nice looking plot.
We could do even more though, by taking a slice of one of the topography datasets and fill below it, overlaying that on the plot. I've written a couple of new scripts to do this, vland.jnl and vfland.jnl which are analogs of the XY scripts land.jnl and fland.jnl.
yes? use levitus_climatology yes? shade/x=48E:98E/y=10n yes? fill/over/nolab/x=48E:98E/y=10n temp ! Fill below showing the bathymetry, and draw a line on the ocean bottom. yes? go vfland 20 gray x=48e:98e y=10n yes? go vland 20 thick x=48e:98e y=10nThe plot is attached, as well as a tar file that contains these two new scripts. The scripts will be included in future releases of Ferret.
Ansley
Hi Sudev, > I have a script meant for plotting vertical section of > temperature. I don't know how to do the land masking using "go > fland" command or any other similar command. Please see the attached > figure. Please give me some suggestions how I can do this. I don't know if there is a simple solution like "go fland" for vertical sections. I think of two solutions. One is yes? set data levitus_climatology yes? let allmissing = 0/0 + temp !! missing everywhere yes? cancel MODE NODATA_LAB yes? shade/y=20S:20N/x=120/nolabel allmissing !! plot the axes yes? polygon/palette=gray/ov {-20,20,20,-20}, {5000,5000,0,0} yes? fill/y=20S:20N/x=120/ov temp (You can copy and paste this script onto your ferret command line to see what it does.) In this case, you paint the background with gray and overlay the temperature plot. The other is yes? set data levitus_climatology yes? let mask = ifv temp then 0/0 else 1 yes? fill/y=20S:20N/x=120 temp yes? shade/y=20S:20N/x=120/palette=gray/ov mask where you define a variable (mask in this case) that is defined only where temp is missing. In this case, the gray area indicates the gridboxes where temp is missing. The result is similar to what "go fland" would do if it worked for vertical sections. The plot is not very pretty in this case because the vertical resolution of the original data is coarse at depths. Regards, Ryo "
Attachment:
vland.gif
Description: GIF image
Attachment:
vertical_land.tar
Description: Binary data