Changeset 7685


Ignore:
Timestamp:
03/24/11 14:51:05 (14 years ago)
Author:
jschierm
Message:

KMLMeshWritex.cpp: hard-code target campaign descriptor (for now).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/modules/KMLMeshWritex/KMLMeshWritex.cpp

    r7669 r7685  
    239239
    240240        kfold=new KML_Folder();
    241     sprintf(kfold->name      ,"Mesh");
     241//      sprintf(kfold->name      ,"Mesh");
     242        sprintf(kfold->name      ,"ISSM Targets");
    242243        kfold->visibility=1;
    243         sprintf(kfold->descript  ,"Elements=%d, Grids=%d",melem,mncon);
     244//      sprintf(kfold->descript  ,"Elements=%d, Grids=%d",melem,mncon);
     245        sprintf(kfold->descript  ,"campaign{\n");
     246        strcat(kfold->descript  ,"  evaluator ClaspTargetEvaluator;\n");
     247        strcat(kfold->descript  ,"  spacecraft airplane ClaspSpacecraft(\n");
     248        strcat(kfold->descript  ,"    dutyCycleDuration=0,\n");
     249        strcat(kfold->descript  ,"    dutyCycleOnDuration=0,\n");
     250        strcat(kfold->descript  ,"    memoryInit=15000,\n");
     251        strcat(kfold->descript  ,"    memoryLimit=40000000,\n");
     252        strcat(kfold->descript  ,"    maxDataCollectionRate=27,\n");
     253        strcat(kfold->descript  ,"    maxDataDownlinkRate=10);\n");
     254        strcat(kfold->descript  ,"\n");
     255        strcat(kfold->descript  ,"  //sensor names\n");
     256        strcat(kfold->descript  ,"  sensor qqp_swath = 2,102,1002,1102;\n");
     257        strcat(kfold->descript  ,"\n");
     258        strcat(kfold->descript  ,"  //sensor ids to modes\n");
     259        strcat(kfold->descript  ,"  low_bandwidth_single_pol = 2,102,1002,1102;\n");
     260        strcat(kfold->descript  ,"  single_pol = 2,102,1002,1102;\n");
     261        strcat(kfold->descript  ,"  dual_pol = 2,102,1002,1102;\n");
     262        strcat(kfold->descript  ,"  quad_pol = 2,102,1002,1102;\n");
     263        strcat(kfold->descript  ,"\n");
     264        strcat(kfold->descript  ,"  //LRAD\n");
     265        strcat(kfold->descript  ,"  //Note all targets are \"ascending right\"-- i.e. mode=2\n");
     266        strcat(kfold->descript  ,"  left = 1002,1102;\n");
     267        strcat(kfold->descript  ,"  right = 2,102;\n");
     268        strcat(kfold->descript  ,"  ascending = 2,1002;\n");
     269        strcat(kfold->descript  ,"  descending = 102,1102;\n");
     270        strcat(kfold->descript  ,"\n");
     271        strcat(kfold->descript  ,"  //data rates\n");
     272        strcat(kfold->descript  ,"  low_bandwidth_single_pol datarate = 0.896;\n");
     273        strcat(kfold->descript  ,"  single_pol datarate = 4.214;\n");
     274        strcat(kfold->descript  ,"  dual_pol datarate = 8.428;\n");
     275        strcat(kfold->descript  ,"  quad_pol datarate = 16.856;\n");
     276        strcat(kfold->descript  ,"\n");
     277        strcat(kfold->descript  ,"  //mode domination relationships\n");
     278        strcat(kfold->descript  ,"  quad_pol dominates low_bandwidth_single_pol;\n");
     279        strcat(kfold->descript  ,"  quad_pol dominates single_pol;\n");
     280        strcat(kfold->descript  ,"  quad_pol dominates dual_pol;\n");
     281        strcat(kfold->descript  ,"  dual_pol dominates low_bandwidth_single_pol;\n");
     282        strcat(kfold->descript  ,"  dual_pol dominates single_pol;\n");
     283        strcat(kfold->descript  ,"  single_pol dominates low_bandwidth_single_pol;\n");
     284        strcat(kfold->descript  ,"\n");
     285        strcat(kfold->descript  ,"  //sensor styles\n");
     286        strcat(kfold->descript  ,"  2 0xff00ffff 0xff000000;\n");
     287        strcat(kfold->descript  ,"  102 0x7f00ffff 0xff00ffff;\n");
     288        strcat(kfold->descript  ,"  1002 0xffffff00 0xffffff00;\n");
     289        strcat(kfold->descript  ,"  1102 0x7fffff00 0xffffff00;\n");
     290        strcat(kfold->descript  ,"\n");
     291        strcat(kfold->descript  ,"  //discipline styles\n");
     292        strcat(kfold->descript  ,"  deformation 0xff006090 0xff006090 0xff0000ff 0xff1010ff;\n");
     293        strcat(kfold->descript  ,"  vegetation  0xff00ff00 0xff00ff00 0xff0000ff 0xff0020ff;\n");
     294        strcat(kfold->descript  ,"  ice         0xffff0000 0xffff0000 0xff0000ff 0xff2000ff;\n");
     295        strcat(kfold->descript  ,"}");
    244296
    245297        if (edata)
Note: See TracChangeset for help on using the changeset viewer.