NEWS.md

Rnightlights: Nightlights for R

ChangeLog

v0.2.5.0

Bug Fixes

This version does not fix any bugs.

New features

This version introduces a few new features:

v0.2.4

Bug Fixes

This version does not fix any bugs. A workaround for a missing layer in at least one shapefile (IDN) is introduced by adding a parameter gadmPolyType. More on that in the New features section below.

New features

This version introduces a few new features:

Only shpZip and spRds are currently implemented. Previously only shapefile zips were possible and this change was necessitated by issue #22 where a missing polygon layer was detected in the shpZip for Indonesia (IDN). The spRds offering was not affected by this problem. So in a sense this is a workaround.

v0.2.3

This version fixes some bugs and sees the advent of a few new features:

*Bugs *
New features

v0.2.2

This version adds the possibility to use custom polygon shapefiles other than the GADM shapefiles. The use of custom shapefiles is incomplete and still extremely buggy though and will probably be overhauled in future versions which should decouple the requirement for country code, etc when extracting data. This should allow for passing in extents, or coordinates and a radius instead of a polygon. This version also fixes some bugs with admLevels which rendered getCtryNlData unusable.

v0.2.1

This is a bugfix version. Some bugs with the getCtryNlData function and specifically with the admLevel parameter. The bugfixes fix the case where the country polygons have not been downloaded yet so that it will force a download from GADM. The polygons are required to search for admLevels but this happens before getCtryNlData downloads polygons. A few updates to the documentation as well to clarify that we no longer calculate only at the lowest level but at the specified admLevel.

v0.2.0

IMPORTANT: Raster and data files as well as data column names from previous Rnightlights versions will be renamed as part of the upgrade to version 0.2.0

  1. There are two major changes in v0.2.0 which warranted the increment of the major package version:

  2. The change of the nlTypes naming convention to allow different time resolutions in the rasters. This mainly affects VIIRS which has daily, monthly and yearly data. The names reflect the time resolution e.g. VIIRS.D = daily, VIIRS.M = monthly and VIIRS.Y = yearly. OLS only has OLS.Y = yearly data but can easily be expanded to add other resolutions should they become available. This also has affected the naming conventions of raster and data files. NOTE 1: By the time of release (2018-04-23) only yearly rasters for 2015 are available NOTE 2: DAILY Raster availability seems to be limited to the present and immediate past month only

  3. The addition of admLevels as a parameter to the getCtryNlData() and processNlData functions allowing one to specify the admin level(s) at which to perform calculations. Previously all calculations were performed at the lowest country level and then would have to be aggregated to the required admin level. This has also affected the naming of data files and columns.

    As such an upgradeRnightlights function has been added to convert existing data and files. It is run automatically on installation. In case of any errors in converting files the data and rasters will not be available in the new version. Manual intervention may be required where files may have been manually altered. The package will continue to work otherwise. In case of any problems please raise an issue on the package github page or send an email to chris.njuguna@gmail.com.

  4. Added package function testing. Currently test coverage is about 15%. This will be updated to get as close to 100% coverage as possible.

v0.1.5

v0.1.4

v0.1.3:

v0.1.2:

v0.1.1:

Initial release



chrisvwn/Rnightlights documentation built on Sept. 7, 2021, 1:44 a.m.