CN112560267B - Method, device, equipment and storage medium for dividing ramp units - Google Patents

Method, device, equipment and storage medium for dividing ramp units Download PDF

Info

Publication number
CN112560267B
CN112560267B CN202011496072.1A CN202011496072A CN112560267B CN 112560267 B CN112560267 B CN 112560267B CN 202011496072 A CN202011496072 A CN 202011496072A CN 112560267 B CN112560267 B CN 112560267B
Authority
CN
China
Prior art keywords
area
slope
unit
sub
basin
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011496072.1A
Other languages
Chinese (zh)
Other versions
CN112560267A (en
Inventor
商琪
程京凯
张军
江子君
宋杰
胡辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Ruhr Technology Co Ltd
Original Assignee
Hangzhou Ruhr Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Ruhr Technology Co Ltd filed Critical Hangzhou Ruhr Technology Co Ltd
Priority to CN202011496072.1A priority Critical patent/CN112560267B/en
Publication of CN112560267A publication Critical patent/CN112560267A/en
Application granted granted Critical
Publication of CN112560267B publication Critical patent/CN112560267B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • Geometry (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Image Analysis (AREA)

Abstract

The embodiment of the invention discloses a method, a device, equipment and a storage medium for dividing a slope unit. Acquiring at least one sub-basin of a region to be divided, determining the area of each sub-basin, comparing the area of the current sub-basin with a sub-basin area threshold, and if the area of the current sub-basin is smaller than the sub-basin area threshold, taking the current sub-basin as a candidate slope unit to determine the candidate slope unit according to the sub-basin area so as to uniformly divide the sub-basins, wherein compared with the prior art, the dividing precision of the slope unit can be improved according to a slope dividing mode; and further determining a target slope unit of the area to be divided according to the area of the candidate slope unit, further screening the candidate slope unit based on the area, taking the candidate slope unit with moderate area as the target slope unit, improving the dividing precision of the slope unit, reducing the calculated amount, and improving the dividing precision of the slope unit for the area with larger range.

Description

Method, device, equipment and storage medium for dividing ramp units
Technical Field
The embodiment of the invention relates to the technical field of slope division, in particular to a method, a device, equipment and a storage medium for dividing a slope unit.
Background
Landslide is one of the most common disastrous natural disasters, has the characteristics of wide distribution range, high occurrence frequency, multiple occurrence, regional property, severity and the like, and has great significance in evaluating the susceptibility of landslide because landslide can cause a large amount of casualties and serious environmental and infrastructure losses every year. Landslide information in the slope unit of the vulnerability area is an important basis for evaluating landslide.
In the prior art, when landslide is evaluated by utilizing landslide information in a slope unit of a vulnerability area, the slope unit is divided according to the slope direction of a certain area. The dividing mode is simple, and is suitable for small-range areas, and the slope units in the areas with complex slope information are divided roughly.
Disclosure of Invention
The invention provides a method, a device, equipment and a storage medium for dividing a slope unit, which realize the effect of improving the dividing precision of the slope unit.
In a first aspect, an embodiment of the present invention provides a method for dividing a ramp unit, including:
acquiring at least one sub-basin of a region to be divided;
determining the area of each sub-drainage basin, and comparing the area of the current sub-drainage basin with a sub-drainage basin area threshold;
if the area of the current sub-drainage basin is smaller than the sub-drainage basin area threshold, taking the current sub-drainage basin as a candidate slope unit;
and determining the target slope unit of the area to be divided according to the candidate slope unit.
In a second aspect, an embodiment of the present invention further provides a device for dividing a ramp unit, where the device includes:
the sub-drainage basin acquisition module is used for acquiring at least one sub-drainage basin of the area to be divided;
the comparison module is used for determining the area of each sub-drainage basin and comparing the area of the current sub-drainage basin with a sub-drainage basin area threshold value;
the candidate slope unit determining module is used for taking the current sub-drainage basin as a candidate slope unit if the area of the current sub-drainage basin is smaller than the area threshold of the sub-drainage basin;
and the target slope unit determining module is used for determining the target slope unit of the area to be divided according to the candidate slope unit.
In a third aspect, an embodiment of the present invention further provides a dividing apparatus of a ramp unit, including:
one or more processors;
a memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the method of partitioning a ramp unit as set forth in any one of the first aspects.
In a fourth aspect, embodiments of the present invention also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are for performing the method of partitioning a ramp unit according to any one of the first aspects.
According to the technical scheme, at least one sub-drainage basin of the area to be divided is obtained, the area of each sub-drainage basin is determined, the area of the current sub-drainage basin is compared with the area threshold of the sub-drainage basin, if the area of the current sub-drainage basin is smaller than the area threshold of the sub-drainage basin, the current sub-drainage basin is used as a candidate slope unit, the candidate slope unit can be determined according to the area of the sub-drainage basin, so that the sub-drainage basin is divided uniformly, and compared with the prior art, the dividing precision of the slope unit can be improved according to a gradient dividing mode; and further determining a target slope unit of the area to be divided according to the area of the candidate slope unit, further screening the candidate slope unit based on the area, taking the candidate slope unit with moderate area as the target slope unit, improving the dividing precision of the slope unit, reducing the calculated amount, and improving the dividing precision of the slope unit for the area with larger range.
Drawings
FIG. 1 is a flow chart of a method for partitioning a ramp unit according to a first embodiment of the present invention;
FIG. 2 is a flow chart of a method for partitioning a ramp unit in a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a dividing apparatus of a ramp unit in a third embodiment of the present invention;
fig. 4 is a schematic diagram of a dividing apparatus of a ramp unit in a fourth embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
Example 1
Fig. 1 is a flowchart of a method for dividing a ramp unit according to an embodiment of the present invention, where the method may be performed by a device for dividing a ramp unit, and the method includes the following steps:
s110, at least one sub-basin of the area to be divided is obtained.
The area to be divided is usually an area where landslide occurs, or may be any one of designated areas, and the area to be divided divides the grid in advance. The method for determining the sub-drainage basin comprises the following steps: the obtaining at least one sub-basin of the region to be divided includes: acquiring elevation data of each grid of the area to be divided; determining gray value distribution characteristics of pixel points of grids in the region to be divided according to the elevation data; and carrying out river basin segmentation on the region to be segmented based on the gray value distribution characteristics to obtain at least one sub-river basin of the region to be segmented.
Wherein the elevation data refers to data represented by a digital elevation model, which is a mathematical model that approximates terrain surface elevation information, and contains a large amount of hydrologic elements and terrain information, such as gradient, slope direction and gradient change rate digital information. Specifically, when the area to be divided is divided into at least one sub-drainage basin, reading pixel points of each grid of the area to be divided, determining gray values of the pixel points of each grid, determining gray value distribution characteristics, connecting a plurality of similar gray value grids according to the gray value distribution characteristics to form a closed area, and taking each closed area as the sub-drainage basin of the area to be divided.
S120, determining the area of each sub-drainage basin, and comparing the area of the current sub-drainage basin with a sub-drainage basin area threshold.
Alternatively, the area of each sub-stream domain may be determined according to the number of grids in each sub-stream domain and the size of each grid. The sub-basin area threshold may be a fixed value that is preset, or may be a value that gradually decreases based on a specific movement step.
S130, if the area of the current sub-drainage basin is smaller than the sub-drainage basin area threshold, taking the current sub-drainage basin as a candidate slope unit.
In this embodiment, when dividing the slope unit, traversing the area of each sub-basin of the area to be divided, comparing the area of each sub-basin with the sub-basin area threshold, if the area of the current sub-basin is smaller than the sub-basin area threshold, directly using the current sub-basin as the candidate slope unit, and continuing to execute the process of comparing the area of the next sub-basin of the current sub-basin with the sub-basin area threshold to obtain at least one candidate slope unit of the area to be divided.
And S140, determining a target slope unit of the area to be divided according to the area of the candidate slope unit.
In order to improve the dividing precision of the slope units and reduce the calculation amount, after the candidate slope units are determined, the candidate slope units are corrected to determine target slope units with moderate areas. Optionally, the method for determining the target ramp unit includes: comparing the area of each candidate slope unit with a slope unit area threshold value; and if the area of the candidate slope unit is larger than or equal to the slope unit area threshold value, taking the candidate slope unit as the target slope unit.
Optionally, the method for determining the target ramp unit further includes: if the area of the combined slope unit is larger than or equal to the area threshold value of the slope unit, taking the combined slope unit as the target slope unit; and if the area of the combined slope unit is smaller than the slope unit area threshold, continuing to combine the combined slope unit with the candidate slope unit smaller than the slope unit area threshold until the area of the combined slope unit is larger than or equal to the slope unit area threshold, and taking the area of the latest combined slope unit as the target slope unit.
The area threshold of the slope unit may be a preset value, and the area threshold of the slope unit is smaller than or equal to the area threshold of the sub-flow field. Specifically, if the area of the candidate slope unit is greater than or equal to the slope unit area threshold, the area of the candidate slope unit is moderate, and the candidate slope unit can be directly used as the target slope unit; if the area of the candidate slope unit is smaller than the slope unit area threshold, indicating that the area of the candidate slope unit is too small, merging at least two candidate slope units smaller than the slope unit area threshold, calculating the area of the merged slope unit, and if the area of the merged slope unit is larger than or equal to the slope unit area threshold, taking the merged slope unit as the target slope unit; if the area of the merged ramp unit is smaller than the ramp unit area threshold, the merged ramp unit area is still too small, merging operation is continued until the merged ramp unit area is larger than or equal to the ramp unit area threshold, and the area of the latest merged ramp unit is taken as a target ramp unit. Therefore, candidate slope units with too small areas can be combined in an iterative mode, the situation that more slope units with too small areas are divided is avoided, and slope units with moderate areas are obtained, so that the dividing precision of the slope units is improved, and the calculated amount is reduced.
According to the technical scheme, at least one sub-drainage basin of the area to be divided is obtained, the area of each sub-drainage basin is determined, the area of the current sub-drainage basin is compared with the area threshold of the sub-drainage basin, if the area of the current sub-drainage basin is smaller than the area threshold of the sub-drainage basin, the current sub-drainage basin is used as a candidate slope unit, the candidate slope unit can be determined according to the area of the sub-drainage basin, so that the sub-drainage basin is divided uniformly, and compared with the prior art, the dividing precision of the slope unit can be improved according to a gradient dividing mode; and further determining a target slope unit of the area to be divided according to the area of the candidate slope unit, further screening the candidate slope unit based on the area, taking the candidate slope unit with moderate area as the target slope unit, improving the dividing precision of the slope unit, reducing the calculated amount, and improving the dividing precision of the slope unit for the area with larger range.
Example two
Fig. 2 is a flowchart of a method for dividing a ramp unit according to a second embodiment of the present invention, in which new steps are added on the basis of the previous embodiment. Other implementations of determining candidate ramp units are specifically added. For parts which are not described in detail in this method embodiment, reference is made to the above-described embodiments. Referring specifically to fig. 2, the method may include the steps of:
s210, at least one sub-basin of the area to be divided is obtained.
S220, determining the area of each sub-drainage basin, and comparing the area of the current sub-drainage basin with a sub-drainage basin area threshold.
S230, determining whether the area of the current sub-drainage basin is smaller than a sub-drainage basin area threshold;
s240, taking the current sub-basin as a candidate slope unit.
S250, determining the gradient and the slope direction of each grid of the area to be divided, and calculating the slope direction round variance and the slope variance of the current sub-drainage basin according to the slope direction and the slope direction of each grid of the area to be divided.
Alternatively, the gradient and the direction of the area to be divided may be determined from the elevation data of the area to be divided. Traversing each grid of the area to be divided, calculating the gradient variance of the current sub-drainage basin in the area to be divided based on the gradient of each grid of each area to be divided, and calculating the gradient circular variance of the current sub-drainage basin in the area to be divided based on the gradient of each grid of each area to be divided.
S260, determining whether the slope direction round variance of the current sub-basin is smaller than a slope direction round variance threshold value and whether the slope variance is smaller than a slope variance threshold value.
S270, taking the current sub-basin as a candidate slope unit.
S280, dividing the region to be divided again according to the area step length of the predetermined sub-drainage basin to obtain at least one sub-drainage basin.
It can be appreciated that if the slope direction round variance of the current sub-basin is smaller than the slope direction round variance threshold and the slope variance is smaller than the slope variance threshold, it is indicated that the slope of the current sub-basin is slower and the slope direction tends to be consistent, and the current sub-basin is used as a candidate slope unit. Meanwhile, the sub-basin is determined as a plain region, so that the sub-basin belonging to the plain in the region to be divided can be determined according to the slope direction round variance and the slope variance; if the slope direction round variance of the current sub-drainage basin is larger than or equal to the slope direction round variance threshold, or the slope variance is larger than or equal to the slope variance threshold, the current sub-drainage basin is larger in slope and more complex in slope direction, the current sub-drainage basin is located in a mountain area, the current sub-drainage basin is segmented again based on the area step length of the sub-drainage basin, so that the area of the current sub-drainage basin is reduced, at least one sub-drainage basin is obtained until the area of the current sub-drainage basin is smaller than the area threshold of the sub-drainage basin, and the reduced current sub-drainage basin is used as a candidate slope unit.
S290, determining a target slope unit of the area to be divided according to the area of the candidate slope unit.
The method for determining the target ramp unit according to the foregoing embodiment includes: comparing the area of each candidate slope unit with a slope unit area threshold value; and if the area of the candidate slope unit is larger than or equal to the slope unit area threshold value, taking the candidate slope unit as the target slope unit.
Optionally, the method for determining the target ramp unit further includes: if the area of the combined slope unit is larger than or equal to the area threshold value of the slope unit, taking the combined slope unit as the target slope unit; and if the area of the combined slope unit is smaller than the slope unit area threshold, continuing to combine the combined slope unit with the candidate slope unit smaller than the slope unit area threshold until the area of the combined slope unit is larger than or equal to the slope unit area threshold, and taking the area of the latest combined slope unit as the target slope unit.
According to the technical scheme provided by the embodiment, when the area of the current sub-drainage basin is larger than or equal to the area threshold of the sub-drainage basin, the gradient and the slope direction of each grid of the area to be divided are determined, and the slope direction round variance and the slope variance of the current sub-drainage basin are calculated according to the slope direction and the gradient of each grid of the area to be divided; if the slope direction round variance of the current sub-basin is smaller than a slope direction round variance threshold and the slope variance is smaller than a slope variance threshold, taking the current sub-basin as the candidate slope unit; and if the slope direction round variance of the current sub-drainage basin is larger than or equal to the slope direction round variance threshold, or the slope direction variance is larger than or equal to the slope direction variance threshold, dividing the area to be divided again according to a predetermined area step length of the sub-drainage basin to obtain at least one sub-drainage basin. The sub-watershed can be divided from thick to thin, and the dividing precision and the dividing efficiency are improved. And, based on slope direction round variance and slope variance, can confirm the subwatershed that is located the plain area to remove the subwatershed in plain area, and then when carrying out landslide prediction based on the target slope unit that removes the subwatershed in plain area, can reduce calculated amount and improve landslide prediction precision.
Example III
Fig. 3 is a schematic diagram of the result of a dividing apparatus for a ramp unit according to a third embodiment of the present invention, as shown in fig. 3, the dividing apparatus for a ramp unit includes: a sub-basin acquisition module 310, a comparison module 320, a candidate ramp unit determination module 330, and a target ramp unit determination module 340.
The sub-basin obtaining module 310 is configured to obtain at least one sub-basin of the region to be divided;
a comparison module 320, configured to determine an area of each sub-drainage basin, and compare the area of the current sub-drainage basin with a sub-drainage basin area threshold;
a candidate slope unit determining module 330, configured to take a current sub-basin as a candidate slope unit if an area of the current sub-basin is smaller than the sub-basin area threshold;
the target ramp unit determining module 340 is configured to determine a target ramp unit of the area to be divided according to the area of the candidate ramp unit.
According to the technical scheme, at least one sub-drainage basin of the area to be divided is obtained, the area of each sub-drainage basin is determined, the area of the current sub-drainage basin is compared with the area threshold of the sub-drainage basin, if the area of the current sub-drainage basin is smaller than the area threshold of the sub-drainage basin, the current sub-drainage basin is used as a candidate slope unit, the candidate slope unit can be determined according to the area of the sub-drainage basin, so that the sub-drainage basin is divided uniformly, and compared with the prior art, the dividing precision of the slope unit can be improved according to a gradient dividing mode; and further determining a target slope unit of the area to be divided according to the area of the candidate slope unit, further screening the candidate slope unit based on the area, taking the candidate slope unit with moderate area as the target slope unit, improving the dividing precision of the slope unit, reducing the calculated amount, and improving the dividing precision of the slope unit for the area with larger range.
Optionally, the sub-basin obtaining module 310 is further configured to obtain elevation data of each grid of the area to be divided;
determining gray value distribution characteristics of pixel points of grids in the region to be divided according to the elevation data;
and carrying out river basin segmentation on the region to be segmented based on the gray value distribution characteristics to obtain at least one sub-river basin of the region to be segmented.
Optionally, the candidate slope unit determining module 330 is further configured to determine a slope and a slope direction of each grid of the area to be divided if the area of the current sub-drainage basin is greater than or equal to the sub-drainage basin area threshold, and calculate a slope round variance and a slope variance of the current sub-drainage basin according to the slope and the slope direction of each grid of the area to be divided;
and determining a candidate slope unit based on the slope direction round variance and the slope variance.
Optionally, the candidate slope unit determining module 330 is further configured to use the current sub-basin as the candidate slope unit if the slope circle variance of the current sub-basin is less than a slope circle variance threshold and the slope variance is less than a slope variance threshold.
Optionally, the sub-drainage basin obtaining module 310 is further configured to, if the slope direction round variance of the current sub-drainage basin is greater than or equal to the slope direction round variance threshold, or the slope variance is greater than or equal to the slope variance threshold, re-divide the area to be divided according to a predetermined area step of the sub-drainage basin, so as to obtain at least one sub-drainage basin.
Optionally, the target ramp unit determining module 340 is further configured to compare the area of each candidate ramp unit with a ramp unit area threshold;
and if the area of the candidate slope unit is larger than or equal to the slope unit area threshold value, taking the candidate slope unit as the target slope unit.
Optionally, the target ramp unit determining module 340 is further configured to merge at least two candidate ramp units that are smaller than the ramp unit area threshold if the area of the candidate ramp unit is smaller than the ramp unit area threshold;
if the area of the combined slope unit is larger than or equal to the area threshold value of the slope unit, taking the combined slope unit as the target slope unit;
and if the area of the combined slope unit is smaller than the slope unit area threshold, continuing to combine the combined slope unit with the candidate slope unit smaller than the slope unit area threshold until the area of the combined slope unit is larger than or equal to the slope unit area threshold, and taking the area of the latest combined slope unit as the target slope unit.
The slope unit dividing device provided by the embodiment of the invention can execute the slope unit dividing method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the executing method.
Example IV
Fig. 4 is a schematic structural diagram of a dividing apparatus for a ramp unit according to a fourth embodiment of the present invention. Fig. 4 shows a block diagram of a partitioning apparatus 12 suitable for use in implementing an exemplary ramp unit of an embodiment of the present invention. The dividing apparatus 12 of the ramp unit shown in fig. 4 is only one example, and should not impose any limitation on the function and the range of use of the embodiment of the present invention.
As shown in fig. 4, the dividing device 12 of the ramp unit is in the form of a general-purpose computing device. The components of the partitioning device 12 of the ramp unit may include, but are not limited to: one or more processors or processing units 16, a system memory 28, a bus 18 that connects the various system components, including the system memory 28 and the processing units 16.
Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, and a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, micro channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
The ramp unit dividing device 12 typically includes a variety of computer system readable media. Such media can be any available media that can be accessed by the ramp unit's dividing device 12, including volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 30 and/or cache memory 32. The ramp unit partitioning device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from or write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, commonly referred to as a "hard disk drive"). Although not shown in fig. 4, a magnetic disk drive for reading from and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In such cases, each drive may be coupled to bus 18 through one or more data medium interfaces. The system memory 28 may include at least one program product having a set of program modules (e.g., a sub-basin acquisition module 310, a comparison module 320, a candidate ramp unit determination module 330, and a target ramp unit determination module 340 of a partitioning apparatus for a ramp unit) configured to perform the functions of various embodiments of the present invention.
Program/utility 44 having a set of program modules 46 (e.g., sub-basin acquisition module 310, comparison module 320, candidate ramp unit determination module 330, and target ramp unit determination module 340) of partitioning means for a ramp unit may be stored, for example, in system memory 28, such program modules 46 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 46 generally perform the functions and/or methods of the embodiments described herein.
The dividing device 12 of the ramp unit may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with the dividing device 12 of the ramp unit, and/or with any device (e.g., network card, modem, etc.) that enables the dividing device 12 of the ramp unit to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 22. Also, the demarcation device 12 of the ramp unit may also communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) via the network adapter 20. As shown, the network adapter 20 communicates with the other modules of the ramp unit's dividing device 12 via the bus 18. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with the dividing device 12 of the ramp unit, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
The processing unit 16 executes various functional applications and data processing by running a program stored in the system memory 28, for example, to implement a ramp unit dividing method provided in an embodiment of the present invention, the method including:
acquiring at least one sub-basin of a region to be divided;
determining the area of each sub-drainage basin, and comparing the area of the current sub-drainage basin with a sub-drainage basin area threshold;
if the area of the current sub-drainage basin is smaller than the sub-drainage basin area threshold, taking the current sub-drainage basin as a candidate slope unit;
and determining the target slope unit of the area to be divided according to the area of the candidate slope unit.
The processing unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, for example, implementing a rainfall peak type dividing method provided by an embodiment of the present invention.
Of course, it will be understood by those skilled in the art that the processor may also implement the technical scheme of the method for dividing a ramp unit according to any embodiment of the present invention.
Example five
The fifth embodiment of the present invention further provides a computer readable storage medium having a computer program stored thereon, the program when executed by a processor implementing a method for dividing a ramp unit according to the present invention, the method including:
acquiring at least one sub-basin of a region to be divided;
determining the area of each sub-drainage basin, and comparing the area of the current sub-drainage basin with a sub-drainage basin area threshold;
if the area of the current sub-drainage basin is smaller than the sub-drainage basin area threshold, taking the current sub-drainage basin as a candidate slope unit;
and determining the target slope unit of the area to be divided according to the area of the candidate slope unit.
Of course, the computer-readable storage medium provided by the embodiments of the present invention, on which the computer program stored, is not limited to the above method operations, but may also perform the related operations in the method for dividing a ramp unit provided by any embodiment of the present invention.
The computer storage media of embodiments of the invention may take the form of any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, or device.
The computer readable signal medium may include an area in a current sub-basin, a sub-basin area threshold, a candidate ramp unit, a target ramp unit, etc., in which computer readable program code is carried. The area of the current sub-basin of this propagation, the sub-basin area threshold, the candidate ramp unit and the target ramp unit, etc. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
It should be noted that, in the embodiment of the dividing apparatus of the ramp unit, each included module is only divided according to the functional logic, but not limited to the above division, so long as the corresponding function can be implemented; in addition, the specific names of the functional units are also only for distinguishing from each other, and are not used to limit the protection scope of the present invention.
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (9)

1. A method of dividing a ramp unit, comprising:
acquiring at least one sub-basin of a region to be divided;
determining the area of each sub-drainage basin, and comparing the area of the current sub-drainage basin with a sub-drainage basin area threshold;
if the area of the current sub-drainage basin is smaller than the sub-drainage basin area threshold, taking the current sub-drainage basin as a candidate slope unit;
if the area of the current sub-drainage basin is larger than or equal to the area threshold of the sub-drainage basin, determining the gradient and the slope direction of each grid of the area to be divided;
calculating the slope direction round variance and the slope variance of the current sub-drainage basin according to the slope direction and the slope of each grid of the region to be divided;
determining a candidate ramp unit based on the slope direction round variance and the slope variance;
determining a target slope unit of the area to be divided according to the area of the candidate slope unit;
the determining the area of each sub-basin comprises the following steps: and determining the area of each sub-stream domain according to the grid number in each sub-stream domain and the size of each grid.
2. The method of claim 1, wherein the obtaining at least one sub-basin of the region to be partitioned comprises:
acquiring elevation data of each grid of the area to be divided;
determining gray value distribution characteristics of pixel points of grids in the region to be divided according to the elevation data;
and carrying out river basin segmentation on the region to be segmented based on the gray value distribution characteristics to obtain at least one sub-river basin of the region to be segmented.
3. The method of claim 1, wherein the determining a candidate ramp unit based on the slope direction round variance and slope variance comprises:
and if the slope direction round variance of the current sub-basin is smaller than a slope direction round variance threshold and the slope variance is smaller than a slope variance threshold, taking the current sub-basin as the candidate slope unit.
4. A method according to claim 3, further comprising:
and if the slope direction round variance of the current sub-drainage basin is larger than or equal to the slope direction round variance threshold, or the slope direction variance is larger than or equal to the slope direction variance threshold, dividing the area to be divided again according to a predetermined area step length of the sub-drainage basin to obtain at least one sub-drainage basin.
5. The method of claim 1, wherein the determining the target ramp unit of the area to be divided according to the area of the candidate ramp unit comprises:
comparing the area of each candidate slope unit with a slope unit area threshold value;
and if the area of the candidate slope unit is larger than or equal to the slope unit area threshold value, taking the candidate slope unit as the target slope unit.
6. The method as recited in claim 5, further comprising:
merging at least two candidate ramp units smaller than the ramp unit area threshold if the area of the candidate ramp unit is smaller than the ramp unit area threshold;
if the area of the combined slope unit is larger than or equal to the area threshold value of the slope unit, taking the combined slope unit as the target slope unit;
and if the area of the combined slope unit is smaller than the slope unit area threshold, continuing to combine the combined slope unit with the candidate slope unit smaller than the slope unit area threshold until the area of the combined slope unit is larger than or equal to the slope unit area threshold, and taking the area of the latest combined slope unit as the target slope unit.
7. A dividing apparatus of a ramp unit, characterized by comprising:
the sub-drainage basin acquisition module is used for acquiring at least one sub-drainage basin of the area to be divided;
the comparison module is used for determining the area of each sub-drainage basin and comparing the area of the current sub-drainage basin with a sub-drainage basin area threshold value;
the candidate slope unit determining module is used for taking the current sub-drainage basin as a candidate slope unit if the area of the current sub-drainage basin is smaller than the area threshold of the sub-drainage basin;
the candidate slope unit determining module is further configured to determine a slope and a slope direction of each grid of the area to be divided if the area of the current sub-drainage basin is greater than or equal to the sub-drainage basin area threshold, and calculate a slope round variance and a slope variance of the current sub-drainage basin according to the slope and the slope direction of each grid of the area to be divided;
determining a candidate ramp unit based on the slope direction round variance and the slope variance;
a target slope unit determining module, configured to determine a target slope unit of the area to be divided according to an area of the candidate slope unit;
the determining the area of each sub-basin comprises the following steps: and determining the area of each sub-stream domain according to the grid number in each sub-stream domain and the size of each grid.
8. A dividing apparatus of a ramp unit, characterized by comprising: one or more processors; a memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the method of partitioning a ramp unit as recited in any one of claims 1-6.
9. A storage medium containing computer executable instructions which, when executed by a computer processor, are for performing the partitioning method of a ramp unit as claimed in any one of claims 1 to 6.
CN202011496072.1A 2020-12-17 2020-12-17 Method, device, equipment and storage medium for dividing ramp units Active CN112560267B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011496072.1A CN112560267B (en) 2020-12-17 2020-12-17 Method, device, equipment and storage medium for dividing ramp units

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011496072.1A CN112560267B (en) 2020-12-17 2020-12-17 Method, device, equipment and storage medium for dividing ramp units

Publications (2)

Publication Number Publication Date
CN112560267A CN112560267A (en) 2021-03-26
CN112560267B true CN112560267B (en) 2024-04-09

Family

ID=75063033

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011496072.1A Active CN112560267B (en) 2020-12-17 2020-12-17 Method, device, equipment and storage medium for dividing ramp units

Country Status (1)

Country Link
CN (1) CN112560267B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113408497B (en) * 2021-08-03 2021-11-09 广东省科学院广州地理研究所 Space scale selection method and device for mass landslide

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103455711A (en) * 2013-08-15 2013-12-18 广州地理研究所 Small watershed region-oriented landslide hazard risk division method based on mechanism analysis
CN108257142A (en) * 2018-01-11 2018-07-06 中国科学院、水利部成都山地灾害与环境研究所 Ramp unit extracting method in DEM

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103455711A (en) * 2013-08-15 2013-12-18 广州地理研究所 Small watershed region-oriented landslide hazard risk division method based on mechanism analysis
CN108257142A (en) * 2018-01-11 2018-07-06 中国科学院、水利部成都山地灾害与环境研究所 Ramp unit extracting method in DEM

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
A new slope unit extraction method for regional landslide analysis based on morphological image analysis;Kai Wang等;《Bulletin of Engineering Geology and the Environment》;全文 *
Automatic delineation of geomorphological slope units with r.slopeunits v1.0 and their optimization for landslide susceptibility modeling;Massimiliano Alvioli等;《Geoscientific Model Development》;第9卷(第11期);全文 *
斜坡单元提取方法研究进展和展望;王凯等;《长江科学院院报》;第37卷(第6期);第85-93页 *

Also Published As

Publication number Publication date
CN112560267A (en) 2021-03-26

Similar Documents

Publication Publication Date Title
CN111090628B (en) Data processing method and device, storage medium and electronic equipment
CN110321958B (en) Training method of neural network model and video similarity determination method
US11195125B2 (en) Pollution prediction
US11836644B2 (en) Abnormal air pollution emission prediction
CN110415276B (en) Motion information calculation method and device and electronic equipment
CN112668238B (en) Rainfall processing method, rainfall processing device, rainfall processing equipment and storage medium
US20240152532A1 (en) Method and apparatus for determining spatial relationship, computer device, and storage medium
US10001925B2 (en) Method to improve page out mechanism with compressed memory pools
CN114996173B (en) Method and device for managing write operation of storage equipment
CN112560267B (en) Method, device, equipment and storage medium for dividing ramp units
US20210278564A1 (en) Dynamic flood risk data management
CN112651172B (en) Rainfall peak type dividing method, device, equipment and storage medium
CN107729944B (en) Identification method and device of popular pictures, server and storage medium
US10796036B2 (en) Prediction of inhalable particles concentration
CN110659280B (en) Road blocking abnormity detection method and device, computer equipment and storage medium
CN111382643B (en) Gesture detection method, device, equipment and storage medium
CN112561171B (en) Landslide prediction method, device, equipment and storage medium
CN112529315B (en) Landslide prediction method, landslide prediction device, landslide prediction equipment and storage medium
CN116308106A (en) Method and device for processing scene data in flood prevention emergency and computer equipment
CN111988813B (en) Method, device and computer equipment for determining weak coverage cell in mobile communication network
CN113780163A (en) Page loading time detection method and device, electronic equipment and medium
CN112580871B (en) Feature screening method and device
CN113640845B (en) Method, device, equipment and storage medium for optimizing position data delay correction
CN116302900B (en) Computing power reliability assessment method of multi-access edge computing system
CN110648208B (en) Group identification method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant