Comments (6)
I think this is definitely interesting!
from satpy.
If I understand it correctly, that means the user would pass one background image to use for land and another background image to use for sea?
Looks interesting, but should it be a land-sea mask or a land-water mask? In your link, large lakes are coloured as land, whereas they probably should be coloured as sea (particularly clear at the Caspian Sea), so unless this is specifically about marine forecasting or so, I would call it a land-water mask from the start and implement it as such.
from satpy.
No @gerritholl, one static image containing a land sea mask as https://github.com/pytroll/satpy/blob/main/satpy/etc/composites/fci.yaml#L165-L168
But I agree, I want to improve that also inland lakes are colored as water. So it is I good idea to use the term water instead of sea.
The draft PR already colors inland lakes as water
from satpy.
I also have a need for a land/sea mask compositor and as you've shown @strandgren has also used one for the geocolor composite. Seems like there is a common need for a coordinated approach on the best way to organise this. Perhaps a separate compositor that can be used by all of our various needs, which can load a LSM (preferably including cached ones for the GEO sensors to speed things up, rather than resampling from a lat/lon image each time) and with an optional argument to specify the LSM resolution.
Don't have much time, but am happy to help implement something as the idea develops :-)
from satpy.
Yeah @simonrp84, But it don't have to be a lsm or lwm (land water mask), but a generic mask dataset.
A mask is also applied using a dataset with the CloudType( I think) NWCSAF product.
from satpy.
I also think this is a good idea. For GeoColor I made it quite generic (even though it's currently locked inside the GeoColor LowCloudCompositor
), where the user provides a land-water mask dataset as a static image (geotiff) using the StaticImageCompositor
and two lists of values that represent land and water respectively. So maybe you could build from that approach?
Because I think that this can rather easily be made more generic with for example a LandWaterMaskCompositor
that takes a dataset/composite as input (loaded from e.g. satellite product directly or from a static image using the StaticImageCompositor
) and then the two lists of values that should represent land and water respectively. Under the hood I guess the MaskingCompositor
can be utilized for more flexibility? The question is if the MaskingCompositor
can maybe do the job alone, without the need for an additional compositor?
from satpy.
Related Issues (20)
- Add lat lon to Seviri plots HOT 7
- MODIS Satpy scene Don't know how to open the following files: {'MOD021KM.A2017131.1325.061.2017314123114.hdf'} HOT 12
- Composite snow_age fails (no 'area') after composite cloud_phase HOT 8
- Addition of Overlay's to save_datasets() Documentation
- Add Viirs L2 Reader + Enhancments HOT 4
- Replace pytest-lazyfixture for pytest >= 8.0 HOT 2
- Creating composites using static background require double resampling when `generate=False` is used HOT 14
- Using a static image alters time information HOT 4
- Cannot load from MTG FCI L1C data HOT 7
- Saving and reloading a TIF does not preserve area name + id HOT 1
- [Question] Resample of mesoscale data gives blank data HOT 1
- Replacement of deprecated `datetime.datetime.utcnow()` HOT 5
- Resolution and area extent inconsistency in creating AreaDefinition HOT 1
- Extensive NaN Pixels and Ringed Artifacts After Geostationary Satellite Image Projection HOT 6
- Changed meaning of sun_earth_distance_correction_factor
- Blending Satellite Images in a smooth way HOT 5
- 'defusedxml' missing in "msi_safe" extras HOT 4
- Too much memory usage for composite processing HOT 2
- abi_l2_nc reader Key Error 'calibration' when trying to load Mask from fire Hot Spot HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from satpy.