[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mapserver-users
Subject:    [MapServer-users] Problems using mask and time dimension
From:       Marcin Niemyjski via MapServer-users <mapserver-users () lists ! osgeo ! org>
Date:       2023-07-03 13:04:02
Message-ID: AS1PR03MB8149A5CA0640678E7EC31E8AA829A () AS1PR03MB8149 ! eurprd03 ! prod ! outlook ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hello,

I have a problem:

I have created the following mapfile:https://paste.ofcode.org/ianeSsdL45hJtDgh7SxMEm

it is based on the tileindex and time dimension.

Along with Sentinel-2, cloud mask is attached in the form of a raster. As you can \
see, one of the attributes of my tile index is the path to the mask raster, from \
which I extract clouds and their shadows to use the MASK and mark clouds in the \
images.

And it works.

The problem is that when using the time dimension, the cloud mask is also applied to \
images from other dates where there are no clouds (there are only clouds for one \
specific date) :(

The question is: How can I apply the mask only to the raster of each individual date \
for which it was created, so that I can effectively use masking and the time \
dimension?

Best,
Marcin






[cid:2b3cfdde-291a-4d0a-9225-7199f357600a]<https://outlook.office.com/bookwithme/user/6347c7def05a478ba013ae948648789d@cloudferro.com?anonymous&ep=signature> \
Book time to meet with \
me<https://outlook.office.com/bookwithme/user/6347c7def05a478ba013ae948648789d@cloudferro.com?anonymous&ep=signature>



[Attachment #5 (text/html)]

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} \
</style> </head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; \
color: rgb(0, 0, 0);" class="elementToProof"> <div class="flex flex-grow flex-col \
gap-3"> <div class="min-h-[20px] flex items-start overflow-x-auto whitespace-pre-wrap \
break-words flex-col gap-4"> <div class="markdown prose w-full break-words \
dark:prose-invert light"> <p class="ContentPasted0">Hello,</p>
<p class="ContentPasted0">I have a problem:</p>
<p class="ContentPasted0 ContentPasted1">I have created the following mapfile:<a \
href="https://paste.ofcode.org/ianeSsdL45hJtDgh7SxMEm" \
id="LPlnk286961">https://paste.ofcode.org/ianeSsdL45hJtDgh7SxMEm</a><br> </p>
<p class="ContentPasted0 ContentPasted1">it is based on the tileindex and time \
dimension.</p> <p class="ContentPasted0">Along with Sentinel-2, cloud mask is \
attached in the form of a raster. As you can see, one of the attributes of my tile \
index is the path to the mask raster, from which I extract clouds and their shadows \
to use the MASK and mark clouds  in the images.</p>
<p class="ContentPasted0">And it works.</p>
<p class="ContentPasted0">The problem is that when using the time dimension, the \
cloud mask is also applied to images from other dates where there are no clouds \
(there are only clouds for one specific date) :(</p> <p class="ContentPasted0">The \
question is: How can I apply the mask only to the raster of each individual date for \
which it was created, so that I can effectively use masking and the time \
dimension?</p> </div>
</div>
</div>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; \
color: rgb(0, 0, 0);" class="elementToProof"> <br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; \
color: rgb(0, 0, 0);" class="elementToProof"> Best,
<div>Marcin</div>
<br>
</div>
<div class="elementToProof">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; \
color: rgb(0, 0, 0);"> <br>
</div>
<div id="Signature">
<div>
<table style="margin-top:30px;margin-bottom:30px;width:95%" id="tableSelected0">
<tbody>
<tr height="45">
<td><br>
</td>
</tr>
<tr>
<td><br>
</td>
</tr>
<tr>
<td><br>
</td>
</tr>
<tr>
<td><br>
</td>
</tr>
</tbody>
</table>
<table id="pbpsiglinktable">
<tbody>
<tr>
<td><a href="https://outlook.office.com/bookwithme/user/6347c7def05a478ba013ae948648789d@cloudferro.com?anonymous&amp;ep=signature"><img \
data-outlook-trace="F:1|T:1" src="cid:2b3cfdde-291a-4d0a-9225-7199f357600a"></a></td> \
<td></td> <td><a href="https://outlook.office.com/bookwithme/user/6347c7def05a478ba013ae948648789d@cloudferro.com?anonymous&amp;ep=signature" \
style="text-decoration: none; color: rgb(0, 120, 212);">Book time to meet with \
me</a></td> <td>
<table>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</body>
</html>


["Outlook-oz0pftj1.png" (image/png)]

_______________________________________________
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

--===============3452184242491634302==--

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic