Skip to content
Snippets Groups Projects
Commit c6f280e3 authored by GUEZ Lionel's avatar GUEZ Lionel
Browse files

Rename variable `hshp_cont_list` to hshp

parent 6da28e6a
No related branches found
No related tags found
No related merge requests found
...@@ -68,7 +68,7 @@ program test_get_1_outerm ...@@ -68,7 +68,7 @@ program test_get_1_outerm
! specified. ! specified.
integer n_cont ! number of good contours found and stored in cont_list integer n_cont ! number of good contours found and stored in cont_list
TYPE(shpfileobject) hshp_cont_list TYPE(shpfileobject) hshp
namelist /main_nml/ ind_targ_extr, innermost_level, cyclone, date, & namelist /main_nml/ ind_targ_extr, innermost_level, cyclone, date, &
grid_lon_lat grid_lon_lat
logical exist logical exist
...@@ -110,18 +110,18 @@ program test_get_1_outerm ...@@ -110,18 +110,18 @@ program test_get_1_outerm
! cont_list shapefile: ! cont_list shapefile:
call shp_create_03("cont_list", shpt_polygon, hshp_cont_list) call shp_create_03("cont_list", shpt_polygon, hshp)
call dbf_add_field_03(ifield, hshp_cont_list, 'ssh', ftdouble, & call dbf_add_field_03(ifield, hshp, 'ssh', ftdouble, &
nwidth = 13, ndecimals = 6) nwidth = 13, ndecimals = 6)
do i = 1, n_cont do i = 1, n_cont
call shp_append_object_03(ishape, hshp_cont_list, shpt_polygon, & call shp_append_object_03(ishape, hshp, shpt_polygon, &
cont_list(i)%points * rad_to_deg) cont_list(i)%points * rad_to_deg)
call dbf_write_attribute_03(hshp_cont_list, ishape, ifield, & call dbf_write_attribute_03(hshp, ishape, ifield, &
cont_list_proj(i)%ssh) cont_list_proj(i)%ssh)
end do end do
CALL shpclose(hshp_cont_list) CALL shpclose(hshp)
print *, 'test_get_1_outerm: Created shapefile "cont_list".' print *, 'test_get_1_outerm: Created shapefile "cont_list".'
else else
print *, "test_get_1_outerm: Could not find an outermost contour." print *, "test_get_1_outerm: Could not find an outermost contour."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment