##### ## Mapx Grid and Projection Definitions ## Written by Scott Lewis ## (C)2008, National Snow and Ice Data Center ## ## This file describes the built-in Grid and Projection defintions available ## to use, if desired. ##### ====== GRIDS DEFINITIONS Grids "files" are in the following format: FILENAME ~~~~~~ PROJNAME NUMCOLS NUMROWS CPMU RPMU ORIGINCOL ORIGINROW The FILENAME is the name of the "file" to use. The ~~~~~~ is not part of the file contents, but the remaining 4 lines are. PROJNAME indicates the "filename" of the Projection to use. (See the PROJECTION DEFINITIONS section below). NUMCOLS and NUMROWS are the number of columns and rows in the grid. CPMU and RPMU is the number of columns or rows per map unit. ORIGINCOL and ORIGINROW are the column and row values of the map origin. The following are the built-in Grids definitions: East.gpd ~~~~~~ East.mpp 1000 1000 1000 1000 500.0 500.0 Eorthographic.gpd ~~~~~~ Eorthographic.mpp 500.0 250.0 250.0 250.0 250.0 125.0 fiveminute.gpd ~~~~~~ onedegree.mpp 4320 2160 12 12 2159.5 1079.5 halfdegree.gpd ~~~~~~ onedegree.mpp 720 360 2 2 359.5 179.5 Mh.gpd ~~~~~~ M200correct.mpp 2766 1171 16 16 1382.0 585.0 Ml.gpd ~~~~~~ M200correct.mpp 1383 586 8 8 691.0 292.5 MOD_Sin.gpd ~~~~~~ Sinusoidal.mpp 3600 1800 1 1 1800 900 Moll1:100.gpd ~~~~~~ Mollweide.mpp 781.0 344.0 24.0 24.0 390.5 172.0 Moll1:160.gpd ~~~~~~ Mollweide.mpp 490.0 216.0 15.0 15.0 245.0 108.0 Moll1:40.gpd ~~~~~~ Mollweide.mpp 2160.0 1080.0 60.0 60.0 1080.0 540.0 Moll1:80.gpd ~~~~~~ Mollweide.mpp 974.0 427.0 30.0 30.0 487.0 213.5 Moll.gpd ~~~~~~ Mollweide.mpp 490.0 216.0 15.0 15.0 245.0 108.0 N3A.gpd ~~~~~~ Nps.mpp 608 896 8 8 307.5 467.5 N3B.gpd ~~~~~~ Nps.mpp 304 448 4 4 153.5 233.5 Na1.gpd ~~~~~~ N200avhrr.mpp 7220 7220 160 160 3609.5 3609.5 Na25.gpd ~~~~~~ N200correct.mpp 361 361 8 8 180.5 180.5 Na5.gpd ~~~~~~ N200correct.mpp 1805 1805 40 40 902.5 902.5 Nh.gpd ~~~~~~ N200correct.mpp 1441 1441 16 16 720.0 720.0 Nl.gpd ~~~~~~ N200correct.mpp 721 721 8 8 360.0 360.0 North.gpd ~~~~~~ North.mpp 1000 1000 1000 1000 500.0 500.0 NpathP.gpd ~~~~~~ NpathP.mpp 67 67 1 1 33 33 onedegree.gpd ~~~~~~ onedegree.mpp 360 180 1 1 179.5 89.5 quarterdegree.gpd ~~~~~~ onedegree.mpp 1440 720 4 4 719.5 359.5 S3A.gpd ~~~~~~ Sps.mpp 632 644 8 8 315.5 347.5 S3B.gpd ~~~~~~ Sps.mpp 316 332 4 4 157.5 157.5 Sa1.gpd ~~~~~~ S200avhrr.mpp 6420 6420 160 160 3209.5 3209.5 Sa25.gpd ~~~~~~ S200correct.mpp 321 321 8 8 160.0 160.0 Sa5.gpd ~~~~~~ S200correct.mpp 1605 1605 40 40 802.5 802.5 Sh.gpd ~~~~~~ S200correct.mpp 1441 1441 16 16 720.0 720.0 Sl.gpd ~~~~~~ S200correct.mpp 721 721 8 8 360.0 360.0 South.gpd ~~~~~~ South.mpp 1000 1000 1000 1000 500.0 500.0 thirtyseconds.gpd ~~~~~~ onedegree.mpp 43200 21600 120 120 21599.5 10799.5 West.gpd ~~~~~~ West.mpp 1000 1000 1000 1000 500.0 500.0 World.gpd ~~~~~~ World.mpp 2000 1000 1000 1000 1000.0 500.0 Worthographic.gpd ~~~~~~ Worthographic.mpp 500.0 250.0 250.0 250.0 250.0 125.0 ====== PROJECTION DEFINITIONS Projection "files" are in the following format: FILENAME ~~~~~~ PROJ LAT0 LON0 LAT1 LON1 ROTATE SCALE CENTERLAT CENTERLON NORTH SOUTH WEST EAST LATINTERVAL LONINTERVAL LATLABEL LONLABEL CIL BDY RIV RADIUS ECCENTRICITY The FILENAME is the "file" to use. The ~~~~~~ is not part of the file contents, but all lines below it are part of the file. PROJ is the Projection class to use. See mapx_projections.txt for a list of projections. (Note that the projections shown here may be displayed with different spaces and punctuation. The code strips out all spaces and punctuation before checking for projection type, so these differences are irrelevant. LAT0, LON0, LAT1, and LON1 are projection specific parameters. LAT1 and LON1 are not always used, and are sometimes omitted. LAT0 and LON0 however must always have values. ROTATE is the projection rotation. SCALE is the projection scale; usually this is at the projection center, but some projections have scale set for other locations. See mapx_projections.txt for details. CENTERLAT and CENTERLON are the center coordinates for the map. This will usually be the same as the projection center, but isn't always so; if they are different, conversions will be offset appropriately. NORTH, SOUTH, WEST, and EAST are the boundaries of the projection. LATINTERVAL and LONINTERVAL are used when drawing the map, and indicates the interval in which latitude/longitude lines are drawn. Mapx does not use these values currently, but they are required to be in the "file". LATLABEL and LONLABEL are used when drawing the map to label the latitude/ longitude lines. Mapx does not use these values, but they are required to be in the "file" CIL, BDY, and RIV are various detail flags for drawing a map. Mapx does not use these values, but they are required to be in the "file". RADIUS is the equatorial radius of the projection. This is an optional line (though it is required if the ECCENTRICITY line is included). If omitted, a default radius of 6371.228 will be used. ECCENTRICITY is the eccentricity to use for the projection. This value only has meaning for elliptical projections. It may be omitted, but if it is, a default value of 0.082271673 will be used if necessary. Note that all Latitude values are in degrees north; positive values represent north latitudes, negative values represent south. Longitude values are all in degrees east, with positive values representing east and negative values representing west. The following are the built-in projection definitions: ------ East.mpp ~~~~~~ Orthographic 0.0 90.0 999 999 0.0 13000.0 0.0 90.0 -90.0 90.0 -180.0 180.0 30.0 30.0 0.0 0.0 1 0 0 Eorthographic.mpp ~~~~~~ Orthographic 0.0 90.0 999.0 999.0 0.0 13000.0 0.0 90.0 -90.0 90.0 0.0 180.0 30.0 30.0 0.0 0.0 1 0 0 6371.228 0.08227167 M200correct.mpp ~~~~~~ Cylindrical-Equal-Area 0.0 0.0 30.0 0.0 200.5402 0.0 0.0 -90.0 90.0 -180.0 180.0 30.0 30.0 0.0 0.0 1 0 0 Mollweide.mpp ~~~~~~ Mollweide 0 0 0 999 0 1111.9894 0 0 -90 90 -180 180 30 30 0 180 1 0 0 6371.23 0.0822717 N200avhrr.mpp ~~~~~~ Azimuthal-Equal-Area 90.0 0.0 0.0 200.5402 90.0 0.0 0.0 90.0 -180.0 180.0 15.0 30.0 0.0 0.0 1 0 0 N200correct.mpp ~~~~~~ Azimuthal-Equal-Area 90.0 0.0 0.0 200.5402 90.0 0.0 0.0 90.0 -180.0 180.0 15.0 30.0 0.0 0.0 1 0 0 North.mpp ~~~~~~ PolarStereographic 90.0 0.0 999 999 0.0 26000.0 90.0 0.0 -90.0 90.0 -180.0 180.0 30.0 30.0 0.0 180.0 1 0 0 NPathP.mpp ~~~~~~ Azimuthal-Equal-Area 90.0 90.0 0.0 100.2701 90.00 00.00 0.00 90.00 -180.00 180.00 5.00 20.00 0.00 0.00 1 0 0 Nps.mpp ~~~~~~ PolarStereographicEllipsoid 90.0 -45.0 70.0 0.0 100.0 90.00 135.00 20.00 90.00 -180.00 180.00 10.00 150.00 00.00 00.00 1 0 0 6378.273 0.081816153 onedegree.mpp ~~~~~~ CylindricalEquidistant 0.0 0.0 0.0 0.0 1.0 0.0 0.0 -90.0 90.0 -180.0 180.0 10.00 10.00 0.00 00.00 1 0 0 57.295780 S200avhrr.mpp ~~~~~~ Azimuthal-Equal-Area -90.0 0.0 0.0 200.5402 -90.0 0.0 -90.0 0.0 -180.0 180.0 15.0 30.0 0.0 0.0 1 0 0 S200correct.mpp ~~~~~~ Azimuthal-Equal-Area -90.0 0.0 0.0 200.5402 -90.0 0.0 -90.0 0.0 -180.0 180.0 15.0 30.0 0.0 0.0 1 0 0 Sinusoidal.mpp ~~~~~~ Sinusoidal 0 0 0 999 0.0 11.119894 0.0 0.0 -90 90 -180 180 30 30 0.0 0.0 1 0 0 6371.23 0.0822717 South.mpp ~~~~~~ PolarStereographic -90.0 0.0 999 999 0.0 26000.0 -90.0 0.0 -90.0 90.0 -180.0 180.0 30.0 30.0 0.0 180.0 1 0 0 Sps.mpp ~~~~~~ PolarStereographicEllipsoid -90.0 0.0 -70.0 0.0 100.0 -90.00 0.00 -90.00 -20.00 -180.00 180.00 10.00 15.00 0.00 0.00 1 0 0 6378.273 0.081816153 SWorld.mpp ~~~~~~ CylindricalEquidistant 0.0 0.0 0.0 999 0.0 20000.0 0.0 180.0 -90.0 90.0 -180.0 180.0 30.0 30.0 0.0 180.0 1 0 0 West.mpp ~~~~~~ Orthographic 0.0 -90.0 999 999 0.0 13000.0 0.0 -90.0 -90.0 90.0 -180.0 180.0 30.0 30.0 0.0 0.0 1 0 0 world.mpp ~~~~~~ CylindricalEquidistant 0 0 0 999 0 20000 0 0 -90 90 -180 180 30 30 0 180 1 0 0 6371.23 0.0822717 World.mpp ~~~~~~ CylindricalEquidistant 0.0 0.0 0.0 999 0.0 20000.0 0.0 0.0 -90.0 90.0 -180.0 180.0 30.0 30.0 0.0 0.0 1 0 0 Worthographic.mpp ~~~~~~ Orthographic 0.0 -90.0 999.0 999.0 0.0 13000.0 0.0 -90.0 -90.0 90.0 -180.0 180.0 30.0 30.0 0.0 0.0 1 0 0 6371.228 0.08227167