Difference between revisions of "Lunarpedia:Autostub1"

From Lunarpedia
Jump to: navigation, search
(a little to short)
 
(dummy edit to remove vandalism)
 
(24 intermediate revisions by 14 users not shown)
Line 1: Line 1:
'''Autostub1''' is a script intended to generate 9,359 location articles: craters, maria, sectors: everything except for rille, unless a public domain database for them is located.
+
'''Autostub1''' is a script intended to generate over 9,300 location articles: sectors and also craters, maria, rille, and everything else in the available public domain database.  
  
[[Lunarpedia:Autostub1 test 1]]
+
==Specifications==
 +
{{Cleanup Section}}
 +
These are incomplete and based on what has been targeted for work to date. 
 +
 
 +
===Sectors===
 +
{{Spec Melt}}
 +
Sectors, aside from two exceptional cases (the poles), are 15 degrees by 15 degrees.  The equator has a single ring of sectors between 7.5N and 7.5S.  The two polar sectors are 15 degrees in diameter.  The sectors line up horizontally against 267.2<SUP>(double-check needed)</SUP>E Mean Earth, or 0 degrees Mare Orientale.
 +
 
 +
===Features===
 +
 
 +
===Lunar Feature Articles===
 +
Box: Image:Mare Orientale Map GA03 400 8bit.png
 +
Name (from database column 2)
 +
Category (from column 23)
 +
Origin (from column 24)
 +
Map (see Map:Features below)
 +
Coordinates in Mean Earth and Mare Orientale coordinates
 +
Diameter (size?) (from column 10)
 +
Approval status (from columns 18 and 19)
 +
 
 +
Description: givig rough simple location description, type of feature, what sector it is centered in and if the calculation says it's probably wholly within the sector.
 +
 
 +
Also give alist of sectors that portions of the feature may be located in.
 +
 
 +
If the feature is a major crater, give a list of satellite craters.
 +
 
 +
If the feature is a satellite crater, give a link to its major crater.
 +
 
 +
Give list of references listed in column 21 of the database.
 +
 
 +
===Lunar Sector Articles===
 +
There is a sector box from a template.  The box is presently specified to list both Mean Earth and Mare Orientale coordinates, but with a change of the template all sector articles could display only one or the other, or change the way in which the information of both is presented. 
 +
 
 +
At the top of the box is the sector designation, which is presently no longer specified, as it would be good to have a naming system that not only doesn't present a point location to represent a far larger area, but also doesn't invoke either Mare Orientale or Mean Earth as its definitive basis.
 +
 
 +
Below is a map as specified in Maps:Sector below.
 +
 
 +
Below the map is the center coordinates in both Mean Earth and Mare Orientale.
 +
 
 +
Below is a list of adjoining sectorImage:Mare Orientale Map GA03 400 8bit.pngs.  Four for all non-polar sectors and twenty-four for the poles.
 +
 
 +
The article text begins with a rough, simple description of where the sector is.
 +
 
 +
Places of interest are listed, including features centered inside the sector and features that may be in the sector but are centered elsewhere.
 +
 
 +
Another section should include surveys and landings, with where to click to get specific geological information.  The mechanism to do this is not yet worked out.
 +
 
 +
 
 +
 
 +
===Maps===
 +
 
 +
====Source====
 +
{{Spec Melt}}
 +
Three source maps are needed.  One for the 25 northernmost sectors, one for the 25 southernmost sectors, and one for all other sectors.  Feature edge cases should probably be served by an outer portion of the relevant polar map. 
 +
 
 +
The polar source maps are not yet produced.  A smaller version of the main source map can be found [[:Image:Mare Orientale Map GA03 400 8bit.png|here]].  The full-sized single layer version is 7200 by 2700 pixels and 40 MB compressed.  It is calibrated for Mare Orientale coordinates.
 +
 
 +
====Sector====
 +
Sector maps from the main source maps are square sections.  The solution for polar and near-polar sector maps is not yet determined.  While the Python Image Library can support adding text to images, no specifications for adding text to the map have yet been worked out.
 +
 
 +
====Feature====
 +
Feature maps use the diameter to estimate the size of the map to be generated.  Features below a to be determined size will not be feasible to include maps for from the source maps.
 +
 
 +
===Output===
 +
Output is to be in the format used for exporting and importing articles between MediaWiki installations.  Each output xml file should be below 2MB (or a to-be-determined more precise size target) to minimize difficulty importing.  Test1 was imported in this manner.
 +
 
 +
===Database===
 +
The database formatting is outside of the control of this specification.  The database was created by the [[USGS]].
  
<!--
+
{| STYLE = "background:black;color:white"
{| class="wikitable"
+
|- STYLE = "background:#BFBFBF;color:black"
!&nbsp;
+
| Variable(s)
!City
+
| column
!Federal state
+
| description
!Population
+
|- STYLE = "background:white;color:black"
|-
+
| STYLE = "color:#7F7F7F" | ''unused''
| 1 || [[Berlin]] || [[Berlin]] || 3388434
+
| 00
 +
| system (will always be 'Earth')
 +
|- STYLE = "background:#FFFFEF;color:black"
 +
| STYLE = "color:#7F7F7F" | ''unused''
 +
| 01
 +
| satellite (will always be 'Moon')
 +
|- STYLE = "background:white;color:black "
 +
| '''name'''<BR/>''used for:<BR/>mapname''
 +
| 02
 +
| name of feature
 +
|- STYLE = "background:#FFFFEF;color:black"
 +
| '''Lat'''<BR/>''used for:<BR/>lat<BR/>me_coord<BR/>mo_coord<BR/>inSector<BR/>sectors<BR/>localeDescr''
 +
| 03
 +
| USGS latitude
 +
|- STYLE = "background:white;color:black"
 +
<!-- me_long = poslong(thisentry[4])  -- Mean Earth longitude
 +
  - mo_long = me2mo(me_long)          -- Mare Orientale longitude
 +
  - me_coord = coordstr(me_long, lat) -- string for Mean Earth coordinates
 +
  - mo_coord = coordstr(mo_long, lat) -- string for Mare Orientale coordinates
 +
  -->
 +
| ''used for:<BR/>me_long<BR/>mo_long<BR/>me_coord<BR/>mo_coord<BR/>inSector<BR/>sectors<BR/>localeDescr''
 +
| 04
 +
| USGS longitude
 +
|- STYLE = "background:#FFFFEF;color:black"
 +
| STYLE = "color:#7F7F7F" | ''unused''
 +
| 05
 +
| starting latitude (never provided, unfortunately)
 +
|- STYLE = "background:white;color:black"
 +
| STYLE = "color:#7F7F7F" | ''unused''
 +
| 06
 +
| ending latitude (never provided, unfortunately)
 +
|- STYLE = "background:#FFFFEF;color:black"
 +
| STYLE = "color:#7F7F7F" | ''unused''
 +
| 07
 +
| starting longitude (never provided, unfortunately)
 +
|- STYLE = "background:white;color:black"
 +
| STYLE = "color:#7F7F7F" | ''unused''
 +
| 08
 +
| ending longitude (never provided, unfortunately)   
 +
|- STYLE = "background:#FFFFEF;color:black"
 +
| STYLE = "color:#7F7F7F" | ''unused''
 +
| 09
 +
| DIR (???)
 +
|- STYLE = "background:white;color:black"
 +
| '''dia'''<BR/>''used for:<BR/>sectors''
 +
| 10
 +
| diameter in klicks
 +
|- STYLE = "background:#FFFFEF;color:black"
 +
| STYLE = "color:#7F7F7F" | ''unused''
 +
| 11
 +
| CT (country of discovery?)
 +
|- STYLE = "background:white;color:black"
 +
| STYLE = "color:#7F7F7F" | ''unused''
 +
| 12
 +
| Continent (of discovery?)
 +
|- STYLE = "background:#FFFFEF;color:black"
 +
| STYLE = "color:#7F7F7F" | ''unused''
 +
| 13
 +
| ET (???)
 +
|- STYLE = "background:white;color:black"
 +
| STYLE = "color:#7F7F7F" | ''unused''
 +
| 14
 +
| Ethnicity (of name?)
 +
|- STYLE = "background:#FFFFEF;color:black"
 +
| STYLE = "color:#7F7F7F" | ''unused''
 +
| 15
 +
| Quad (USGS map info)
 +
|- STYLE = "background:white;color:black"
 +
| STYLE = "color:#7F7F7F" | ''unused''
 +
| 16
 +
| Map (USGS map info)
 +
|- STYLE = "background:#FFFFEF;color:black"
 +
| STYLE = "color:#7F7F7F" | ''unused''
 +
| 17
 +
| AS (???)
 +
|- STYLE = "background:white;color:black"
 +
| '''approvalStat'''<BR/>''used for:<BR/>approvalStr''
 +
| 18
 +
| Approved Status Description
 +
|- STYLE = "background:#FFFFEF;color:black"
 +
| '''approvalYear'''<BR/>''used for:<BR/>approvalStr''
 +
| 19
 +
| Approval Date (year)
 +
|- STYLE = "background:white;color:black"
 +
| STYLE = "color:#7F7F7F" | ''unused''
 +
| 20
 +
| REF (???)
 +
|- STYLE = "background:#FFFFEF;color:black"
 +
| '''reference'''
 +
| 21
 +
| References
 +
|- STYLE = "background:white;color:black"
 +
| STYLE = "color:#7F7F7F" | ''unused''
 +
| 22
 +
| FT (Feature Type categorization, presumably)
 +
|- STYLE = "background:#FFFFEF;color:black"
 +
| '''featuretype'''<BR/>''used for:<BR/>typecat''
 +
| 23
 +
| Feature Type Name
 +
|- STYLE = "background:white;color:black"
 +
| '''origin'''
 +
| 24
 +
| origin (nature of 'origin' varies)
 
|-
 
|-
 
|}
 
|}
-->
+
 
 +
<BR/>
 +
 
 +
==Problems==
 +
 
 +
<BR/>
 +
==Tests==
 +
 
 +
[[Lunarpedia:Autostub1 test 1]]

Latest revision as of 06:22, 28 May 2011

Autostub1 is a script intended to generate over 9,300 location articles: sectors and also craters, maria, rille, and everything else in the available public domain database.

Specifications

Work on this section has outpaced copyediting on it. You can help Lunarpedia by formatting, editing, or tidying it.


These are incomplete and based on what has been targeted for work to date.

Sectors

This specification is being reevaluated or is in need of replacement.


Sectors, aside from two exceptional cases (the poles), are 15 degrees by 15 degrees. The equator has a single ring of sectors between 7.5N and 7.5S. The two polar sectors are 15 degrees in diameter. The sectors line up horizontally against 267.2(double-check needed)E Mean Earth, or 0 degrees Mare Orientale.

Features

Lunar Feature Articles

Box: Image:Mare Orientale Map GA03 400 8bit.png Name (from database column 2) Category (from column 23) Origin (from column 24) Map (see Map:Features below) Coordinates in Mean Earth and Mare Orientale coordinates Diameter (size?) (from column 10) Approval status (from columns 18 and 19)

Description: givig rough simple location description, type of feature, what sector it is centered in and if the calculation says it's probably wholly within the sector.

Also give alist of sectors that portions of the feature may be located in.

If the feature is a major crater, give a list of satellite craters.

If the feature is a satellite crater, give a link to its major crater.

Give list of references listed in column 21 of the database.

Lunar Sector Articles

There is a sector box from a template. The box is presently specified to list both Mean Earth and Mare Orientale coordinates, but with a change of the template all sector articles could display only one or the other, or change the way in which the information of both is presented.

At the top of the box is the sector designation, which is presently no longer specified, as it would be good to have a naming system that not only doesn't present a point location to represent a far larger area, but also doesn't invoke either Mare Orientale or Mean Earth as its definitive basis.

Below is a map as specified in Maps:Sector below.

Below the map is the center coordinates in both Mean Earth and Mare Orientale.

Below is a list of adjoining sectorImage:Mare Orientale Map GA03 400 8bit.pngs. Four for all non-polar sectors and twenty-four for the poles.

The article text begins with a rough, simple description of where the sector is.

Places of interest are listed, including features centered inside the sector and features that may be in the sector but are centered elsewhere.

Another section should include surveys and landings, with where to click to get specific geological information. The mechanism to do this is not yet worked out.


Maps

Source

This specification is being reevaluated or is in need of replacement.


Three source maps are needed. One for the 25 northernmost sectors, one for the 25 southernmost sectors, and one for all other sectors. Feature edge cases should probably be served by an outer portion of the relevant polar map.

The polar source maps are not yet produced. A smaller version of the main source map can be found here. The full-sized single layer version is 7200 by 2700 pixels and 40 MB compressed. It is calibrated for Mare Orientale coordinates.

Sector

Sector maps from the main source maps are square sections. The solution for polar and near-polar sector maps is not yet determined. While the Python Image Library can support adding text to images, no specifications for adding text to the map have yet been worked out.

Feature

Feature maps use the diameter to estimate the size of the map to be generated. Features below a to be determined size will not be feasible to include maps for from the source maps.

Output

Output is to be in the format used for exporting and importing articles between MediaWiki installations. Each output xml file should be below 2MB (or a to-be-determined more precise size target) to minimize difficulty importing. Test1 was imported in this manner.

Database

The database formatting is outside of the control of this specification. The database was created by the USGS.

Variable(s) column description
unused 00 system (will always be 'Earth')
unused 01 satellite (will always be 'Moon')
name
used for:
mapname
02 name of feature
Lat
used for:
lat
me_coord
mo_coord
inSector
sectors
localeDescr
03 USGS latitude
used for:
me_long
mo_long
me_coord
mo_coord
inSector
sectors
localeDescr
04 USGS longitude
unused 05 starting latitude (never provided, unfortunately)
unused 06 ending latitude (never provided, unfortunately)
unused 07 starting longitude (never provided, unfortunately)
unused 08 ending longitude (never provided, unfortunately)
unused 09 DIR (???)
dia
used for:
sectors
10 diameter in klicks
unused 11 CT (country of discovery?)
unused 12 Continent (of discovery?)
unused 13 ET (???)
unused 14 Ethnicity (of name?)
unused 15 Quad (USGS map info)
unused 16 Map (USGS map info)
unused 17 AS (???)
approvalStat
used for:
approvalStr
18 Approved Status Description
approvalYear
used for:
approvalStr
19 Approval Date (year)
unused 20 REF (???)
reference 21 References
unused 22 FT (Feature Type categorization, presumably)
featuretype
used for:
typecat
23 Feature Type Name
origin 24 origin (nature of 'origin' varies)


Problems


Tests

Lunarpedia:Autostub1 test 1