Skip to content

Commit 8bbed00

Browse files
authored
Merge pull request #509 from s22s/docs/fix-build
Updates for clean CI build
2 parents d54b7d4 + a55e4b8 commit 8bbed00

File tree

8 files changed

+17
-14
lines changed

8 files changed

+17
-14
lines changed

.circleci/config.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@ jobs:
136136
- run:
137137
name: "Create PyRasterFrames package"
138138
command: |-
139-
python -m pip install --user pyspark==2.4.5
140139
sbt -v -batch pyrasterframes/package
141140
142141
- run:

core/src/test/scala/org/locationtech/rasterframes/TestData.scala

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,14 +141,16 @@ trait TestData {
141141
rf.toTileLayerRDD(rf.tileColumns.head).left.get
142142
}
143143

144-
private val baseCOG = "https://s3-us-west-2.amazonaws.com/landsat-pds/c1/L8/149/039/LC08_L1TP_149039_20170411_20170415_01_T1/LC08_L1TP_149039_20170411_20170415_01_T1_%s.TIF"
145-
lazy val remoteCOGSingleband1: URI = URI.create(baseCOG.format("B1"))
146-
lazy val remoteCOGSingleband2: URI = URI.create(baseCOG.format("B2"))
144+
// Check the URL exists as of 2020-09-30; strictly these are not COGs because they do not have internal overviews
145+
private def remoteCOGSingleBand(b: Int) = URI.create(s"https://landsat-pds.s3.us-west-2.amazonaws.com/c1/L8/017/029/LC08_L1TP_017029_20200422_20200509_01_T1/LC08_L1TP_017029_20200422_20200509_01_T1_B${b}.TIF")
146+
lazy val remoteCOGSingleband1: URI = remoteCOGSingleBand(1)
147+
lazy val remoteCOGSingleband2: URI = remoteCOGSingleBand(2)
147148

148-
lazy val remoteCOGMultiband: URI = URI.create("https://s3-us-west-2.amazonaws.com/radiant-nasa-iserv/2014/02/14/IP0201402141023382027S03100E/IP0201402141023382027S03100E-COG.tif")
149+
// a public 4 band COG TIF
150+
lazy val remoteCOGMultiband: URI = URI.create("https://s22s-rasterframes-integration-tests.s3.amazonaws.com/m_4411708_ne_11_1_20141005.cog.tif")
149151

150152
lazy val remoteMODIS: URI = URI.create("https://modis-pds.s3.amazonaws.com/MCD43A4.006/31/11/2017158/MCD43A4.A2017158.h31v11.006.2017171203421_B01.TIF")
151-
lazy val remoteL8: URI = URI.create("https://s3-us-west-2.amazonaws.com/landsat-pds/c1/L8/017/033/LC08_L1TP_017033_20181010_20181030_01_T1/LC08_L1TP_017033_20181010_20181030_01_T1_B4.TIF")
153+
lazy val remoteL8: URI = URI.create("https://landsat-pds.s3.amazonaws.com/c1/L8/017/033/LC08_L1TP_017033_20181010_20181030_01_T1/LC08_L1TP_017033_20181010_20181030_01_T1_B4.TIF")
152154
lazy val remoteHttpMrfPath: URI = URI.create("https://s3.amazonaws.com/s22s-rasterframes-integration-tests/m_3607526_sw_18_1_20160708.mrf")
153155
lazy val remoteS3MrfPath: URI = URI.create("s3://naip-analytic/va/2016/100cm/rgbir/37077/m_3707764_sw_18_1_20160708.mrf")
154156

core/src/test/scala/org/locationtech/rasterframes/ref/RasterSourceSpec.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class RasterSourceSpec extends TestEnvironment with TestData {
102102
}
103103
it("should read sub-tile") {
104104
withClue("remoteCOGSingleband") {
105-
val src = RFRasterSource(remoteCOGSingleband1)
105+
val src = RFRasterSource(remoteMODIS)
106106
val raster = src.read(sub(src.extent))
107107
assert(raster.size > 0 && raster.size < src.size)
108108
}

docs/src/main/paradox/release-notes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
### 0.9.1
66

7+
* Upgraded to Spark 2.4.7
78
* Added `method_name` parameter to the `rf_resample` method.
89
* __BREAKING__: In SQL, the function `rf_resample` now takes 3 arguments. You can use `rf_resample_nearest` with two arguments or refactor to `rf_resample(t, v, "nearest")`.
910
* Added resample method parameter to SQL and Python APIs. @ref:[See updated docs](raster-join.md).

project/RFDependenciesPlugin.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ object RFDependenciesPlugin extends AutoPlugin {
7373
},
7474
// dependencyOverrides += "com.azavea.gdal" % "gdal-warp-bindings" % "33.f746890",
7575
// NB: Make sure to update the Spark version in pyrasterframes/python/setup.py
76-
rfSparkVersion := "2.4.5",
76+
rfSparkVersion := "2.4.7",
7777
rfGeoTrellisVersion := "3.3.0",
7878
rfGeoMesaVersion := "2.2.1"
7979
)

pyrasterframes/src/main/python/docs/time-series.pymd

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ def simplify(g, tol):
4141
park_vector = park_vector.withColumn('geo_simp', simplify('geometry', lit(0.001))) \
4242
.select('geo_simp') \
4343
.hint('broadcast')
44-
45-
4644
```
4745

4846
## Catalog Read
@@ -56,7 +54,7 @@ park_cat = cat \
5654
(cat.acquisition_date > lit('2018-02-19')) &
5755
(cat.acquisition_date < lit('2018-07-01'))
5856
) \
59-
.crossJoin(park_vector.filter('OBJECTID == 380')) #only coyahuga
57+
.crossJoin(park_vector.filter('UNIT_CODE == "CUVA"')) #only coyahuga
6058

6159
```
6260

pyrasterframes/src/main/python/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
ipython==6.2.1
2-
pyspark==2.4.5
2+
pyspark==2.4.7
33
gdal==2.4.4
44
numpy>=1.17.3,<2.0
55
pandas>=0.25.3,<1.0

pyrasterframes/src/main/python/setup.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,11 +144,13 @@ def dest_file(self, src_file):
144144
ipython = 'ipython==6.2.1'
145145
jupyter_client = 'jupyter-client<6.0' # v6 breaks pweave
146146
matplotlib = 'matplotlib'
147+
nbclient = 'nbclient==0.1.0' # compatible with our pweave => jupyter_client restrictions
148+
nbconvert = 'nbconvert==5.5.0'
147149
numpy = 'numpy>=1.17.3,<2.0'
148150
pandas = 'pandas>=0.25.3,<1.0'
149151
pweave = 'pweave==0.30.3'
150152
pypandoc = 'pypandoc'
151-
pyspark = 'pyspark==2.4.5'
153+
pyspark = 'pyspark==2.4.7'
152154
pytest = 'pytest>=4.0.0,<5.0.0'
153155
pytest_runner = 'pytest-runner'
154156
pytz = 'pytz'
@@ -196,9 +198,10 @@ def dest_file(self, src_file):
196198
pytest_runner,
197199
setuptools,
198200
ipython,
199-
ipykernel,
200201
pweave,
201202
jupyter_client,
203+
nbclient,
204+
nbconvert,
202205
fiona,
203206
rasterio,
204207
folium,

0 commit comments

Comments
 (0)