datasets-minard-napoleons-march

Data for Charles Joseph Minard's cartographic depiction of Napoleon's Russian campaign of 1812.

https://github.com/stdlib-js/datasets-minard-napoleons-march

Science Score: 57.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 3 DOI reference(s) in README
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (15.5%) to scientific vocabulary

Keywords

1812 cartographic cartography data dataset datasets france french history javascript march minard napoleon node node-js nodejs russia russian stdlib war
Last synced: 6 months ago · JSON representation ·

Repository

Data for Charles Joseph Minard's cartographic depiction of Napoleon's Russian campaign of 1812.

Basic Info
Statistics
  • Stars: 6
  • Watchers: 3
  • Forks: 1
  • Open Issues: 0
  • Releases: 0
Topics
1812 cartographic cartography data dataset datasets france french history javascript march minard napoleon node node-js nodejs russia russian stdlib war
Created over 4 years ago · Last pushed 8 months ago
Metadata Files
Readme Changelog Contributing License Code of conduct Citation Security

README.md

About stdlib...

We believe in a future in which the web is a preferred environment for numerical computation. To help realize this future, we've built stdlib. stdlib is a standard library, with an emphasis on numerical and scientific computation, written in JavaScript (and C) for execution in browsers and in Node.js.

The library is fully decomposable, being architected in such a way that you can swap out and mix and match APIs and functionality to cater to your exact preferences and use cases.

When you use stdlib, you can be absolutely certain that you are using the most thorough, rigorous, well-written, studied, documented, tested, measured, and high-quality code out there.

To join us in bringing numerical computing to the web, get started by checking us out on GitHub, and please consider financially supporting stdlib. We greatly appreciate your continued support!

Napoleon's March

NPM version Build Status Coverage Status <!-- dependencies -->

Data for Charles Joseph Minard's famous cartographic depiction of Napoleon's Russian campaign of 1812.

Napoleon's March
## Installation ```bash npm install @stdlib/datasets-minard-napoleons-march ``` Alternatively, - To load the package in a website via a `script` tag without installation and bundlers, use the [ES Module][es-module] available on the [`esm`][esm-url] branch (see [README][esm-readme]). - If you are using Deno, visit the [`deno`][deno-url] branch (see [README][deno-readme] for usage intructions). - For use in Observable, or in browser/node environments, use the [Universal Module Definition (UMD)][umd] build available on the [`umd`][umd-url] branch (see [README][umd-readme]). - To use as a general utility for the command line, install the corresponding [CLI package][cli-section] globally. The [branches.md][branches-url] file summarizes the available branches and displays a diagram illustrating their relationships. To view installation and usage instructions specific to each branch build, be sure to explicitly navigate to the respective README files on each branch, as linked to above.
## Usage ```javascript var minard = require( '@stdlib/datasets-minard-napoleons-march' ); ``` #### minard( \[options] ) Data for [Charles Joseph Minard][minard]'s famous cartographic depiction of Napoleon's Russian [campaign of 1812][campaign-of-1812]. ```javascript var data = minard(); /* returns { 'army': [ {'lon': 24,'lat': 54.9,'size': 340000,'direction': 'A','division': 1}, {'lon': 24.5,'lat': 55,'size': 340000,'direction': 'A','division': 1}, {'lon': 25.5,'lat': 54.5,'size': 340000,'direction': 'A','division': 1}, {'lon': 26,'lat': 54.7,'size': 320000,'direction': 'A','division': 1}, {'lon': 27,'lat': 54.8,'size': 300000,'direction': 'A','division': 1}, {'lon': 28,'lat': 54.9,'size': 280000,'direction': 'A','division': 1}, {'lon': 28.5,'lat': 55,'size': 240000,'direction': 'A','division': 1}, {'lon': 29,'lat': 55.1,'size': 210000,'direction': 'A','division': 1}, {'lon': 30,'lat': 55.2,'size': 180000,'direction': 'A','division': 1}, {'lon': 30.3,'lat': 55.3,'size': 175000,'direction': 'A','division': 1}, {'lon': 32,'lat': 54.8,'size': 145000,'direction': 'A','division': 1}, {'lon': 33.2,'lat': 54.9,'size': 140000,'direction': 'A','division': 1}, {'lon': 34.4,'lat': 55.5,'size': 127100,'direction': 'A','division': 1}, {'lon': 35.5,'lat': 55.4,'size': 100000,'direction': 'A','division': 1}, {'lon': 36,'lat': 55.5,'size': 100000,'direction': 'A','division': 1}, {'lon': 37.6,'lat': 55.8,'size': 100000,'direction': 'R','division': 1}, {'lon': 37.5,'lat': 55.7,'size': 98000,'direction': 'R','division': 1}, {'lon': 37,'lat': 55,'size': 97000,'direction': 'R','division': 1}, {'lon': 36.8,'lat': 55,'size': 96000,'direction': 'R','division': 1}, {'lon': 35.4,'lat': 55.3,'size': 87000,'direction': 'R','division': 1}, {'lon': 34.3,'lat': 55.2,'size': 55000,'direction': 'R','division': 1}, {'lon': 33.3,'lat': 54.8,'size': 37000,'direction': 'R','division': 1}, {'lon': 32,'lat': 54.6,'size': 24000,'direction': 'R','division': 1}, {'lon': 30.4,'lat': 54.4,'size': 20000,'direction': 'R','division': 1}, {'lon': 29.2,'lat': 54.4,'size': 20000,'direction': 'R','division': 1}, {'lon': 28.5,'lat': 54.3,'size': 20000,'direction': 'R','division': 1}, {'lon': 28.3,'lat': 54.4,'size': 20000,'direction': 'R','division': 1}, {'lon': 24,'lat': 55.1,'size': 60000,'direction': 'A','division': 2}, {'lon': 24.5,'lat': 55.2,'size': 60000,'direction': 'A','division': 2}, {'lon': 25.5,'lat': 54.7,'size': 60000,'direction': 'A','division': 2}, {'lon': 26.6,'lat': 55.7,'size': 40000,'direction': 'A','division': 2}, {'lon': 27.4,'lat': 55.6,'size': 33000,'direction': 'A','division': 2}, {'lon': 28.7,'lat': 55.5,'size': 33000,'direction': 'R','division': 2}, {'lon': 29.2,'lat': 54.3,'size': 30000,'direction': 'R','division': 2}, {'lon': 28.5,'lat': 54.2,'size': 30000,'direction': 'R','division': 2}, {'lon': 28.3,'lat': 54.3,'size': 28000,'direction': 'R','division': 2}, {'lon': 27.5,'lat': 54.5,'size': 20000,'direction': 'R','division': 2}, {'lon': 26.8,'lat': 54.3,'size': 12000,'direction': 'R','division': 2}, {'lon': 26.4,'lat': 54.4,'size': 14000,'direction': 'R','division': 2}, {'lon': 24.6,'lat': 54.5,'size': 8000,'direction': 'R','division': 2}, {'lon': 24.4,'lat': 54.4,'size': 4000,'direction': 'R','division': 2}, {'lon': 24.2,'lat': 54.4,'size': 4000,'direction': 'R','division': 2}, {'lon': 24.1,'lat': 54.3,'size': 4000,'direction': 'R','division': 2}, {'lon': 24,'lat': 55.2,'size': 22000,'direction': 'A','division': 3}, {'lon': 24.5,'lat': 55.3,'size': 22000,'direction': 'A','division': 3}, {'lon': 24.6,'lat': 55.8,'size': 6000,'direction': 'R','division': 3}, {'lon': 24.2,'lat': 54.4,'size': 6000,'direction': 'R','division': 3}, {'lon': 24.1,'lat': 54.3,'size': 6000,'direction': 'R','division': 3} ], 'cities': [ {'lon': 24,'lat': 55,'city': 'Kowno'}, {'lon': 25.3,'lat': 54.7,'city': 'Wilna'}, {'lon': 26.4,'lat': 54.4,'city': 'Smorgoni'}, {'lon': 26.8,'lat': 54.3,'city': 'Molodexno'}, {'lon': 27.7,'lat': 55.2,'city': 'Gloubokoe'}, {'lon': 27.6,'lat': 53.9,'city': 'Minsk'}, {'lon': 28.5,'lat': 54.3,'city': 'Studienska'}, {'lon': 28.7,'lat': 55.5,'city': 'Polotzk'}, {'lon': 29.2,'lat': 54.4,'city': 'Bobr'}, {'lon': 30.2,'lat': 55.3,'city': 'Witebsk'}, {'lon': 30.4,'lat': 54.5,'city': 'Orscha'}, {'lon': 30.4,'lat': 53.9,'city': 'Mohilow'}, {'lon': 32,'lat': 54.8,'city': 'Smolensk'}, {'lon': 33.2,'lat': 54.9,'city': 'Dorogobouge'}, {'lon': 34.3,'lat': 55.2,'city': 'Wixma'}, {'lon': 34.4,'lat': 55.5,'city': 'Chjat'}, {'lon': 36,'lat': 55.5,'city': 'Mojaisk'}, {'lon': 37.6,'lat': 55.8,'city': 'Moscou'}, {'lon': 36.6,'lat': 55.3,'city': 'Tarantino'}, {'lon': 36.5,'lat': 55,'city': 'Malo-Jarosewli'} ], 'labels': [ {'lon': 24,'lat': 54.9,'size': 422000,'division': 1}, {'lon': 30.3,'lat': 55.3,'size': 175000,'division': 1}, {'lon': 32,'lat': 54.8,'size': 145000,'division': 1}, {'lon': 34.4,'lat': 55.5,'size': 127100,'division': 1}, {'lon': 35.5,'lat': 55.4,'size': 100000,'division': 1}, {'lon': 37.7,'lat': 55.7,'size': 100000,'division': 1}, {'lon': 36.8,'lat': 55,'size': 96000,'division': 1}, {'lon': 35.4,'lat': 55.3,'size': 87000,'division': 1}, {'lon': 34.3,'lat': 55.2,'size': 55000,'division': 1}, {'lon': 33.3,'lat': 54.8,'size': 37000,'division': 1}, {'lon': 32,'lat': 54.6,'size': 24000,'division': 1}, {'lon': 30.4,'lat': 54.4,'size': 20000,'division': 1}, {'lon': 29.2,'lat': 54.3,'size': 50000,'division': 1}, {'lon': 28.5,'lat': 54.2,'size': 28000,'division': 1}, {'lon': 26.8,'lat': 54.3,'size': 12000,'division': 1}, {'lon': 25,'lat': 54.4,'size': 8000,'division': 1}, {'lon': 24.4,'lat': 54.4,'size': 4000,'division': 1}, {'lon': 24.1,'lat': 54.4,'size': 10000,'division': 1}, {'lon': 26.6,'lat': 55.7,'size': 60000,'division': 2}, {'lon': 28.7,'lat': 55.5,'size': 33000,'division': 2}, {'lon': 24.5,'lat': 55.3,'size': 22000,'division': 3}, {'lon': 24.6,'lat': 55.8,'size': 6000,'division': 3} ], 'rivers': { 'type': 'FeatureCollection', 'features': [ { 'type': 'Feature', 'properties': {'id': 1684,'wso_id': 748037,'objectid': 2898,'featurecla': 'River','scalerank': 12,'rivernum': 403898,'dissolve': '403898River','name': 'Sozh'}, 'geometry': {'type': 'LineString','coordinates': [...]} }, { 'type': 'Feature', 'properties': {'id': 57,'wso_id': 1456942,'objectid': 1108,'featurecla': 'Lake Centerline','scalerank': 11,'rivernum': 402108,'dissolve': '402108Lake Centerline','name': 'Vazuza'}, 'geometry': {'type': 'MultiLineString','coordinates': [...]} }, { 'type': 'Feature', 'properties': {'id': 1509,'wso_id': 748037,'objectid': 6634,'featurecla': 'Lake Centerline','scalerank': 10,'rivernum': 407634,'dissolve': '407634Lake Centerline','name': 'Desna'}, 'geometry': {'type': 'MultiLineString','coordinates': [...]} }, { 'type': 'Feature', 'properties': {'id': 1871,'wso_id': 748037,'objectid': 3314,'featurecla': 'Lake Centerline','scalerank': 12,'rivernum': 404314,'dissolve': '404314Lake Centerline','name': 'Druts'}, 'geometry': {'type': 'LineString','coordinates': [...]} }, { 'type': 'Feature', 'properties': {'id': 1684,'wso_id': 748037,'objectid': 2898,'featurecla': 'River','scalerank': 10,'rivernum': 403898,'dissolve': '403898River','name': 'Sozh'}, 'geometry': {'type': 'LineString','coordinates': [...]} }, { 'type': 'Feature', 'properties': {'id': 1684,'wso_id': 748037,'objectid': 2898,'featurecla': 'River','scalerank': 10,'rivernum': 403898,'dissolve': '403898River','name': 'Sozh'}, 'geometry': {'type': 'LineString','coordinates': [...]} }, { 'type': 'Feature', 'properties': {'id': 1924,'wso_id': 748037,'objectid': 3569,'featurecla': 'River','scalerank': 11,'rivernum': 404569,'dissolve': '404569River','name': 'Pronya'}, 'geometry': {'type': 'LineString','coordinates': [...]} }, { 'type': 'Feature', 'properties': {'id': 1509,'wso_id': 748037,'objectid': 6634,'featurecla': 'River','scalerank': 10,'rivernum': 407634,'dissolve': '407634River','name': 'Desna'}, 'geometry': {'type': 'MultiLineString','coordinates': [...]} }, { 'type': 'Feature', 'properties': {'id': 57,'wso_id': 1456942,'objectid': 1108,'featurecla': 'River','scalerank': 11,'rivernum': 402108,'dissolve': '402108River','name': 'Vazuza'}, 'geometry': {'type': 'MultiLineString','coordinates': [...]} }, { 'type': 'Feature', 'properties': {'id': 1871,'wso_id': 748037,'objectid': 3314,'featurecla': 'River','scalerank': 12,'rivernum': 404314,'dissolve': '404314River','name': 'Druts'}, 'geometry': {'type': 'MultiLineString','coordinates': [...]} }, { 'type': 'Feature', 'properties': {'id': 1201,'wso_id': 748037,'objectid': 8004,'featurecla': 'River','scalerank': 10,'rivernum': 409004,'dissolve': '409004River','name': 'Dnepr'}, 'geometry': {'type': 'LineString','coordinates': [...]} }, { 'type': 'Feature', 'properties': {'id': 1,'wso_id': 1456942,'objectid': 1,'featurecla': 'River','scalerank': 10,'rivernum': 401001,'dissolve': '401001River','name': 'Oka, Volga'}, 'geometry': {'type': 'LineString','coordinates': [...]} }, { 'type': 'Feature', 'properties': {'id': 1,'wso_id': 1456942,'objectid': 1,'featurecla': 'River','scalerank': 10,'rivernum': 401001,'dissolve': '401001River','name': 'Oka, Volga'}, 'geometry': {'type': 'LineString','coordinates': [...]} }, { 'type': 'Feature', 'properties': {'id': 76,'wso_id': 1456942,'objectid': 1526,'featurecla': 'River','scalerank': 12,'rivernum': 402526,'dissolve': '402526River','name': null}, 'geometry': {'type': 'LineString','coordinates': [...]} }, { 'type': 'Feature', 'properties': {'id': 3020,'wso_id': 831224,'objectid': 2853,'featurecla': 'River','scalerank': 10,'rivernum': 403853,'dissolve': '403853River','name': 'Kasplya'}, 'geometry': {'type': 'LineString','coordinates': [...]} }, { 'type': 'Feature', 'properties': {'id': 3702,'wso_id': 831224,'objectid': 2291,'featurecla': 'River','scalerank': 10,'rivernum': 403291,'dissolve': '403291River','name': 'Ula'}, 'geometry': {'type': 'LineString','coordinates': [...]} }, { 'type': 'Feature', 'properties': {'id': 22,'wso_id': 1456942,'objectid': 528,'featurecla': 'River','scalerank': 11,'rivernum': 401528,'dissolve': '401528River','name': 'Volga'}, 'geometry': {'type': 'LineString','coordinates': [...]} }, { 'type': 'Feature', 'properties': {'id': 2888,'wso_id': 4,'objectid': 2383,'featurecla': 'River','scalerank': 11,'rivernum': 403383,'dissolve': '403383River','name': 'Usha, Nyoman'}, 'geometry': {'type': 'LineString','coordinates': [...]} }, { 'type': 'Feature', 'properties': {'id': 2888,'wso_id': 4,'objectid': 2383,'featurecla': 'River','scalerank': 10,'rivernum': 403383,'dissolve': '403383River','name': 'Usha, Nyoman'}, 'geometry': {'type': 'MultiLineString','coordinates': [...]} }, { 'type': 'Feature', 'properties': {'id': 2888,'wso_id': 4,'objectid': 2383,'featurecla': 'River','scalerank': 10,'rivernum': 403383,'dissolve': '403383River','name': 'Usha, Nyoman'}, 'geometry': {'type': 'LineString','coordinates': [...]} }, { 'type': 'Feature', 'properties': {'id': 2888,'wso_id': 4,'objectid': 2383,'featurecla': 'Lake Centerline','scalerank': 10,'rivernum': 403383,'dissolve': '403383Lake Centerline','name': 'Usha, Nyoman'}, 'geometry': {'type': 'LineString','coordinates': [...]} }, { 'type': 'Feature', 'properties': {'id': 1587,'wso_id': 748037,'objectid': 8334,'featurecla': 'River','scalerank': 10,'rivernum': 409334,'dissolve': '409334River','name': 'Byarezina'}, 'geometry': {'type': 'LineString','coordinates': [...]} } ] }, 'temperature': [ {'lon': 37.6,'temp': 0,'date': '18 Oct 1812'}, {'lon': 36,'temp': 0,'date': '24 Oct 1812'}, {'lon': 33.2,'temp': -9,'date': '09 Nov 1812'}, {'lon': 32,'temp': -21,'date': '14 Nov 1812'}, {'lon': 29.2,'temp': -11,'date': '24 Nov 1812'}, {'lon': 28.5,'temp': -20,'date': '28 Nov 1812'}, {'lon': 27.2,'temp': -24,'date': '01 Dec 1812'}, {'lon': 26.7,'temp': -30,'date': '06 Dec 1812'}, {'lon': 25.3,'temp': -26,'date': '07 Dec 1812'} ] } */ ``` The function accepts the following `options`: - **data**: dataset name. The following names are recognized: - **army**: army size. - **cities**: cities. - **labels**: map labels. - **temperature**: temperature during the army's return from Russia. - **rivers**: river data. To return only army size data, set the `data` option to `army`. ```javascript var opts = { 'data': 'army' }; var data = minard( opts ); /* returns [ {'lon': 24,'lat': 54.9,'size': 340000,'direction': 'A','division': 1}, {'lon': 24.5,'lat': 55,'size': 340000,'direction': 'A','division': 1}, {'lon': 25.5,'lat': 54.5,'size': 340000,'direction': 'A','division': 1}, {'lon': 26,'lat': 54.7,'size': 320000,'direction': 'A','division': 1}, {'lon': 27,'lat': 54.8,'size': 300000,'direction': 'A','division': 1}, {'lon': 28,'lat': 54.9,'size': 280000,'direction': 'A','division': 1}, {'lon': 28.5,'lat': 55,'size': 240000,'direction': 'A','division': 1}, {'lon': 29,'lat': 55.1,'size': 210000,'direction': 'A','division': 1}, {'lon': 30,'lat': 55.2,'size': 180000,'direction': 'A','division': 1}, {'lon': 30.3,'lat': 55.3,'size': 175000,'direction': 'A','division': 1}, {'lon': 32,'lat': 54.8,'size': 145000,'direction': 'A','division': 1}, {'lon': 33.2,'lat': 54.9,'size': 140000,'direction': 'A','division': 1}, {'lon': 34.4,'lat': 55.5,'size': 127100,'direction': 'A','division': 1}, {'lon': 35.5,'lat': 55.4,'size': 100000,'direction': 'A','division': 1}, {'lon': 36,'lat': 55.5,'size': 100000,'direction': 'A','division': 1}, {'lon': 37.6,'lat': 55.8,'size': 100000,'direction': 'R','division': 1}, {'lon': 37.5,'lat': 55.7,'size': 98000,'direction': 'R','division': 1}, {'lon': 37,'lat': 55,'size': 97000,'direction': 'R','division': 1}, {'lon': 36.8,'lat': 55,'size': 96000,'direction': 'R','division': 1}, {'lon': 35.4,'lat': 55.3,'size': 87000,'direction': 'R','division': 1}, {'lon': 34.3,'lat': 55.2,'size': 55000,'direction': 'R','division': 1}, {'lon': 33.3,'lat': 54.8,'size': 37000,'direction': 'R','division': 1}, {'lon': 32,'lat': 54.6,'size': 24000,'direction': 'R','division': 1}, {'lon': 30.4,'lat': 54.4,'size': 20000,'direction': 'R','division': 1}, {'lon': 29.2,'lat': 54.4,'size': 20000,'direction': 'R','division': 1}, {'lon': 28.5,'lat': 54.3,'size': 20000,'direction': 'R','division': 1}, {'lon': 28.3,'lat': 54.4,'size': 20000,'direction': 'R','division': 1}, {'lon': 24,'lat': 55.1,'size': 60000,'direction': 'A','division': 2}, {'lon': 24.5,'lat': 55.2,'size': 60000,'direction': 'A','division': 2}, {'lon': 25.5,'lat': 54.7,'size': 60000,'direction': 'A','division': 2}, {'lon': 26.6,'lat': 55.7,'size': 40000,'direction': 'A','division': 2}, {'lon': 27.4,'lat': 55.6,'size': 33000,'direction': 'A','division': 2}, {'lon': 28.7,'lat': 55.5,'size': 33000,'direction': 'R','division': 2}, {'lon': 29.2,'lat': 54.3,'size': 30000,'direction': 'R','division': 2}, {'lon': 28.5,'lat': 54.2,'size': 30000,'direction': 'R','division': 2}, {'lon': 28.3,'lat': 54.3,'size': 28000,'direction': 'R','division': 2}, {'lon': 27.5,'lat': 54.5,'size': 20000,'direction': 'R','division': 2}, {'lon': 26.8,'lat': 54.3,'size': 12000,'direction': 'R','division': 2}, {'lon': 26.4,'lat': 54.4,'size': 14000,'direction': 'R','division': 2}, {'lon': 24.6,'lat': 54.5,'size': 8000,'direction': 'R','division': 2}, {'lon': 24.4,'lat': 54.4,'size': 4000,'direction': 'R','division': 2}, {'lon': 24.2,'lat': 54.4,'size': 4000,'direction': 'R','division': 2}, {'lon': 24.1,'lat': 54.3,'size': 4000,'direction': 'R','division': 2}, {'lon': 24,'lat': 55.2,'size': 22000,'direction': 'A','division': 3}, {'lon': 24.5,'lat': 55.3,'size': 22000,'direction': 'A','division': 3}, {'lon': 24.6,'lat': 55.8,'size': 6000,'direction': 'R','division': 3}, {'lon': 24.2,'lat': 54.4,'size': 6000,'direction': 'R','division': 3}, {'lon': 24.1,'lat': 54.3,'size': 6000,'direction': 'R','division': 3} ] */ ``` To return only city locations, set the `data` option to `cities`. ```javascript var opts = { 'data': 'cities' }; var data = minard( opts ); /* returns [ {'lon': 24,'lat': 55,'city': 'Kowno'}, {'lon': 25.3,'lat': 54.7,'city': 'Wilna'}, {'lon': 26.4,'lat': 54.4,'city': 'Smorgoni'}, {'lon': 26.8,'lat': 54.3,'city': 'Molodexno'}, {'lon': 27.7,'lat': 55.2,'city': 'Gloubokoe'}, {'lon': 27.6,'lat': 53.9,'city': 'Minsk'}, {'lon': 28.5,'lat': 54.3,'city': 'Studienska'}, {'lon': 28.7,'lat': 55.5,'city': 'Polotzk'}, {'lon': 29.2,'lat': 54.4,'city': 'Bobr'}, {'lon': 30.2,'lat': 55.3,'city': 'Witebsk'}, {'lon': 30.4,'lat': 54.5,'city': 'Orscha'}, {'lon': 30.4,'lat': 53.9,'city': 'Mohilow'}, {'lon': 32,'lat': 54.8,'city': 'Smolensk'}, {'lon': 33.2,'lat': 54.9,'city': 'Dorogobouge'}, {'lon': 34.3,'lat': 55.2,'city': 'Wixma'}, {'lon': 34.4,'lat': 55.5,'city': 'Chjat'}, {'lon': 36,'lat': 55.5,'city': 'Mojaisk'}, {'lon': 37.6,'lat': 55.8,'city': 'Moscou'}, {'lon': 36.6,'lat': 55.3,'city': 'Tarantino'}, {'lon': 36.5,'lat': 55,'city': 'Malo-Jarosewli'} ] */ ``` To return only temperature data, set the `data` option to `temperature`. ```javascript var opts = { 'data': 'temperature' }; var data = minard( opts ); /* returns [ {'lon': 37.6,'temp': 0,'date': '18 Oct 1812'}, {'lon': 36,'temp': 0,'date': '24 Oct 1812'}, {'lon': 33.2,'temp': -9,'date': '09 Nov 1812'}, {'lon': 32,'temp': -21,'date': '14 Nov 1812'}, {'lon': 29.2,'temp': -11,'date': '24 Nov 1812'}, {'lon': 28.5,'temp': -20,'date': '28 Nov 1812'}, {'lon': 27.2,'temp': -24,'date': '01 Dec 1812'}, {'lon': 26.7,'temp': -30,'date': '06 Dec 1812'}, {'lon': 25.3,'temp': -26,'date': '07 Dec 1812'} ] */ ``` To return only the army size label locations, set the `data` option to `labels`. ```javascript var opts = { 'data': 'labels' }; var data = minard( opts ); /* returns [ {'lon': 24,'lat': 54.9,'size': 422000,'division': 1}, {'lon': 30.3,'lat': 55.3,'size': 175000,'division': 1}, {'lon': 32,'lat': 54.8,'size': 145000,'division': 1}, {'lon': 34.4,'lat': 55.5,'size': 127100,'division': 1}, {'lon': 35.5,'lat': 55.4,'size': 100000,'division': 1}, {'lon': 37.7,'lat': 55.7,'size': 100000,'division': 1}, {'lon': 36.8,'lat': 55,'size': 96000,'division': 1}, {'lon': 35.4,'lat': 55.3,'size': 87000,'division': 1}, {'lon': 34.3,'lat': 55.2,'size': 55000,'division': 1}, {'lon': 33.3,'lat': 54.8,'size': 37000,'division': 1}, {'lon': 32,'lat': 54.6,'size': 24000,'division': 1}, {'lon': 30.4,'lat': 54.4,'size': 20000,'division': 1}, {'lon': 29.2,'lat': 54.3,'size': 50000,'division': 1}, {'lon': 28.5,'lat': 54.2,'size': 28000,'division': 1}, {'lon': 26.8,'lat': 54.3,'size': 12000,'division': 1}, {'lon': 25,'lat': 54.4,'size': 8000,'division': 1}, {'lon': 24.4,'lat': 54.4,'size': 4000,'division': 1}, {'lon': 24.1,'lat': 54.4,'size': 10000,'division': 1}, {'lon': 26.6,'lat': 55.7,'size': 60000,'division': 2}, {'lon': 28.7,'lat': 55.5,'size': 33000,'division': 2}, {'lon': 24.5,'lat': 55.3,'size': 22000,'division': 3}, {'lon': 24.6,'lat': 55.8,'size': 6000,'division': 3} ] */ ``` To return only the river data, set the `data` option to `rivers`. ```javascript var opts = { 'data': 'rivers' }; var data = minard( opts ); /* returns { 'type': 'FeatureCollection', 'features': [ { 'type': 'Feature', 'properties': {'id': 1684,'wso_id': 748037,'objectid': 2898,'featurecla': 'River','scalerank': 12,'rivernum': 403898,'dissolve': '403898River','name': 'Sozh'}, 'geometry': {'type': 'LineString','coordinates': [...]} }, { 'type': 'Feature', 'properties': {'id': 57,'wso_id': 1456942,'objectid': 1108,'featurecla': 'Lake Centerline','scalerank': 11,'rivernum': 402108,'dissolve': '402108Lake Centerline','name': 'Vazuza'}, 'geometry': {'type': 'MultiLineString','coordinates': [...]} }, { 'type': 'Feature', 'properties': {'id': 1509,'wso_id': 748037,'objectid': 6634,'featurecla': 'Lake Centerline','scalerank': 10,'rivernum': 407634,'dissolve': '407634Lake Centerline','name': 'Desna'}, 'geometry': {'type': 'MultiLineString','coordinates': [...]} }, { 'type': 'Feature', 'properties': {'id': 1871,'wso_id': 748037,'objectid': 3314,'featurecla': 'Lake Centerline','scalerank': 12,'rivernum': 404314,'dissolve': '404314Lake Centerline','name': 'Druts'}, 'geometry': {'type': 'LineString','coordinates': [...]} }, { 'type': 'Feature', 'properties': {'id': 1684,'wso_id': 748037,'objectid': 2898,'featurecla': 'River','scalerank': 10,'rivernum': 403898,'dissolve': '403898River','name': 'Sozh'}, 'geometry': {'type': 'LineString','coordinates': [...]} }, { 'type': 'Feature', 'properties': {'id': 1684,'wso_id': 748037,'objectid': 2898,'featurecla': 'River','scalerank': 10,'rivernum': 403898,'dissolve': '403898River','name': 'Sozh'}, 'geometry': {'type': 'LineString','coordinates': [...]} }, { 'type': 'Feature', 'properties': {'id': 1924,'wso_id': 748037,'objectid': 3569,'featurecla': 'River','scalerank': 11,'rivernum': 404569,'dissolve': '404569River','name': 'Pronya'}, 'geometry': {'type': 'LineString','coordinates': [...]} }, { 'type': 'Feature', 'properties': {'id': 1509,'wso_id': 748037,'objectid': 6634,'featurecla': 'River','scalerank': 10,'rivernum': 407634,'dissolve': '407634River','name': 'Desna'}, 'geometry': {'type': 'MultiLineString','coordinates': [...]} }, { 'type': 'Feature', 'properties': {'id': 57,'wso_id': 1456942,'objectid': 1108,'featurecla': 'River','scalerank': 11,'rivernum': 402108,'dissolve': '402108River','name': 'Vazuza'}, 'geometry': {'type': 'MultiLineString','coordinates': [...]} }, { 'type': 'Feature', 'properties': {'id': 1871,'wso_id': 748037,'objectid': 3314,'featurecla': 'River','scalerank': 12,'rivernum': 404314,'dissolve': '404314River','name': 'Druts'}, 'geometry': {'type': 'MultiLineString','coordinates': [...]} }, { 'type': 'Feature', 'properties': {'id': 1201,'wso_id': 748037,'objectid': 8004,'featurecla': 'River','scalerank': 10,'rivernum': 409004,'dissolve': '409004River','name': 'Dnepr'}, 'geometry': {'type': 'LineString','coordinates': [...]} }, { 'type': 'Feature', 'properties': {'id': 1,'wso_id': 1456942,'objectid': 1,'featurecla': 'River','scalerank': 10,'rivernum': 401001,'dissolve': '401001River','name': 'Oka, Volga'}, 'geometry': {'type': 'LineString','coordinates': [...]} }, { 'type': 'Feature', 'properties': {'id': 1,'wso_id': 1456942,'objectid': 1,'featurecla': 'River','scalerank': 10,'rivernum': 401001,'dissolve': '401001River','name': 'Oka, Volga'}, 'geometry': {'type': 'LineString','coordinates': [...]} }, { 'type': 'Feature', 'properties': {'id': 76,'wso_id': 1456942,'objectid': 1526,'featurecla': 'River','scalerank': 12,'rivernum': 402526,'dissolve': '402526River','name': null}, 'geometry': {'type': 'LineString','coordinates': [...]} }, { 'type': 'Feature', 'properties': {'id': 3020,'wso_id': 831224,'objectid': 2853,'featurecla': 'River','scalerank': 10,'rivernum': 403853,'dissolve': '403853River','name': 'Kasplya'}, 'geometry': {'type': 'LineString','coordinates': [...]} }, { 'type': 'Feature', 'properties': {'id': 3702,'wso_id': 831224,'objectid': 2291,'featurecla': 'River','scalerank': 10,'rivernum': 403291,'dissolve': '403291River','name': 'Ula'}, 'geometry': {'type': 'LineString','coordinates': [...]} }, { 'type': 'Feature', 'properties': {'id': 22,'wso_id': 1456942,'objectid': 528,'featurecla': 'River','scalerank': 11,'rivernum': 401528,'dissolve': '401528River','name': 'Volga'}, 'geometry': {'type': 'LineString','coordinates': [...]} }, { 'type': 'Feature', 'properties': {'id': 2888,'wso_id': 4,'objectid': 2383,'featurecla': 'River','scalerank': 11,'rivernum': 403383,'dissolve': '403383River','name': 'Usha, Nyoman'}, 'geometry': {'type': 'LineString','coordinates': [...]} }, { 'type': 'Feature', 'properties': {'id': 2888,'wso_id': 4,'objectid': 2383,'featurecla': 'River','scalerank': 10,'rivernum': 403383,'dissolve': '403383River','name': 'Usha, Nyoman'}, 'geometry': {'type': 'MultiLineString','coordinates': [...]} }, { 'type': 'Feature', 'properties': {'id': 2888,'wso_id': 4,'objectid': 2383,'featurecla': 'River','scalerank': 10,'rivernum': 403383,'dissolve': '403383River','name': 'Usha, Nyoman'}, 'geometry': {'type': 'LineString','coordinates': [...]} }, { 'type': 'Feature', 'properties': {'id': 2888,'wso_id': 4,'objectid': 2383,'featurecla': 'Lake Centerline','scalerank': 10,'rivernum': 403383,'dissolve': '403383Lake Centerline','name': 'Usha, Nyoman'}, 'geometry': {'type': 'LineString','coordinates': [...]} }, { 'type': 'Feature', 'properties': {'id': 1587,'wso_id': 748037,'objectid': 8334,'featurecla': 'River','scalerank': 10,'rivernum': 409334,'dissolve': '409334River','name': 'Byarezina'}, 'geometry': {'type': 'LineString','coordinates': [...]} } ] } */ ```
## Notes - Temperatures are on the [Réaumur scale][reaumur-scale]. Multiply each temperature by `1.25` to convert to Celsius. - River data is formatted as [GeoJSON][geojson]. - River data is incomplete, with portions of rivers missing.
## Examples ```javascript var minard = require( '@stdlib/datasets-minard-napoleons-march' ); var opts = {}; opts.data = 'army'; console.dir( minard( opts ) ); opts.data = 'cities'; console.dir( minard( opts ) ); opts.data = 'labels'; console.dir( minard( opts ) ); opts.data = 'rivers'; console.dir( minard( opts ) ); opts.data = 'temperature'; console.dir( minard( opts ) ); ```

## CLI
## Installation To use as a general utility, install the CLI package globally ```bash npm install -g @stdlib/datasets-minard-napoleons-march-cli ```
### Usage ```text Usage: minard-napoleons-march [options] Options: -h, --help Print this message. -V, --version Print the package version. --data name Dataset name: army, cities, temperature. ```
### Notes - If the `--data` option is set to a supported dataset name, the output format is comma-separated values ([CSV][csv]). Otherwise, the output format is newline-delimited JSON ([NDJSON][ndjson]).
### Examples ```bash $ minard-napoleons-march --data army lon,lat,size,direction,division 24.0,54.9,340000,A,1 24.5,55.0,340000,A,1 25.5,54.5,340000,A,1 ... ```


## References - Minard, Charles Joseph. 1869. [_Tableaux graphiques et cartes figuratives_][@minard:1869a]. Ecole nationale des ponts et chaussées. - Wilkinson, Leland. 2005. _The Grammar of Graphics_. Springer-Verlag New York. doi:[10.1007/0-387-28695-0][@wilkinson:2005a].

License

The data files (databases) are licensed under an Open Data Commons Public Domain Dedication & License 1.0 and their contents are licensed under a Creative Commons Zero v1.0 Universal. The software is licensed under Apache License, Version 2.0.

* * * ## Notice This package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib]. #### Community [![Chat][chat-image]][chat-url] --- ## Copyright Copyright © 2016-2025. The Stdlib [Authors][stdlib-authors].

Owner

  • Name: stdlib
  • Login: stdlib-js
  • Kind: organization

Standard library for JavaScript.

Citation (CITATION.cff)

cff-version: 1.2.0
title: stdlib
message: >-
  If you use this software, please cite it using the
  metadata from this file.

type: software

authors:
  - name: The Stdlib Authors
    url: https://github.com/stdlib-js/stdlib/graphs/contributors

repository-code: https://github.com/stdlib-js/stdlib
url: https://stdlib.io

abstract: |
  Standard library for JavaScript and Node.js.

keywords:
  - JavaScript
  - Node.js
  - TypeScript
  - standard library
  - scientific computing
  - numerical computing
  - statistical computing

license: Apache-2.0 AND BSL-1.0

date-released: 2016

GitHub Events

Total
  • Push event: 30
Last Year
  • Push event: 30

Committers

Last synced: about 2 years ago

All Time
  • Total Commits: 52
  • Total Committers: 1
  • Avg Commits per committer: 52.0
  • Development Distribution Score (DDS): 0.0
Past Year
  • Commits: 14
  • Committers: 1
  • Avg Commits per committer: 14.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
stdlib-bot n****y@s****o 52
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 7 months ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels

Dependencies

package.json npm
  • @stdlib/assert-is-browser ^0.0.x development
  • @stdlib/assert-is-plain-object-array ^0.0.x development
  • @stdlib/assert-is-windows ^0.0.x development
  • @stdlib/bench ^0.0.x development
  • @stdlib/process-exec-path ^0.0.x development
  • @stdlib/regexp-eol ^0.0.x development
  • istanbul ^0.4.1 development
  • proxyquire ^2.0.0 development
  • tap-spec 5.x.x development
  • tape git+https://github.com/kgryte/tape.git#fix/globby development
  • @stdlib/assert-has-own-property ^0.0.x
  • @stdlib/assert-is-plain-object ^0.0.x
  • @stdlib/assert-is-string ^0.0.x
  • @stdlib/cli-ctor ^0.0.x
  • @stdlib/fs-read-file ^0.0.x
  • @stdlib/fs-read-json ^0.0.x
  • @stdlib/streams-node-stdout ^0.0.x
  • @stdlib/string-format ^0.0.x
  • @stdlib/utils-copy ^0.0.x
  • @stdlib/utils-index-of ^0.0.x
  • @stdlib/utils-keys ^0.0.x
.github/workflows/benchmark.yml actions
  • actions/checkout v3 composite
  • actions/setup-node v3 composite
.github/workflows/cancel.yml actions
  • styfle/cancel-workflow-action 0.11.0 composite
.github/workflows/close_pull_requests.yml actions
  • superbrothers/close-pull-request v3 composite
.github/workflows/examples.yml actions
  • actions/checkout v3 composite
  • actions/setup-node v3 composite
.github/workflows/npm_downloads.yml actions
  • actions/checkout v3 composite
  • actions/setup-node v3 composite
  • actions/upload-artifact v3 composite
  • distributhor/workflow-webhook v3 composite
.github/workflows/productionize.yml actions
  • act10ns/slack v1 composite
  • actions/checkout v3 composite
  • actions/setup-node v3 composite
  • stdlib-js/bundle-action main composite
  • stdlib-js/transform-errors-action main composite
.github/workflows/publish.yml actions
  • JS-DevTools/npm-publish v1 composite
  • act10ns/slack v1 composite
  • actions/checkout v3 composite
  • actions/setup-node v3 composite
  • styfle/cancel-workflow-action 0.11.0 composite
.github/workflows/test.yml actions
  • act10ns/slack v1 composite
  • actions/checkout v3 composite
  • actions/setup-node v3 composite
.github/workflows/test_bundles.yml actions
  • act10ns/slack v1 composite
  • actions/checkout v3 composite
  • actions/setup-node v3 composite
  • denoland/setup-deno v1 composite
.github/workflows/test_coverage.yml actions
  • act10ns/slack v1 composite
  • actions/checkout v3 composite
  • actions/setup-node v3 composite
  • codecov/codecov-action v3 composite
  • distributhor/workflow-webhook v3 composite
.github/workflows/test_install.yml actions
  • act10ns/slack v1 composite
  • actions/checkout v3 composite
  • actions/setup-node v3 composite