Skip to content

How to remove specific coastlines in the output.pkl file? #564

Answered by Mascagni-ML
Mascagni-ML asked this question in Q&A
Discussion options

You must be logged in to vote

I think I got it here.
The problem was with how I was calling the adjusted .pkl file in the coastsat notebook, after running the routine I made to filter the coastlines.

So, here is the code to filter coastlines from the .pkl file, selected by mistake in the previous step, from specific dates and satellite missions.

##################################################################

Step 01 - Load Python Libraries

import sys
sys.path.append("C:/your/path/to/coastsat")
import pickle
from datetime import datetime

Step 02 - Load the coastsat .pkl original file

file_path = "C:/your/path/to/coastsat/case/filename_output.pkl"
with open(file_path, 'rb') as file:
coastsat_data = pickle.load(file)

S…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Mascagni-ML
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant