-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
S2 cfmask product snafu #441
Comments
For S2 do we make the mask or are we using a mask that comes with the data? |
That's what I can't remember... |
$0.02 -- cloud detection is usually imperfect. Both of those tiles look like >90% cloud, don't they? With respect to the question of how it is generated: we use the CFmask implementation from the folks down in Christchurch (see setup.py for the exact version and link). * Here's how to view the cloud cover assessment of a sentinel 2 asset: icooke@north:~$ gdalinfo /vsizip/S2A_MSIL1C_20170413T153911_N0204_R011_T19TCH_20170413T154415.zip 2>/dev/null \
| grep MTD_MSIL1C.xml
/vsizip/S2A_MSIL1C_20170413T153911_N0204_R011_T19TCH_20170413T154415.zip/S2A_MSIL1C_20170413T153911_N0204_R011_T19TCH_20170413T154415.SAFE/MTD_MSIL1C.xml
icooke@north:~$ gdalinfo /vsizip/S2A_MSIL1C_20170413T153911_N0204_R011_T19TCH_20170413T154415.zip/S2A_MSIL1C_20170413T153911_N0204_R011_T19TCH_20170413T154415.SAFE/MTD_MSIL1C.xml \
| grep CLOUD
CLOUD_COVERAGE_ASSESSMENT=100.0 |
I tried the above recommendation, and received this error:
But it works with
|
Another amazing inconsistency in the sentinel2 data formatting. Specific metadata stored in one XML file on one day, and in another XML file on another day. |
I'm not even sure if this is something we can manipulate, or if it's worth it (as it seems to happen only to a few tiles). I used my virtual environment
/scratch/lledoux/cmsindo/test-venv/
on rio to process Sentinel 2 data, and then create a project directory. I have noticed on a couple images that the cfmask product seems to be off. The product is not off for every date in the directory, just a couple. An example of it is seen below:This is a reflectance image, the clouds are the white (basically the entire image):
![s2_ref](https://user-images.githubusercontent.com/16612231/32605748-a39d21c4-c520-11e7-951d-11aef9daac70.png)
And this is the cfmask product (where the black pixels have a value of "1" (valid data) (separate question- why is the northern part all gray?):
![s2_cfmask](https://user-images.githubusercontent.com/16612231/32605781-c79112b6-c520-11e7-9eba-e67444be3abb.png)
This particular product is
/projects/NASsarag1/data/thaibin/2017_sentinel2/thaibinh_32648_30.0x30.0_sentinel2/0/2017094_S2A_cfmask.tif
And this is the same ref product, with gips_mask applied:
![s2_masked_ref](https://user-images.githubusercontent.com/16612231/32606167-45bd1e04-c522-11e7-9b59-6254cdecdfaa.png)
The text was updated successfully, but these errors were encountered: