Ignore:
Timestamp:
Jul 7, 2011, 7:10:54 PM (13 years ago)
Author:
aslmd
Message:

MESOSCALE: python. a few bug fixes and additions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MESOSCALE/PLOT/PYTHON/mylib/myplot.py

    r199 r201  
    255255    return m
    256256
     257def fmtvar (whichvar="def"):
     258        fmtvar    =     { \
     259                "tk":           "%.0f",\
     260                "tpot":         "%.0f",\
     261                "def":          "%.1e",\
     262                "PTOT":         "%.0f",\
     263                "USTM":         "%.2f",\
     264                        }
     265        if whichvar not in fmtvar:
     266                whichvar = "def"
     267        return fmtvar[whichvar]
     268
    257269def marsmap (whichone="vishires"):
    258270        whichlink =     { \
    259271                "vis":          "http://maps.jpl.nasa.gov/pix/mar0kuu2.jpg",\
    260                 "vishires":     "http://users.info.unicaen.fr/~karczma/TEACH/InfoGeo/Images/Planets/MarsMap_2500x1250.jpg",\
     272                "vishires":     "http://dl.dropbox.com/u/11078310/MarsMap_2500x1250.jpg",\
    261273                "mola":         "http://www.lns.cornell.edu/~seb/celestia/mars-mola-2k.jpg",\
    262                 "molabw":       "http://users.info.unicaen.fr/~karczma/TEACH/InfoGeo/Images/Planets/MarsElevation_2500x1250.jpg",\
     274                "molabw":       "http://dl.dropbox.com/u/11078310/MarsElevation_2500x1250.jpg",\
    263275                        }
    264276        if whichone not in whichlink:
Note: See TracChangeset for help on using the changeset viewer.