OldCoreMetadata. 0 _r0_c0:
GROUP=INVENTORYMETADATA
GROUPTYPE=MASTERGROUP
The OBJECT=GRINGPOINTLONGITUDE
NUM_VAL=4
CLASS="1", "
VALUE=https://bbs.csdn.net/topics/(65.0812475944934, 77.7497163153283, 93.4077589098503, 78.2279065705557)
END_OBJECT=GRINGPOINTLONGITUDE
The OBJECT=GRINGPOINTLATITUDE
NUM_VAL=4
CLASS="1", "
VALUE=https://bbs.csdn.net/topics/(39.8413328799098, 50.0752988745116, 49.9953294631081, 39.7845494675869)
END_OBJECT=GRINGPOINTLATITUDE
The OBJECT=RANGEBEGINNINGDATE
NUM_VAL=1
VALUE="https://bbs.csdn.net/topics/2009-01-01"
END_OBJECT=RANGEBEGINNINGDATE
Who can tell how to get (65.0812475944934, 77.7497163153283, 93.4077589098503, 78.2279065705557)
(39.8413328799098, 50.0752988745116, 49.9953294631081, 39.7845494675869) and the 2009-01-01
Is the latitude and longitude information and date?
CodePudding user response:
import re
S="" "OldCoreMetadata. 0 _r0_c0:
GROUP=INVENTORYMETADATA
GROUPTYPE=MASTERGROUP
The OBJECT=GRINGPOINTLONGITUDE
NUM_VAL=4
CLASS="1", "
VALUE=https://bbs.csdn.net/topics/(65.0812475944934, 77.7497163153283, 93.4077589098503, 78.2279065705557)
END_OBJECT=GRINGPOINTLONGITUDE
The OBJECT=GRINGPOINTLATITUDE
NUM_VAL=4
CLASS="1", "
VALUE=https://bbs.csdn.net/topics/(39.8413328799098, 50.0752988745116, 49.9953294631081, 39.7845494675869)
END_OBJECT=GRINGPOINTLATITUDE
The OBJECT=RANGEBEGINNINGDATE
NUM_VAL=1
VALUE="https://bbs.csdn.net/topics/2009-01-01"
END_OBJECT=RANGEBEGINNINGDATE "" "
L=re. The.findall (r "VALUE. *?=(. *?) . \ n ", s, re DOTALL)
Print (l)
CodePudding user response:
First of all thank you for your help, I the modis data output ofMetadata, a total of 37:
ALGORITHMPACKAGEACCEPTANCEDATE: 102004
ALGORITHMPACKAGEMATURITYCODE: Normal
ALGORITHMPACKAGENAME: MOD_PR13A3
ALGORITHMPACKAGEVERSION: 5
.
OldCoreMetadata. 0 _r0_c0:
GROUP=INVENTORYMETADATA
GROUPTYPE=MASTERGROUP
The OBJECT=GRINGPOINTLONGITUDE
NUM_VAL=4
CLASS="1", "
VALUE=https://bbs.csdn.net/topics/(65.0812475944934, 77.7497163153283, 93.4077589098503, 78.2279065705557)
END_OBJECT=GRINGPOINTLONGITUDE
The OBJECT=GRINGPOINTLATITUDE
NUM_VAL=4
CLASS="1", "
VALUE=https://bbs.csdn.net/topics/(39.8413328799098, 50.0752988745116, 49.9953294631081, 39.7845494675869)
END_OBJECT=GRINGPOINTLATITUDE
The OBJECT=RANGEBEGINNINGDATE
NUM_VAL=1
VALUE="https://bbs.csdn.net/topics/2009-01-01"
END_OBJECT=RANGEBEGINNINGDATE "" "
.
I have a lot of the MODIS data to get different batch data of latitude and longitude and date data, can use variables, said the best ways I behind the call of the code, can excuse me such implementation?
CodePudding user response:
May is not the same with the above regular? Check the result and then grouping together, is what you want