InMAP
  • Docs
  • EIEIO
  • API
  • Help
  • Blog

›Commands

Using InMAP

  • Quickstart
  • Installation
  • Running and Configuration
  • Emissions
  • Variable Grid
  • Output Results

Commands

  • inmap
  • inmap cloud
  • inmap cloud delete
  • inmap cloud output
  • inmap cloud start
  • inmap cloud status
  • inmap grid
  • inmap preproc
  • inmap preproc combine
  • inmap run
  • inmap run steady
  • inmap sr
  • inmap sr clean
  • inmap sr save
  • inmap sr start
  • inmap srpredict
  • inmap version

Reference

  • Model Variables

inmap cloud start

inmap cloud start

Start a job on a Kubernetes cluster.

Synopsis

Start a job on a Kubernetes cluster. Of the flags available to this command, 'cmds', 'storage_gb', and 'memory_gb' relate to the creation of the job. All other flags and configuation file information are used to configure the remote simulation.

inmap cloud start [flags]

Options

      --EmissionMaskGeoJSON string               EmissionMaskGeoJSON is an optional GeoJSON-formatted polygon string that specifies the area outside of which emissions will be ignored. The mask is assumed to  use the same spatial reference as VarGrid.GridProj. Example="{\"type\": \"Polygon\",\"coordinates\": [ [ [-4000, -4000], [4000, -4000], [4000, 4000], [-4000, 4000] ] ] }"
                                                 
      --EmissionUnits string                     EmissionUnits gives the units that the input emissions are in. Acceptable values are 'tons/year', 'kg/year', 'ug/s', and 'μg/s'.
                                                  (default "tons/year")
      --EmissionsShapefiles strings              EmissionsShapefiles are the paths to any emissions shapefiles. Can be elevated or ground level; elevated files need to have columns labeled "height", "diam", "temp", and "velocity" containing stack information in units of m, m, K, and m/s, respectively. Emissions will be allocated from the geometries in the shape file to the InMAP computational grid, but the mapping projection of the shapefile must be the same as the projection InMAP uses. Can include environment variables.
                                                  (default [${INMAP_ROOT_DIR}/cmd/inmap/testdata/testEmis.shp])
      --InMAPData string                         InMAPData is the path to location of baseline meteorology and pollutant data. The path can include environment variables.
                                                  (default "${INMAP_ROOT_DIR}/cmd/inmap/testdata/testInMAPInputData.ncf")
      --NumIterations int                        NumIterations is the number of iterations to calculate. If < 1, convergence is automatically calculated.
                                                 
      --OutputAllLayers                          If OutputAllLayers is true, output data for all model layers. If false, only output the lowest layer.
                                                 
      --OutputVariables string                   OutputVariables specifies which model variables should be included in the output file. It can include environment variables.
                                                  (default "{\"TotalPM25\":\"PrimaryPM25 + pNH4 + pSO4 + pNO3 + SOA\",\"TotalPopD\":\"(exp(log(1.078)/10 * TotalPM25) - 1) * TotalPop * AllCause / 100000\"}\n")
      --SR.OutputFile string                     SR.OutputFile is the path where the output file is or should be created when creating a source-receptor matrix. It can contain environment variables.
                                                  (default "${INMAP_ROOT_DIR}/cmd/inmap/testdata/output_${InMAPRunType}.shp")
      --VarGrid.CensusFile string                VarGrid.CensusFile is the path to the shapefile or COARDs-compliant NetCDF file holding population information.
                                                  (default "${INMAP_ROOT_DIR}/cmd/inmap/testdata/testPopulation.shp")
      --VarGrid.CensusPopColumns strings         VarGrid.CensusPopColumns is a list of the data fields in CensusFile that should be included as population estimates in the model. They can be population of different demographics or for different population scenarios.
                                                  (default [TotalPop,WhiteNoLat,Black,Native,Asian,Latino])
      --VarGrid.GridProj string                  GridProj gives projection info for the CTM grid in Proj4 or WKT format. (default "+proj=lcc +lat_1=33.000000 +lat_2=45.000000 +lat_0=40.000000 +lon_0=-97.000000 +x_0=0 +y_0=0 +a=6370997.000000 +b=6370997.000000 +to_meter=1")
      --VarGrid.HiResLayers int                  HiResLayers is the number of layers, starting at ground level, to do nesting in. Layers above this will have all grid cells in the lowest spatial resolution. This option is only used with static grids.
                                                  (default 1)
      --VarGrid.MortalityRateColumns string      VarGrid.MortalityRateColumns gives names of fields in MortalityRateFile that contain baseline mortality rates (as keys) in units of deaths per year per 100,000 people. The values specify the population group that should be used with each mortality rate for population-weighted averaging.
                                                  (default "{\"AllCause\":\"TotalPop\",\"AsianMort\":\"Asian\",\"BlackMort\":\"Black\",\"LatinoMort\":\"Latino\",\"NativeMort\":\"Native\",\"WhNoLMort\":\"WhiteNoLat\"}\n")
      --VarGrid.MortalityRateFile string         VarGrid.MortalityRateFile is the path to the shapefile containing baseline mortality rate data.
                                                  (default "${INMAP_ROOT_DIR}/cmd/inmap/testdata/testMortalityRate.shp")
      --VarGrid.PopConcThreshold float           PopConcThreshold is the limit for Σ(|ΔConcentration|)*combinedVolume*|ΔPopulation| / {Σ(|totalMass|)*totalPopulation}. See the documentation for PopConcMutator for more information. This option is only used with dynamic grids.
                                                  (default 1e-09)
      --VarGrid.PopDensityThreshold float        PopDensityThreshold is a limit for people per unit area in a grid cell in units of people / m². If the population density in a grid cell is above this level, the cell in question is a candidate for splitting into smaller cells. This option is only used with static grids.
                                                  (default 0.0055)
      --VarGrid.PopGridColumn string             VarGrid.PopGridColumn is the name of the field in CensusFile that contains the data that should be compared to PopThreshold and PopDensityThreshold when determining if a grid cell should be split. It should be one of the fields in CensusPopColumns.
                                                  (default "TotalPop")
      --VarGrid.PopThreshold float               PopThreshold is a limit for the total number of people in a grid cell. If the total population in a grid cell is above this level, the cell in question is a candidate for splitting into smaller cells. This option is only used with static grids.
                                                  (default 40000)
      --VarGrid.VariableGridDx float             VarGrid.VariableGridDx specifies the X edge lengths of grid cells in the outermost nest, in the units of the grid model spatial projection--typically meters or degrees latitude and longitude.
                                                  (default 4000)
      --VarGrid.VariableGridDy float             VarGrid.VariableGridDy specifies the Y edge lengths of grid cells in the outermost nest, in the units of the grid model spatial projection--typically meters or degrees latitude and longitude.
                                                  (default 4000)
      --VarGrid.VariableGridXo float             VarGrid.VariableGridXo specifies the X coordinate of the lower-left corner of the InMAP grid.
                                                  (default -4000)
      --VarGrid.VariableGridYo float             VarGrid.VariableGridYo specifies the Y coordinate of the lower-left corner of the InMAP grid. (default -4000)
      --VarGrid.Xnests ints                      Xnests specifies nesting multiples in the X direction. (default [2,2,2])
      --VarGrid.Ynests ints                      Ynests specifies nesting multiples in the Y direction. (default [2,2,2])
      --aep.GridRef strings                      GridRef specifies the locations of the spatial surrogate gridding reference files used for processing emissions. It is used for assigning spatial locations to emissions records.
                                                  (default [no_default])
      --aep.InventoryConfig.COARDSFiles string   COARDSFiles lists COARDS-compliant NetCDF emission files (NetCDF 4 and greater not supported). Information regarding the COARDS NetCDF conventions are available here: https://ferret.pmel.noaa.gov/Ferret/documentation/coards-netcdf-conventions. The file names can include environment variables. The format is map[sector name][list of files]. For COARDS files, the sector name will also be used as the SCC code.
                                                  (default "{}\n")
      --aep.InventoryConfig.COARDSYear int       COARDSYear specifies the year of emissions for COARDS emissions files. COARDS emissions are assumed to be in units of mass of emissions per year. The year will not be used for NEI emissions files.
                                                 
      --aep.InventoryConfig.InputUnits string    InputUnits specifies the units of input data. Acceptable values are 'tons', 'tonnes', 'kg', 'g', and 'lbs'. This value will be used for AEP emissions only, not for shapefiles. (default "no_default")
      --aep.InventoryConfig.NEIFiles string      NEIFiles lists National Emissions Inventory emissions files. The file names can include environment variables. The format is map[sector name][list of files].
                                                  (default "{}\n")
      --aep.SCCExactMatch                        SCCExactMatch specifies whether SCC codes must match exactly when processing emissions.
                                                  (default true)
      --aep.SpatialConfig.GridName string        GridName specifies a name for the grid which is used in the names of intermediate and output files. Changes to the geometry of the grid must be accompanied by either a a change in GridName or the deletion of all the files in the SpatialCache directory.
                                                  (default "inmap")
      --aep.SpatialConfig.InputSR string         InputSR specifies the input emissions spatial reference in Proj4 format.
                                                  (default "+proj=longlat")
      --aep.SpatialConfig.MaxCacheEntries int    MaxCacheEntries specifies the maximum number of emissions and concentrations surrogates to hold in a memory cache. Larger numbers can result in faster processing but increased memory usage.
                                                  (default 10)
      --aep.SpatialConfig.SpatialCache string    SpatialCache specifies the location for storing spatial emissions data for quick access. If this is left empty, no cache will be used.
                                                 
      --aep.SrgShapefileDirectory string         SrgShapefileDirectory gives the location of the directory holding the shapefiles used for creating spatial surrogates. It is used for assigning spatial locations to emissions records. It is only used when SrgSpecType == "SMOKE".
                                                  (default "no_default")
      --aep.SrgSpec string                       SrgSpec gives the location of the surrogate specification file. It is used for assigning spatial locations to emissions records.
                                                  (default "no_default")
      --aep.SrgSpecType string                   SrgSpecType specifies the type of data the gridding surrogates are being created from. It can be "SMOKE" or "OSM".
                                                  (default "no_default")
      --cmds strings                             cmds specifies the inmap subcommands to run. (default [run,steady])
      --creategrid                               creategrid specifies whether to create the variable-resolution grid as specified in the configuration file before starting the simulation instead of reading it from a file. If --static is false, then this flag will also be automatically set to false.
                                                 
  -h, --help                                     help for start
      --memory_gb int                            memory_gb specifies the gigabytes of RAM memory required for this job. (default 20)
  -s, --static                                   static specifies whether to run with a static grid that is determined before the simulation starts. If false, the simulation runs with a dynamic grid that changes resolution depending on spatial gradients in population density and concentration.
                                                 

Options inherited from parent commands

      --addr string       addr specifies the URL to connect to for running cloud jobs (default "inmap.run:443")
      --config string     config specifies the configuration file location.
      --job_name string   job_name specifies the name of a cloud job (default "test_job")

SEE ALSO

  • inmap cloud - Interact with a Kubernetes cluster.
← inmap cloud outputinmap cloud status →
  • inmap cloud start
    • Synopsis
    • Options
    • Options inherited from parent commands
    • SEE ALSO
InMAP
Docs
Getting StartedPapersAPI Reference
Community
User ShowcaseStack Overflow
More
BlogGitHubStar
Copyright © 2023 the InMAP authors.