Choose Language Hide Translation Bar
Highlighted

Creating Contour Map To Highlight River Systems

Hi all, 

 

I am looking to constrain my contour map attached within this discussion post to only the river system within the map for the parameter controlling color. I understand that adjusting the alpha may constrain the area, but it does not accurately reflect the river system. An example of what I want to accomplish is attached within this email. 

 

Do I have to create a custom map as per (https://www.jmp.com/support/help/ipad/Create_a_Custom_Map.shtml) or is there another way that I can outline the river systems I am interested in? For instance can I add more points along the river to help for the alpha? 

Let me know if you need anymore details. 

 

Thanks! 

1 REPLY 1
Highlighted
Craige_Hales
Staff (Retired)

Re: Creating Contour Map To Highlight River Systems

You should probably make your own clip shape. Probably with some hard coded lat/lon values in a path. 

tell a segment in a graph to clip to a regiontell a segment in a graph to clip to a region

dt=open("$sample_data/cities.jmp");
dt<<Graph Builder(
	Size( 1401, 943 ),
	Show Control Panel( 0 ),
	Variables( X( :Longitude ), Y( :Latitude ) ),
	Elements( Points( X, Y, Legend( 3 ) ) ),
	SendToReport(
		Dispatch(
			{},
			"Longitude",
			ScaleBox,
			{Format( "Longitude DMM", "PUNDIR", 16, 1 ), Min( -79.2168192501673 ),
			Max( -77.9895685253635 ), Inc( 0.2 ), Minor Ticks( 0 )}
		),
		Dispatch(
			{},
			"Latitude",
			ScaleBox,
			{Format( "Latitude DMM", "PUNDIR", 16, 2 ), Min( 35.357738544198 ),
			Max( 36.1836060907719 ), Inc( 0.05 ), Minor Ticks( 0 )}
		),
		Dispatch(
			{},
			"Graph Builder",
			FrameBox,
			{Background Map(
				Images( "Street Map Service" ),
				Boundaries( "US Counties" )
			), Grid Line Order( 3 ), Reference Line Order( 4 ),
			DispatchSeg(
				MapSeg( 1 )
				//,{Clip Shape( Boundaries( "US Counties", ID( "Wake County, NC" ) ) )}
				,{Clip Shape( Path("
				M -78.95 36.05 
				L -79.13 35.89 
				L -78.47 35.71 Z") ) }
			)}
		)
	)
);

The clip shape can be applied to any segment. Use right-click->Customize to figure out which segments you want. Above I made a triangle clip around three cities in NC. The path string is easier to read than the matrix.

TriangleTriangle

   

Craige
Article Labels