pytroll / pytroll-examples

Collection of examples for pytroll satellite data processing
GNU General Public License v3.0
76 stars 34 forks source link

coastline/borders #38

Closed Tsironisa closed 4 years ago

Tsironisa commented 4 years ago

Hi, i would like some help. i want to add coastline or/and country bordes in my scenes from netCDF data.i could get it with pycoast onr geoviews any help or simple code Thanks in advance

mraspaud commented 4 years ago

@Tsironisa is your netcdf data satellite data? and in this case which data? In any case, pycoast should be able to help you when you get you data as a pillow image, and then you can look here on how to add the coastlines on top of the image: https://pycoast.readthedocs.io/en/latest/high_quality_contours.html

Tsironisa commented 4 years ago

Yes it is satellite data from severi instrument

Tsironisa commented 4 years ago

cw = ContourWriterAGG('/home/esn/data/gshhs') cause i cant find the correct path to ContourWriterAGG but i have the aggdraw and cartopy installed. sorry for my lame question i am quite niw to this

mraspaud commented 4 years ago

@Tsironisa you need to provide the path to your directory here: cw = ContourWriterAGG('/your/path/to/gshhs') you can download the coastlines as explained here: https://pycoast.readthedocs.io/en/latest/installation.html

Tsironisa commented 4 years ago

i worked like a charm i cant thank you enough Have a great day cause you made mine a great one