Skip to content

Commit

Permalink
reduce dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
changliao1025 committed Mar 1, 2022
1 parent faa614c commit 66540ea
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 22 deletions.
Binary file removed google_map.png
Binary file not shown.
10 changes: 2 additions & 8 deletions pyflowline/classes/basin.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,8 @@
import json
from json import JSONEncoder
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.path as mpath
import matplotlib.patches as mpatches
from matplotlib import cm
import cartopy.crs as ccrs

from osgeo import ogr, osr, gdal

from shapely.wkt import loads

from pyflowline.classes.vertex import pyvertex
Expand Down Expand Up @@ -52,8 +47,7 @@
from pyflowline.algorithms.intersect.intersect_flowline_with_mesh import intersect_flowline_with_mesh
from pyflowline.algorithms.intersect.intersect_flowline_with_flowline import intersect_flowline_with_flowline

#desired_proj = ccrs.Orthographic(central_longitude=-75, central_latitude=42, globe=None)
desired_proj = ccrs.PlateCarree()


class BasinClassEncoder(JSONEncoder):
def default(self, obj):
Expand Down
14 changes: 3 additions & 11 deletions pyflowline/classes/pycase.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,10 @@

from osgeo import ogr, osr, gdal

import matplotlib.image as mpimg
import matplotlib.pyplot as plt
import matplotlib.path as mpath
import matplotlib.ticker as mticker
import matplotlib.patches as mpatches
import matplotlib.cm as cm


from shapely.wkt import loads
from cartopy.mpl.ticker import LongitudeFormatter, LatitudeFormatter
import cartopy.io.shapereader as shpreader
from cartopy.feature import ShapelyFeature
import cartopy.crs as ccrs


from pyflowline.classes.mpas import pympas
from pyflowline.classes.hexagon import pyhexagon
Expand All @@ -47,7 +39,7 @@
from pyflowline.mesh.mpas.create_mpas_mesh import create_mpas_mesh
from pyflowline.mesh.tin.create_tin_mesh import create_tin_mesh

desired_proj = ccrs.PlateCarree()


pDate = datetime.datetime.today()
sDate_default = "{:04d}".format(pDate.year) + "{:02d}".format(pDate.month) + "{:02d}".format(pDate.day)
Expand Down
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
AUTHOR_EMAIL = "[email protected]"
URL = "https://github.com/changliao1025/pyflowline"
VERSION = "0.1.1"
REQUIRES_PYTHON = ">=3.6.0"
REQUIRES_PYTHON = ">=3.8.0"
KEYWORDS = "Earth Science"

REQUIRED = [
"numpy",
"matplotlib",
"gdal",
"netCDF4"
"netCDF4",
"shapely"
]

CLASSIFY = [
Expand Down

0 comments on commit 66540ea

Please sign in to comment.