Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Commit

Permalink
for diff plots of variables on grids of diff. shapes
Browse files Browse the repository at this point in the history
  • Loading branch information
AnsleyManke committed Oct 31, 2018
1 parent cffb49f commit 043c449
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

! The LET ($data_var)_test = '($data_var)' takes care of the possiblity of variables whose
! names are pseudo-variables
! set_add_for_region sets up to add 0*var if needed, so variables have the same grids.

cancel symbol fer_last_error
LET nc = `($data_count) - 1`
Expand All @@ -30,10 +31,8 @@ SET DATA ($test_url); \
LET ($test_var)_test = '($test_var)';\
DEFINE SYMBOL shape($ivar) = `($test_var)_test,RETURN=shape`; \
DEFINE SYMBOL dset($ivar) = `($test_var)_test,RETURN=dsetnum`;\
CANCEL DATA ($test_url))

! Set up to add 0*var if needed
REPEAT/RANGE=0:`nc`/NAME=ivar (GO set_add_for_region `ivar`)
GO set_add_for_region `ivar`;\
)

! Now set up to add to the region spec if needed.

Expand Down Expand Up @@ -97,6 +96,7 @@ IF ($add_region_z"0|*>1") THEN
ENDIF

!CANCEL DATA/ALL
CANCEL DATA ($test_url)

IF ($add_region_z"0|*>1") THEN GO LAS_initialize_region
IF ($add_region_t"0|*>1") THEN GO LAS_initialize_region
Expand Down
10 changes: 10 additions & 0 deletions JavaSource/resources/ferret/scripts/LAS_results.jnl
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
! 10/2017 Add an annotation on the plot when data selection results in no data
! 10/2017 fixes for map-scale file, monthly time axis such as monthly_navy_winds
! 11/2017 add report map resolution to the log if this was a map plot
! 10/2018 changing animation product to make all the frames in one PyFerret session
! .......................................................................................
!
! LAS_results.jnl creates the result files.
Expand All @@ -23,6 +24,9 @@

cancel region

! If its a difference plot, use dataset 1 e.g. for the coordnames getting axis directions
set data 1

IF ($have_las_plotvar"0") THEN
LET the_plot_var = las_plotvar ! from LAS_auto_levels
ELSE
Expand Down Expand Up @@ -82,6 +86,12 @@ SAY _________________ END Saving the image: clock seconds:
SAY _________________ total time Saving the image, seconds ----- `($clock_secs) - pre_plot`


! When we are making all the images for an animation in one go, that's it.
! We do not need a map-scale file, we aren't doing annotations.

IF ($is_animation_frame"0|0|*>1") THEN EXIT/SCRIPT


! Result map_scale_file is output map scale file
! Write the output immediately after drawing the plot; it uses symbols
! that are set when making the plot. If a colorbar is made, do that after the
Expand Down

0 comments on commit 043c449

Please sign in to comment.