Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Commit

Permalink
update collection formats
Browse files Browse the repository at this point in the history
  • Loading branch information
appelmar committed Oct 24, 2019
1 parent 1f828e8 commit ef530c7
Show file tree
Hide file tree
Showing 13 changed files with 201 additions and 53 deletions.
6 changes: 6 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@

# 0.2.3

* fixed clang compiler warnings
* fixed MODIS collection formats
* new collection formats MxD14A2 and MxD13A2


# 0.2.2

Expand Down
2 changes: 1 addition & 1 deletion formats/L8_L1TP.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"pattern" : "(?:.*[/\\\\])?([^/\\\\]+)[/\\\\].+\\.TIF"
},
"datetime" : {
"pattern" : ".*L[OTC]08_.{4}_.{6}_(.+)_.*\\.TIF",
"pattern" : ".*LC08_L1TP_.{6}_(.+)_.*\\.TIF",
"format" : "%Y%m%d"
},
"bands": {
Expand Down
4 changes: 2 additions & 2 deletions formats/MxD10A2.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
},
"bands" : {
"Eight_Day_Snow_Cover" : {
"pattern" : ".+Eight_Day_Snow_Cover$",
"pattern" : ".+Eight_Day_Snow_Cover.*",
"nodata" : 0
},
"Maximum_Snow_Extent" : {
"pattern" : ".+Maximum_Snow_Extent",
"pattern" : ".+Maximum_Snow_Extent.*",
"nodata" : 255
}
}
Expand Down
12 changes: 6 additions & 6 deletions formats/MxD11A1.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,25 @@
},
"bands" : {
"LST_DAY" : {
"pattern" : ".+LST_Day_1km$",
"pattern" : ".+LST_Day_1km.*",
"nodata" : 0
},
"LST_NIGHT" : {
"pattern" : ".+LST_Night_1km$",
"pattern" : ".+LST_Night_1km.*",
"nodata" : 0
},
"QC_DAY" : {
"pattern" : ".+QC_Day$"
"pattern" : ".+QC_Day.*"
},
"QC_NIGHT" : {
"pattern" : ".+QC_Night$"
"pattern" : ".+QC_Night.*"
},
"DAY_VIEW_TIME" : {
"pattern" : ".+Day_view_time$",
"pattern" : ".+Day_view_time.*",
"nodata" : 255
},
"NIGHT_VIEW_TIME" : {
"pattern" : ".+Night_view_time$",
"pattern" : ".+Night_view_time.*",
"nodata" : 255
}
}
Expand Down
16 changes: 8 additions & 8 deletions formats/MxD11A2.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,33 +12,33 @@
},
"bands" : {
"LST_DAY" : {
"pattern" : ".+LST_Day_1km$",
"pattern" : ".+LST_Day_1km.*",
"nodata" : 0
},
"LST_NIGHT" : {
"pattern" : ".+LST_Night_1km$",
"pattern" : ".+LST_Night_1km.*",
"nodata" : 0
},
"QC_DAY" : {
"pattern" : ".+QC_Day$"
"pattern" : ".+QC_Day.*"
},
"QC_NIGHT" : {
"pattern" : ".+QC_Night$"
"pattern" : ".+QC_Night.*"
},
"DAY_VIEW_TIME" : {
"pattern" : ".+Day_view_time$",
"pattern" : ".+Day_view_time.*",
"nodata" : 255
},
"NIGHT_VIEW_TIME" : {
"pattern" : ".+Night_view_time$",
"pattern" : ".+Night_view_time.*",
"nodata" : 255
},
"EMIS_31" : {
"pattern" : ".+Emis_31$",
"pattern" : ".+Emis_31.*",
"nodata" : 0
},
"EMIS_32" : {
"pattern" : ".+Emis_32$",
"pattern" : ".+Emis_32.*",
"nodata" : 0
}
}
Expand Down
43 changes: 43 additions & 0 deletions formats/MxD13A2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"description" : "Collection format for selected bands from the MODIS MxD13A2 (Aqua and Terra) product",
"tags" : ["MODIS", "VI", "NDVI", "EVI"],
"pattern" : ".*\\.hdf.*",
"images" : {
"pattern" : "HDF4_EOS:EOS_GRID:\"(.+)\\.hdf.*"
},
"subdatasets" : true,
"datetime" : {
"pattern" : ".*M[OY]D13A2\\.A(.{7})[^/]*",
"format" : "%Y%j"
},
"bands" : {
"NDVI" : {
"pattern" : ".+NDVI.*",
"nodata" : -3000
},
"EVI" : {
"pattern" : ".+EVI.*",
"nodata" : -3000
},
"VIQ" : {
"pattern" : ".+Quality.*",
"nodata" : -3000
},
"RED" : {
"pattern" : ".+red reflectance.*",
"nodata" : -3000
},
"NIR" : {
"pattern" : ".+NIR reflectance.*",
"nodata" : -3000
},
"BLUE" : {
"pattern" : ".+blue reflectance.*",
"nodata" : -3000
},
"MIR" : {
"pattern" : ".+MIR reflectance.*",
"nodata" : -3000
}
}
}
14 changes: 7 additions & 7 deletions formats/MxD13A3.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,31 +12,31 @@
},
"bands" : {
"NDVI" : {
"pattern" : ".+NDVI$",
"pattern" : ".+NDVI.*",
"nodata" : -3000
},
"EVI" : {
"pattern" : ".+EVI",
"pattern" : ".+EVI.*",
"nodata" : -3000
},
"VIQ" : {
"pattern" : ".+Quality",
"pattern" : ".+Quality.*",
"nodata" : -3000
},
"RED" : {
"pattern" : ".+red reflectance",
"pattern" : ".+red reflectance.*",
"nodata" : -3000
},
"NIR" : {
"pattern" : ".+NIR reflectance",
"pattern" : ".+NIR reflectance.*",
"nodata" : -3000
},
"BLUE" : {
"pattern" : ".+blue reflectance",
"pattern" : ".+blue reflectance.*",
"nodata" : -3000
},
"MIR" : {
"pattern" : ".+MIR reflectance",
"pattern" : ".+MIR reflectance.*",
"nodata" : -3000
}
}
Expand Down
16 changes: 8 additions & 8 deletions formats/MxD13Q1.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,42 +12,42 @@
},
"bands" : {
"NDVI" : {
"pattern" : ".+NDVI$",
"pattern" : ".+NDVI.*",
"nodata" : -3000,
"scale" : 0.0001

},
"EVI" : {
"pattern" : ".+EVI$",
"pattern" : ".+EVI.*",
"nodata" : -3000,
"scale" : 0.0001
},
"VI_Quality" : {
"pattern" : ".+Quality$",
"pattern" : ".+Quality.*",
"nodata" : 65535
},
"red" : {
"pattern" : ".+red reflectance$",
"pattern" : ".+red reflectance.*",
"nodata" : -1000,
"scale" : 0.0001
},
"NIR" : {
"pattern" : ".+NIR reflectance$",
"pattern" : ".+NIR reflectance.*",
"nodata" : -1000,
"scale" : 0.0001
},
"blue" : {
"pattern" : ".+blue reflectance$",
"pattern" : ".+blue reflectance.*",
"nodata" : -1000,
"scale" : 0.0001
},
"MIR" : {
"pattern" : ".+MIR reflectance$",
"pattern" : ".+MIR reflectance.*",
"nodata" : -1000,
"scale" : 0.0001
},
"pixel_reliability" : {
"pattern" : ".+pixel reliability$"
"pattern" : ".+pixel reliability.*"
}
}
}
4 changes: 2 additions & 2 deletions formats/MxD14A2.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
},
"bands" : {
"FireMask" : {
"pattern" : ".+FireMask$",
"pattern" : ".+FireMask.*",
"nodata" : 0
},
"QA" : {
"pattern" : ".+QA$"
"pattern" : ".+QA.*"
}
}
}
13 changes: 13 additions & 0 deletions formats/Sentinel2_L1C.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,54 +12,67 @@
"bands" : {
"B01" : {
"nodata" : 0,
"scale" : 0.0001,
"pattern" : ".+_B01\\.jp2"
},
"B02" : {
"nodata" : 0,
"scale" : 0.0001,
"pattern" : ".+_B02\\.jp2"
},
"B03" : {
"nodata" : 0,
"scale" : 0.0001,
"pattern" : ".+_B03\\.jp2"
},
"B04" : {
"nodata" : 0,
"scale" : 0.0001,
"pattern" : ".+_B04\\.jp2"
},
"B05" : {
"nodata" : 0,
"scale" : 0.0001,
"pattern" : ".+_B05\\.jp2"
},
"B06" : {
"nodata" : 0,
"scale" : 0.0001,
"pattern" : ".+_B06\\.jp2"
},
"B07" : {
"nodata" : 0,
"scale" : 0.0001,
"pattern" : ".+_B07\\.jp2"
},
"B08" : {
"nodata" : 0,
"scale" : 0.0001,
"pattern" : ".+_B08\\.jp2"
},
"B8A" : {
"nodata" : 0,
"scale" : 0.0001,
"pattern" : ".+_B8A\\.jp2"
},
"B09" : {
"nodata" : 0,
"scale" : 0.0001,
"pattern" : ".+_B09\\.jp2"
},
"B10" : {
"nodata" : 0,
"scale" : 0.0001,
"pattern" : ".+_B10\\.jp2"
},
"B11" : {
"nodata" : 0,
"scale" : 0.0001,
"pattern" : ".+_B11\\.jp2"
},
"B12" : {
"nodata" : 0,
"scale" : 0.0001,
"pattern" : ".+_B12\\.jp2"
}
}
Expand Down
Loading

0 comments on commit ef530c7

Please sign in to comment.