Hi Saurabh,
The plot_swath script isn't taking into account the fact that the z axis is a depth axis, or positive-downwards. This will be fixed in upcoming Ferret releases (and sooner on the GitHub Ferret repository). The corrected script is attached.
Or, in the meantime you could add /TRANSPOSE to the polygon command that you pass to the script,
go plot_swath poly/ov/pal=grey_light/nolab/nokey/trans ...
For your second example, the ERROR message is cropping up because even though you average over Y and your plot variables are in Z only, the grid of the variables is still seen as having a Y-axis dependency. This is related to what is discussed in the third example at the start of the plot_swath script, where it suggests specifying the region on the variable. The averaging operation doesn't allow us to do it this way, so I think you will need to be explicit in putting your variables onto a Z-only grid,
let zvar = z[gz=slope]
let var1 = reshape(slope1-(2*tig1), zvar)
let var2 = reshape(slope1+(2*tig1), zvar)
go plot_swath poly/ov/pal=grey_light/nolab/nokey/trans var1, var2
-Ansley
On 3/20/2017 8:16 PM, saurabh rathore wrote:
Dear Ferreters
I am facing a problem for using the go ploy_swath command for my data which is having variable as slope in depth and latitude. I calculated slope from go regresst. I am attaching my data file and i am sharing my script. after running the file for_slope_en.jnl for file slope_en.nc there is an error.
go plot_swath poly/ov/pal=grey_light/nolab/nokey slope1-(2*tig1), slope1+(2*tig1)
**ERROR: inconsistent sizes of data regions: can't label Y axis of PSWX
poly/ov/pal=grey_light/nolab/nokey/coord_ax=Y PSWx4_0,PSWy4_0
Command file, command group, or REPEAT execution aborted
But after taking the @ave on y axis and saving the variable in slope1.nc and running the file for_slope1.jnl, there is no error but the go poly_swath function is also not working.
please suggest me what should i do to get the ploy_swath command to work.
Attached files are the data files and their respective scripts file.
Any help will be highly appreciated.
regards, saurabh
--
REGARDS
Saurabh RathoreResearch Scholar (PhD.)Centre For Oceans, Rivers, Atmosphere & Land Science TechnologyIndian Institute Of Technology, Kharagpurcontact :- 91- 8345984434