Changeset 42345
- Timestamp:
- Jan 31, 2023, 5:15:33 PM (3 years ago)
- Location:
- branches/eam_branches/ipp-20220316
- Files:
-
- 58 edited
-
Ohana/src/addstar/src/sky_tessalation.c (modified) (12 diffs)
-
Ohana/src/delstar/src/delete_duplicate_images.c (modified) (3 diffs)
-
Ohana/src/delstar/src/delete_fix_LAP.c (modified) (5 diffs)
-
Ohana/src/delstar/src/delete_fix_LAP_edges.c (modified) (2 diffs)
-
Ohana/src/delstar/src/delete_fix_LAP_edges_delete.c (modified) (3 diffs)
-
Ohana/src/delstar/src/delete_photcodes.c (modified) (3 diffs)
-
Ohana/src/dvomerge/src/dvorepairFixStackIDs.c (modified) (1 diff)
-
Ohana/src/dvomerge/src/dvorepairFixWarpIDs.c (modified) (1 diff)
-
Ohana/src/dvomerge/src/dvosecfilt_catalogs.c (modified) (3 diffs)
-
Ohana/src/dvopsps/src/insert_FGshape_dvopsps.c (modified) (2 diffs)
-
Ohana/src/dvopsps/src/insert_FWobjects_dvopsps.c (modified) (2 diffs)
-
Ohana/src/elixir/src/ConfigInit.c (modified) (1 diff)
-
Ohana/src/elixir/src/Photcodes.c (modified) (1 diff)
-
Ohana/src/fakeastro/src/AstromOffsetMapOps.c (modified) (1 diff)
-
Ohana/src/fakeastro/src/ConfigInit.c (modified) (2 diffs)
-
Ohana/src/fakeastro/src/save_fakestars.c (modified) (1 diff)
-
Ohana/src/gastro/src/getusno.c (modified) (4 diffs)
-
Ohana/src/gastro2/src/getusno.c (modified) (4 diffs)
-
Ohana/src/gastro2/src/getusnob.c (modified) (4 diffs)
-
Ohana/src/getstar/src/ConfigInit.c (modified) (2 diffs)
-
Ohana/src/getstar/src/ConfigInit_coords.c (modified) (1 diff)
-
Ohana/src/getstar/src/ConfigInit_extract.c (modified) (1 diff)
-
Ohana/src/getstar/src/ConfigInit_overlaps.c (modified) (1 diff)
-
Ohana/src/imregister/base/ConfigInit.c (modified) (6 diffs)
-
Ohana/src/imregister/detrend/entry.c (modified) (4 diffs)
-
Ohana/src/imregister/imreg/args.imregister.c (modified) (1 diff)
-
Ohana/src/imregister/include/imregister.h (modified) (2 diffs)
-
Ohana/src/imregister/photreg/getImageData.c (modified) (1 diff)
-
Ohana/src/imregister/src/photcode-table.c (modified) (2 diffs)
-
Ohana/src/libfits/header/F_create_H.c (modified) (1 diff)
-
Ohana/src/libfits/matrix/F_compress_M.c (modified) (2 diffs)
-
Ohana/src/libfits/matrix/F_uncompress_M.c (modified) (2 diffs)
-
Ohana/src/mosastro/src/getstone.c (modified) (1 diff)
-
Ohana/src/mosastro/src/getusno.c (modified) (4 diffs)
-
Ohana/src/mosastro/src/getusnob.c (modified) (4 diffs)
-
Ohana/src/nightd/include/nightd.h (modified) (1 diff)
-
Ohana/src/nightd/src/GetStatus.c (modified) (4 diffs)
-
Ohana/src/opihi/cmd.basic/list.c (modified) (16 diffs)
-
Ohana/src/opihi/cmd.data/cursor.c (modified) (1 diff)
-
Ohana/src/opihi/dvo/coordmosaic.c (modified) (2 diffs)
-
Ohana/src/opihi/dvo/elixir.c (modified) (2 diffs)
-
Ohana/src/opihi/pantasks/controller_status.c (modified) (1 diff)
-
Ohana/src/photdbc/src/ConfigInit.c (modified) (3 diffs)
-
Ohana/src/photdbc/src/copy_images.c (modified) (2 diffs)
-
Ohana/src/relastro/src/ConfigInit.c (modified) (2 diffs)
-
Ohana/src/relastro/src/FrameCorrection.c (modified) (3 diffs)
-
Ohana/src/relastro/src/ICRF.c (modified) (1 diff)
-
Ohana/src/relastro/src/assign_images.c (modified) (1 diff)
-
Ohana/src/relastro/src/bcatalog.c (modified) (2 diffs)
-
Ohana/src/relastro/src/launch_region_hosts.c (modified) (2 diffs)
-
Ohana/src/relastro/src/load_images.c (modified) (2 diffs)
-
Ohana/src/relastro/src/relastro_parallel_images.c (modified) (1 diff)
-
Ohana/src/relastro/src/share_images_pos.c (modified) (2 diffs)
-
Ohana/src/relphot/src/save_images.c (modified) (2 diffs)
-
Ohana/src/tools/src/fits_to_mysql.c (modified) (6 diffs)
-
Ohana/src/uniphot/src/ConfigInit.c (modified) (1 diff)
-
Ohana/src/uniphot/src/load_zpt_table.c (modified) (1 diff)
-
psconfig/tagsets/ipp-ubuntu.perl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20220316/Ohana/src/addstar/src/sky_tessalation.c
r40528 r42345 52 52 Ntotal = Nbase*pow(4.0, level); 53 53 Ndigit = (int)(log10(Ntotal)) + 1 ; 54 snprintf (format, 16, "skytri.%%0%dd", Ndigit);54 snprintf_nowarn (format, 16, "skytri.%%0%dd", Ndigit); 55 55 56 56 // to what depth do we need to go to have only Nmax foreach subcell? … … 90 90 for (j = 0; j < Ntriangles; j++) { 91 91 sky_triangle_to_image (&image[j], &tri[j]); 92 snprintf (image[j].name, DVO_IMAGE_NAME_LEN, format, Nout);92 snprintf_nowarn (image[j].name, DVO_IMAGE_NAME_LEN, format, Nout); 93 93 Nout++; 94 94 } … … 128 128 Ntotal = Nbase*pow(4.0, level); 129 129 Ndigit = (int)(log10(Ntotal)) + 1 ; 130 snprintf (format, 16, "skycell.%%0%dd", Ndigit);130 snprintf_nowarn (format, 16, "skycell.%%0%dd", Ndigit); 131 131 132 132 // to what depth do we need to go to have only Nmax foreach subcell? … … 173 173 if (!strcmp(rectangle[j].coords.ctype, "DROP")) continue; 174 174 memcpy (&subset[Nsubset], &rectangle[j], sizeof(SkyRectangle)); 175 snprintf (subset[Nsubset].name, DVO_IMAGE_NAME_LEN, format, Nname);175 snprintf_nowarn (subset[Nsubset].name, DVO_IMAGE_NAME_LEN, format, Nname); 176 176 Nname++; 177 177 Nsubset++; … … 254 254 for (double dec = -90.0; dec < +90.01; dec += CELLSIZE, Ndec ++) { 255 255 256 snprintf (format, 32, "skycell.%%03d.%03d", Ndec);256 snprintf_nowarn (format, 32, "skycell.%%03d.%03d", Ndec); 257 257 258 258 int Nring; … … 310 310 Ntotal = 41254.2 / (dDEC*dDEC); 311 311 Ndigit = (int)(log10(Ntotal)) + 1 ; 312 snprintf (format, 16, "skycell.%%0%dd", Ndigit);312 snprintf_nowarn (format, 16, "skycell.%%0%dd", Ndigit); 313 313 314 314 // generate the a collection of rectangles for each ring … … 367 367 Ntotal = 41254.2 / (dDEC*dDEC); 368 368 Ndigit = (int)(log10(Ntotal)) + 1 ; 369 snprintf (format, 16, "skycell.%%0%dd", Ndigit);369 snprintf_nowarn (format, 16, "skycell.%%0%dd", Ndigit); 370 370 371 371 double d2r = M_PI / 180; // is RAD_DEG … … 716 716 // CFIS uses names with centers based on ra,dec 717 717 // format = skycell.%03d.%03d 718 snprintf (ring[i].name, DVO_IMAGE_NAME_LEN, format, i);718 snprintf_nowarn (ring[i].name, DVO_IMAGE_NAME_LEN, format, i); 719 719 } 720 720 … … 826 826 ring[i].photcode = 1; // this needs to be set more sensibly 827 827 828 snprintf (ring[i].name, DVO_IMAGE_NAME_LEN, format, Nname);828 snprintf_nowarn (ring[i].name, DVO_IMAGE_NAME_LEN, format, Nname); 829 829 Nname++; 830 830 … … 897 897 ring[N].photcode = 1; // this needs to be set more sensibly 898 898 899 snprintf (ring[N].name, DVO_IMAGE_NAME_LEN, format, Nname);899 snprintf_nowarn (ring[N].name, DVO_IMAGE_NAME_LEN, format, Nname); 900 900 Nname++; 901 901 } … … 927 927 if (Nx * Ny > 1) { 928 928 Ndigit = (int)(log10(Nx*Ny)) + 1 ; 929 snprintf (format, 80, "%s.%%0%dd", input[0].name, Ndigit);929 snprintf_nowarn (format, 80, "%s.%%0%dd", input[0].name, Ndigit); 930 930 } else { 931 snprintf (format, 80, "%s", input[0].name);931 snprintf_nowarn (format, 80, "%s", input[0].name); 932 932 } 933 933 … … 944 944 945 945 if (Nx + Ny > 1) { 946 snprintf (output[N].name, DVO_IMAGE_NAME_LEN, format, N);946 snprintf_nowarn (output[N].name, DVO_IMAGE_NAME_LEN, format, N); 947 947 } else { 948 snprintf (output[N].name, DVO_IMAGE_NAME_LEN, "%s", format);948 snprintf_nowarn (output[N].name, DVO_IMAGE_NAME_LEN, "%s", format); 949 949 } 950 950 -
branches/eam_branches/ipp-20220316/Ohana/src/delstar/src/delete_duplicate_images.c
r39457 r42345 108 108 // set up the basic catalog info 109 109 char hostfile[1024]; 110 snprintf (hostfile, 1024, "%s/%s.cpt", HOSTDIR, skylist[0].regions[i]->name);110 snprintf_nowarn (hostfile, 1024, "%s/%s.cpt", HOSTDIR, skylist[0].regions[i]->name); 111 111 112 112 dvo_catalog_init (&catalog, TRUE); … … 148 148 // write out the subset table of image information 149 149 char imageFile[512]; 150 snprintf (imageFile, 512, "%s/ImageIDs.tmp.fits", CATDIR);150 snprintf_nowarn (imageFile, 512, "%s/ImageIDs.tmp.fits", CATDIR); 151 151 152 152 if (!ImageIDSave (imageFile, imageID)) { … … 173 173 174 174 char command[1024]; 175 snprintf (command, 1024, "delstar_client -hostID %d -D CATDIR %s -hostdir %s -region %f %f %f %f -dup-images",175 snprintf_nowarn (command, 1024, "delstar_client -hostID %d -D CATDIR %s -hostdir %s -region %f %f %f %f -dup-images", 176 176 table->hosts[i].hostID, CATDIR, table->hosts[i].pathname, 177 177 UserPatch.Rmin, UserPatch.Rmax, UserPatch.Dmin, UserPatch.Dmax); 178 178 179 179 char tmpline[1024]; 180 if (VERBOSE) { snprintf (tmpline, 1024, "%s -v", command); strcpy (command, tmpline); }181 if (VERBOSE2) { snprintf (tmpline, 1024, "%s -vv", command); strcpy (command, tmpline); }180 if (VERBOSE) { snprintf_nowarn (tmpline, 1024, "%s -v", command); strcpy (command, tmpline); } 181 if (VERBOSE2) { snprintf_nowarn (tmpline, 1024, "%s -vv", command); strcpy (command, tmpline); } 182 182 183 183 fprintf (stderr, "command: %s\n", command); -
branches/eam_branches/ipp-20220316/Ohana/src/delstar/src/delete_fix_LAP.c
r40549 r42345 40 40 // set up the basic catalog info 41 41 char hostfile[1024]; 42 snprintf (hostfile, 1024, "%s/%s.cpt", HOSTDIR, skylist[0].regions[i]->name);42 snprintf_nowarn (hostfile, 1024, "%s/%s.cpt", HOSTDIR, skylist[0].regions[i]->name); 43 43 44 44 dvo_catalog_init (&catalog, TRUE); … … 92 92 // write out the subset table of image information 93 93 char imageFile[512]; 94 snprintf (imageFile, 512, "%s/delstar.fixLAP.%s.dat", CATDIR, uniquer);94 snprintf_nowarn (imageFile, 512, "%s/delstar.fixLAP.%s.dat", CATDIR, uniquer); 95 95 96 96 if (!ImageSubsetSave (imageFile, image, Nimage)) { … … 132 132 133 133 ALLOCATE (table->hosts[i].results, char, 1024); 134 snprintf (table->hosts[i].results, 1024, "%s/delstar.fixLAP.imstats.%s.dat", table->hosts[i].pathname, uniquer);134 snprintf_nowarn (table->hosts[i].results, 1024, "%s/delstar.fixLAP.imstats.%s.dat", table->hosts[i].pathname, uniquer); 135 135 136 136 char command[1024]; 137 snprintf (command, 1024, "delstar_client -hostID %d -D CATDIR %s -hostdir %s -images %s -imstats %s -region %f %f %f %f -fix-LAP",137 snprintf_nowarn (command, 1024, "delstar_client -hostID %d -D CATDIR %s -hostdir %s -images %s -imstats %s -region %f %f %f %f -fix-LAP", 138 138 table->hosts[i].hostID, CATDIR, table->hosts[i].pathname, imageFile, table->hosts[i].results, 139 139 UserPatch.Rmin, UserPatch.Rmax, UserPatch.Dmin, UserPatch.Dmax); 140 140 141 141 char tmpline[1024]; 142 if (VERBOSE) { snprintf (tmpline, 1024, "%s -v", command); strcpy (command, tmpline); }143 if (VERBOSE2) { snprintf (tmpline, 1024, "%s -vv", command); strcpy (command, tmpline); }144 if (SINGLE_CPT) { snprintf (tmpline, 1024, "%s -cpt %s", command, SINGLE_CPT); strcpy (command, tmpline); }145 if (UPDATE) { snprintf (tmpline, 1024, "%s -update", command); strcpy (command, tmpline); }142 if (VERBOSE) { snprintf_nowarn (tmpline, 1024, "%s -v", command); strcpy (command, tmpline); } 143 if (VERBOSE2) { snprintf_nowarn (tmpline, 1024, "%s -vv", command); strcpy (command, tmpline); } 144 if (SINGLE_CPT) { snprintf_nowarn (tmpline, 1024, "%s -cpt %s", command, SINGLE_CPT); strcpy (command, tmpline); } 145 if (UPDATE) { snprintf_nowarn (tmpline, 1024, "%s -update", command); strcpy (command, tmpline); } 146 146 147 147 fprintf (stderr, "command: %s\n", command); … … 210 210 // write out the subset table of image information 211 211 char imageFile[512]; 212 snprintf (imageFile, 512, "%s/delstar.fixLAP.%s.dat", CATDIR, UNIQUER);212 snprintf_nowarn (imageFile, 512, "%s/delstar.fixLAP.%s.dat", CATDIR, UNIQUER); 213 213 214 214 // load the list of hosts … … 228 228 229 229 ALLOCATE (table->hosts[i].results, char, 1024); 230 snprintf (table->hosts[i].results, 1024, "%s/delstar.fixLAP.imstats.%s.dat", table->hosts[i].pathname, UNIQUER);230 snprintf_nowarn (table->hosts[i].results, 1024, "%s/delstar.fixLAP.imstats.%s.dat", table->hosts[i].pathname, UNIQUER); 231 231 232 232 fprintf (stderr, "read %s\n", table->hosts[i].results); -
branches/eam_branches/ipp-20220316/Ohana/src/delstar/src/delete_fix_LAP_edges.c
r40549 r42345 48 48 // set up the basic catalog info 49 49 char hostfile[1024]; 50 snprintf (hostfile, 1024, "%s/%s.cpt", HOSTDIR, skylist[0].regions[i]->name);50 snprintf_nowarn (hostfile, 1024, "%s/%s.cpt", HOSTDIR, skylist[0].regions[i]->name); 51 51 52 52 dvo_catalog_init (&catalog, TRUE); … … 122 122 123 123 ALLOCATE (table->hosts[i].results, char, 1024); 124 snprintf (table->hosts[i].results, 1024, "%s/delstar.fixLAPedges.measures.%s.dat", table->hosts[i].pathname, uniquer);124 snprintf_nowarn (table->hosts[i].results, 1024, "%s/delstar.fixLAPedges.measures.%s.dat", table->hosts[i].pathname, uniquer); 125 125 126 126 char command[1024]; 127 snprintf (command, 1024, "delstar_client -hostID %d -D CATDIR %s -hostdir %s -measures %s -region %f %f %f %f -fix-LAP-edges",127 snprintf_nowarn (command, 1024, "delstar_client -hostID %d -D CATDIR %s -hostdir %s -measures %s -region %f %f %f %f -fix-LAP-edges", 128 128 table->hosts[i].hostID, CATDIR, table->hosts[i].pathname, table->hosts[i].results, 129 129 UserPatch.Rmin, UserPatch.Rmax, UserPatch.Dmin, UserPatch.Dmax); 130 130 131 131 char tmpline[1024]; 132 if (VERBOSE) { snprintf (tmpline, 1024, "%s -v", command); strcpy (command, tmpline); }133 if (VERBOSE2) { snprintf (tmpline, 1024, "%s -vv", command); strcpy (command, tmpline); }134 if (SINGLE_CPT) { snprintf (tmpline, 1024, "%s -cpt %s", command, SINGLE_CPT); strcpy (command, tmpline); }135 // if (UPDATE) { snprintf (tmpline, 1024, "%s -update", command); strcpy (command, tmpline); }132 if (VERBOSE) { snprintf_nowarn (tmpline, 1024, "%s -v", command); strcpy (command, tmpline); } 133 if (VERBOSE2) { snprintf_nowarn (tmpline, 1024, "%s -vv", command); strcpy (command, tmpline); } 134 if (SINGLE_CPT) { snprintf_nowarn (tmpline, 1024, "%s -cpt %s", command, SINGLE_CPT); strcpy (command, tmpline); } 135 // if (UPDATE) { snprintf_nowarn (tmpline, 1024, "%s -update", command); strcpy (command, tmpline); } 136 136 137 137 fprintf (stderr, "command: %s\n", command); -
branches/eam_branches/ipp-20220316/Ohana/src/delstar/src/delete_fix_LAP_edges_delete.c
r40549 r42345 88 88 // set up the basic catalog info 89 89 char hostfile[1024]; 90 snprintf (hostfile, 1024, "%s/%s.cpt", HOSTDIR, skylist[0].regions[i]->name);90 snprintf_nowarn (hostfile, 1024, "%s/%s.cpt", HOSTDIR, skylist[0].regions[i]->name); 91 91 92 92 dvo_catalog_init (&catalog, TRUE); … … 180 180 181 181 // ALLOCATE (table->hosts[i].results, char, 1024); 182 // snprintf (table->hosts[i].results, 1024, "%s/delstar.fixLAPedges.measures.%s.dat", table->hosts[i].pathname, uniquer);182 // snprintf_nowarn (table->hosts[i].results, 1024, "%s/delstar.fixLAPedges.measures.%s.dat", table->hosts[i].pathname, uniquer); 183 183 184 184 char command[1024]; 185 snprintf (command, 1024, "delstar_client -hostID %d -D CATDIR %s -hostdir %s -region %f %f %f %f -fix-LAP-edges-delete %s",185 snprintf_nowarn (command, 1024, "delstar_client -hostID %d -D CATDIR %s -hostdir %s -region %f %f %f %f -fix-LAP-edges-delete %s", 186 186 table->hosts[i].hostID, CATDIR, table->hosts[i].pathname, 187 187 UserPatch.Rmin, UserPatch.Rmax, UserPatch.Dmin, UserPatch.Dmax, … … 189 189 190 190 char tmpline[1024]; 191 if (VERBOSE) { snprintf (tmpline, 1024, "%s -v", command); strcpy (command, tmpline); }192 if (VERBOSE2) { snprintf (tmpline, 1024, "%s -vv", command); strcpy (command, tmpline); }193 if (SINGLE_CPT) { snprintf (tmpline, 1024, "%s -cpt %s", command, SINGLE_CPT); strcpy (command, tmpline); }194 if (UPDATE) { snprintf (tmpline, 1024, "%s -update", command); strcpy (command, tmpline); }191 if (VERBOSE) { snprintf_nowarn (tmpline, 1024, "%s -v", command); strcpy (command, tmpline); } 192 if (VERBOSE2) { snprintf_nowarn (tmpline, 1024, "%s -vv", command); strcpy (command, tmpline); } 193 if (SINGLE_CPT) { snprintf_nowarn (tmpline, 1024, "%s -cpt %s", command, SINGLE_CPT); strcpy (command, tmpline); } 194 if (UPDATE) { snprintf_nowarn (tmpline, 1024, "%s -update", command); strcpy (command, tmpline); } 195 195 196 196 fprintf (stderr, "command: %s\n", command); -
branches/eam_branches/ipp-20220316/Ohana/src/delstar/src/delete_photcodes.c
r38986 r42345 38 38 // set up the basic catalog info 39 39 char hostfile[1024]; 40 snprintf (hostfile, 1024, "%s/%s.cpt", HOSTDIR, skylist[0].regions[i]->name);40 snprintf_nowarn (hostfile, 1024, "%s/%s.cpt", HOSTDIR, skylist[0].regions[i]->name); 41 41 42 42 dvo_catalog_init (&catalog, TRUE); … … 94 94 95 95 char command[1024]; 96 snprintf (command, 1024, "delstar_client -hostID %d -D CATDIR %s -hostdir %s -region %f %f %f %f -photcodes %s",96 snprintf_nowarn (command, 1024, "delstar_client -hostID %d -D CATDIR %s -hostdir %s -region %f %f %f %f -photcodes %s", 97 97 table->hosts[i].hostID, CATDIR, table->hosts[i].pathname, 98 98 UserPatch.Rmin, UserPatch.Rmax, UserPatch.Dmin, UserPatch.Dmax, … … 100 100 101 101 char tmpline[1024]; 102 if (VERBOSE) { snprintf (tmpline, 1024, "%s -v", command); strcpy (command, tmpline); }103 if (VERBOSE2) { snprintf (tmpline, 1024, "%s -vv", command); strcpy (command, tmpline); }102 if (VERBOSE) { snprintf_nowarn (tmpline, 1024, "%s -v", command); strcpy (command, tmpline); } 103 if (VERBOSE2) { snprintf_nowarn (tmpline, 1024, "%s -vv", command); strcpy (command, tmpline); } 104 104 105 105 fprintf (stderr, "command: %s\n", command); -
branches/eam_branches/ipp-20220316/Ohana/src/dvomerge/src/dvorepairFixStackIDs.c
r39336 r42345 33 33 34 34 while (fscanf (f, "%s", catdir) != EOF) { 35 snprintf (imageFilenameOld, DVO_MAX_PATH, "%s/Images.dat", catdir);36 snprintf (imageFilenameNew, DVO_MAX_PATH, "%s/Images.dat.fixed", catdir);35 snprintf_nowarn (imageFilenameOld, DVO_MAX_PATH, "%s/Images.dat", catdir); 36 snprintf_nowarn (imageFilenameNew, DVO_MAX_PATH, "%s/Images.dat.fixed", catdir); 37 37 38 38 if ((image = LoadImages (&db, imageFilenameOld, &Nimage)) == NULL) { -
branches/eam_branches/ipp-20220316/Ohana/src/dvomerge/src/dvorepairFixWarpIDs.c
r39329 r42345 46 46 47 47 while (fscanf (f, "%s", catdir) != EOF) { 48 snprintf (imageFilenameOld, DVO_MAX_PATH, "%s/Images.dat", catdir);49 snprintf (imageFilenameNew, DVO_MAX_PATH, "%s/Images.dat.fixed", catdir);48 snprintf_nowarn (imageFilenameOld, DVO_MAX_PATH, "%s/Images.dat", catdir); 49 snprintf_nowarn (imageFilenameNew, DVO_MAX_PATH, "%s/Images.dat.fixed", catdir); 50 50 51 51 if ((image = LoadImages (&db, imageFilenameOld, &Nimage)) == NULL) { -
branches/eam_branches/ipp-20220316/Ohana/src/dvomerge/src/dvosecfilt_catalogs.c
r40378 r42345 34 34 35 35 char hostfile[1024]; 36 snprintf (hostfile, 1024, "%s/%s.cpt", HOSTDIR, skylist->regions[i]->name);36 snprintf_nowarn (hostfile, 1024, "%s/%s.cpt", HOSTDIR, skylist->regions[i]->name); 37 37 38 38 dvo_catalog_init (&catalog, TRUE); … … 116 116 // options / arguments that can affect relastro_client -update-objects: 117 117 char command[DVO_MAX_PATH]; 118 snprintf (command, DVO_MAX_PATH, "dvosecfilt_client %s %d -hostID %d -hostdir %s -region %f %f %f %f",118 snprintf_nowarn (command, DVO_MAX_PATH, "dvosecfilt_client %s %d -hostID %d -hostdir %s -region %f %f %f %f", 119 119 abscatdir, Nsecfilt, table->hosts[i].hostID, table->hosts[i].pathname, 120 120 UserPatch.Rmin, UserPatch.Rmax, UserPatch.Dmin, UserPatch.Dmax … … 122 122 123 123 char tmpline[DVO_MAX_PATH]; 124 if (VERBOSE) { snprintf (tmpline, DVO_MAX_PATH, "%s -v", command); strcpy (command, tmpline); }125 if (SINGLE_CPT) { snprintf (tmpline, DVO_MAX_PATH, "%s -cpt %s", command, SINGLE_CPT); strcpy (command, tmpline); }124 if (VERBOSE) { snprintf_nowarn (tmpline, DVO_MAX_PATH, "%s -v", command); strcpy (command, tmpline); } 125 if (SINGLE_CPT) { snprintf_nowarn (tmpline, DVO_MAX_PATH, "%s -cpt %s", command, SINGLE_CPT); strcpy (command, tmpline); } 126 126 127 127 fprintf (stderr, "command: %s\n", command); -
branches/eam_branches/ipp-20220316/Ohana/src/dvopsps/src/insert_FGshape_dvopsps.c
r39564 r42345 47 47 48 48 char localFilename[1024]; 49 snprintf (localFilename, 1024, "%s/%s.cpt", HOSTDIR, skylist->regions[i]->name);49 snprintf_nowarn (localFilename, 1024, "%s/%s.cpt", HOSTDIR, skylist->regions[i]->name); 50 50 51 51 // set up the basic catalog info … … 125 125 126 126 char command[1024]; 127 snprintf (command, 1024, "dvopsps_client forced_galaxy_shape -hostID %d -catdir %s -hostdir %s -region %f %f %f %f",127 snprintf_nowarn (command, 1024, "dvopsps_client forced_galaxy_shape -hostID %d -catdir %s -hostdir %s -region %f %f %f %f", 128 128 table->hosts[i].hostID, CATDIR, table->hosts[i].pathname, 129 129 UserPatch.Rmin, UserPatch.Rmax, UserPatch.Dmin, UserPatch.Dmax); 130 130 131 131 char tmpline[1024]; 132 snprintf (tmpline, 1024, "%s -dbhost %s", command, DATABASE_HOST); strcpy (command, tmpline);133 snprintf (tmpline, 1024, "%s -dbuser %s", command, DATABASE_USER); strcpy (command, tmpline);134 snprintf (tmpline, 1024, "%s -dbpass %s", command, DATABASE_PASS); strcpy (command, tmpline);135 snprintf (tmpline, 1024, "%s -dbname %s", command, DATABASE_NAME); strcpy (command, tmpline);132 snprintf_nowarn (tmpline, 1024, "%s -dbhost %s", command, DATABASE_HOST); strcpy (command, tmpline); 133 snprintf_nowarn (tmpline, 1024, "%s -dbuser %s", command, DATABASE_USER); strcpy (command, tmpline); 134 snprintf_nowarn (tmpline, 1024, "%s -dbpass %s", command, DATABASE_PASS); strcpy (command, tmpline); 135 snprintf_nowarn (tmpline, 1024, "%s -dbname %s", command, DATABASE_NAME); strcpy (command, tmpline); 136 136 137 if (VERBOSE) { snprintf (tmpline, 1024, "%s -v", command); strcpy (command, tmpline); }138 if (SINGLE_CPT) { snprintf (tmpline, 1024, "%s -cpt %s", command, SINGLE_CPT); strcpy (command, tmpline); }137 if (VERBOSE) { snprintf_nowarn (tmpline, 1024, "%s -v", command); strcpy (command, tmpline); } 138 if (SINGLE_CPT) { snprintf_nowarn (tmpline, 1024, "%s -cpt %s", command, SINGLE_CPT); strcpy (command, tmpline); } 139 139 140 140 fprintf (stderr, "command: %s\n", command); -
branches/eam_branches/ipp-20220316/Ohana/src/dvopsps/src/insert_FWobjects_dvopsps.c
r40291 r42345 47 47 48 48 char localFilename[1024]; 49 snprintf (localFilename, 1024, "%s/%s.cpt", HOSTDIR, skylist->regions[i]->name);49 snprintf_nowarn (localFilename, 1024, "%s/%s.cpt", HOSTDIR, skylist->regions[i]->name); 50 50 51 51 // set up the basic catalog info … … 126 126 127 127 char command[1024]; 128 snprintf (command, 1024, "dvopsps_client forced_warp_objects -hostID %d -catdir %s -hostdir %s -region %f %f %f %f",128 snprintf_nowarn (command, 1024, "dvopsps_client forced_warp_objects -hostID %d -catdir %s -hostdir %s -region %f %f %f %f", 129 129 table->hosts[i].hostID, CATDIR, table->hosts[i].pathname, 130 130 UserPatch.Rmin, UserPatch.Rmax, UserPatch.Dmin, UserPatch.Dmax); 131 131 132 132 char tmpline[1024]; 133 snprintf (tmpline, 1024, "%s -dbhost %s", command, DATABASE_HOST); strcpy (command, tmpline);134 snprintf (tmpline, 1024, "%s -dbuser %s", command, DATABASE_USER); strcpy (command, tmpline);135 snprintf (tmpline, 1024, "%s -dbpass %s", command, DATABASE_PASS); strcpy (command, tmpline);136 snprintf (tmpline, 1024, "%s -dbname %s", command, DATABASE_NAME); strcpy (command, tmpline);133 snprintf_nowarn (tmpline, 1024, "%s -dbhost %s", command, DATABASE_HOST); strcpy (command, tmpline); 134 snprintf_nowarn (tmpline, 1024, "%s -dbuser %s", command, DATABASE_USER); strcpy (command, tmpline); 135 snprintf_nowarn (tmpline, 1024, "%s -dbpass %s", command, DATABASE_PASS); strcpy (command, tmpline); 136 snprintf_nowarn (tmpline, 1024, "%s -dbname %s", command, DATABASE_NAME); strcpy (command, tmpline); 137 137 138 if (VERBOSE) { snprintf (tmpline, 1024, "%s -v", command); strcpy (command, tmpline); }139 if (TEST_MODE) { snprintf (tmpline, 1024, "%s -test-mode", command); strcpy (command, tmpline); }140 if (SINGLE_CPT) { snprintf (tmpline, 1024, "%s -cpt %s", command, SINGLE_CPT); strcpy (command, tmpline); }138 if (VERBOSE) { snprintf_nowarn (tmpline, 1024, "%s -v", command); strcpy (command, tmpline); } 139 if (TEST_MODE) { snprintf_nowarn (tmpline, 1024, "%s -test-mode", command); strcpy (command, tmpline); } 140 if (SINGLE_CPT) { snprintf_nowarn (tmpline, 1024, "%s -cpt %s", command, SINGLE_CPT); strcpy (command, tmpline); } 141 141 142 142 fprintf (stderr, "command: %s\n", command); -
branches/eam_branches/ipp-20220316/Ohana/src/elixir/src/ConfigInit.c
r16139 r42345 98 98 if (config == (char *) NULL) { 99 99 fprintf (stderr, "ERROR: can't find configuration file %s\n", file); 100 if (file != (char *) NULL) free (file); 100 // XXX note: the test below fools gcc into thinking file could be NUL 101 // even though the test above forces an exit if it is NULL. 102 // if (file != (char *) NULL) free (file); 101 103 Shutdown (1); 104 exit (2); 102 105 } 103 106 if (VERBOSE) fprintf (stderr, "loaded config file: %s\n", file); -
branches/eam_branches/ipp-20220316/Ohana/src/elixir/src/Photcodes.c
r42343 r42345 78 78 79 79 if (!strcasecmp (mode, "MEF")) { 80 s printf (fullname, "%s/%s.fits", path, name);80 snprintf_nowarn (fullname, 256, "%s/%s.fits", path, name); 81 81 } else { 82 s printf (fullname, "%s/%s/%s%s.fits", path, name, name, ccd);82 snprintf_nowarn (fullname, 256, "%s/%s/%s%s.fits", path, name, name, ccd); 83 83 } 84 84 -
branches/eam_branches/ipp-20220316/Ohana/src/fakeastro/src/AstromOffsetMapOps.c
r37807 r42345 6 6 7 7 char mapfile[DVO_MAX_PATH]; 8 snprintf (mapfile, DVO_MAX_PATH, "%s/AstroMap.fits", CATDIR);8 snprintf_nowarn (mapfile, DVO_MAX_PATH, "%s/AstroMap.fits", CATDIR); 9 9 AstromOffsetMapSave (table, mapfile); 10 10 -
branches/eam_branches/ipp-20220316/Ohana/src/fakeastro/src/ConfigInit.c
r39926 r42345 4 4 5 5 char *config, *file; 6 char CatdirPhotcodeFile[ 256];6 char CatdirPhotcodeFile[DVO_MAX_PATH]; 7 7 8 8 /*** load configuration info ***/ … … 90 90 91 91 /* update master photcode table if not defined */ 92 s printf (CatdirPhotcodeFile, "%s/Photcodes.dat", CATDIR_CHECK);92 snprintf_nowarn (CatdirPhotcodeFile, DVO_MAX_PATH, "%s/Photcodes.dat", CATDIR_CHECK); 93 93 if (!LoadPhotcodes (CatdirPhotcodeFile, MasterPhotcodeFile, TRUE)) { 94 94 fprintf (stderr, "error loading photcode table %s\n", CatdirPhotcodeFile); -
branches/eam_branches/ipp-20220316/Ohana/src/fakeastro/src/save_fakestars.c
r40549 r42345 18 18 // save to a unique filename 19 19 char filename[1024]; // CATDIR/tmpdir/starpar.PID.index.fits 20 snprintf (filename, 1024, "%s/tmpdir/starpar.%s.%05d.fits", CATDIR, uniquer, region->index);20 snprintf_nowarn (filename, 1024, "%s/tmpdir/starpar.%s.%05d.fits", CATDIR, uniquer, region->index); 21 21 22 22 // write the data to the given FITS file -
branches/eam_branches/ipp-20220316/Ohana/src/gastro/src/getusno.c
r27611 r42345 9 9 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 5, 5, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10}; 10 10 11 # define MY_MAX_PATH 256 12 11 13 USNOdata *getusno (USNOstats *usnostats, CatStats *catstats, int *Nusno) { 12 14 … … 15 17 float hours[100]; 16 18 int start[100], number[100], *buffer, *buf; 17 char filename[ 128], c;19 char filename[MY_MAX_PATH], c; 18 20 FILE *f; 19 21 double DEC1; … … 52 54 53 55 /* load accelerator file */ 54 s printf (filename, "%s/zone%04d.acc", CDROM, spd);56 snprintf_nowarn (filename, MY_MAX_PATH, "%s/zone%04d.acc", CDROM, spd); 55 57 fprintf (stderr, "reading from %s\n", filename); 56 58 f = fopen (filename, "r"); … … 82 84 83 85 /* open data file */ 84 s printf (filename, "%s/zone%04d.cat", CDROM, spd);86 snprintf_nowarn (filename, MY_MAX_PATH, "%s/zone%04d.cat", CDROM, spd); 85 87 fprintf (stderr, "reading from %s\n", filename); 86 88 f = fopen (filename, "r"); -
branches/eam_branches/ipp-20220316/Ohana/src/gastro2/src/getusno.c
r27435 r42345 9 9 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 5, 5, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10}; 10 10 11 # define MY_MAX_PATH 256 12 11 13 int getusno (CatStats *catstats, RefCatalog *Ref) { 12 14 … … 15 17 float hours[100]; 16 18 int start[100], number[100], *buffer, *buf; 17 char filename[ 128];19 char filename[MY_MAX_PATH]; 18 20 FILE *f; 19 21 double DEC1; … … 54 56 55 57 /* load accelerator file */ 56 s printf (filename, "%s/zone%04d.acc", USNO_A_DIR, spd);58 snprintf_nowarn (filename, MY_MAX_PATH, "%s/zone%04d.acc", USNO_A_DIR, spd); 57 59 fprintf (stderr, "reading from %s\n", filename); 58 60 f = fopen (filename, "r"); … … 77 79 78 80 /* open data file */ 79 s printf (filename, "%s/zone%04d.cat", USNO_A_DIR, spd);81 snprintf_nowarn (filename, MY_MAX_PATH, "%s/zone%04d.cat", USNO_A_DIR, spd); 80 82 fprintf (stderr, "reading from %s\n", filename); 81 83 f = fopen (filename, "r"); -
branches/eam_branches/ipp-20220316/Ohana/src/gastro2/src/getusnob.c
r34088 r42345 2 2 # define NBYTE 4 3 3 # define NELEM 20 4 5 # define MY_MAX_PATH 256 4 6 5 7 int getusnob (CatStats *catstats, RefCatalog *Ref, double epoch) { … … 9 11 float hours[100]; 10 12 int start[100], number[100], *buffer, *buf; 11 char filename[ 128];13 char filename[MY_MAX_PATH]; 12 14 FILE *f; 13 15 double DEC1; … … 42 44 43 45 /* load accelerator file */ 44 s printf (filename, "%s/%03d/b%04d.acc", USNO_B_DIR, (int)(spd/10), spd);46 snprintf_nowarn (filename, MY_MAX_PATH, "%s/%03d/b%04d.acc", USNO_B_DIR, (int)(spd/10), spd); 45 47 if (VERBOSE) fprintf (stderr, "reading from %s\n", filename); 46 48 f = fopen (filename, "r"); … … 65 67 66 68 /* open data file */ 67 s printf (filename, "%s/%03d/b%04d.cat", USNO_B_DIR, (int)(spd/10), spd);69 snprintf_nowarn (filename, MY_MAX_PATH, "%s/%03d/b%04d.cat", USNO_B_DIR, (int)(spd/10), spd); 68 70 if (VERBOSE) fprintf (stderr, "reading from %s\n", filename); 69 71 f = fopen (filename, "r"); -
branches/eam_branches/ipp-20220316/Ohana/src/getstar/src/ConfigInit.c
r34749 r42345 1 1 # include "getstar.h" 2 3 # define MY_MAX_PATH 256 2 4 3 5 int ConfigInit (int *argc, char **argv) { 4 6 5 7 char *config, *file; 6 char CatdirPhotcodeFile[ 256];8 char CatdirPhotcodeFile[MY_MAX_PATH]; 7 9 8 10 /*** load configuration info ***/ … … 31 33 32 34 /* XXX this does not yet write out the master photcode table */ 33 s printf (CatdirPhotcodeFile, "%s/Photcodes.dat", CATDIR);35 snprintf_nowarn (CatdirPhotcodeFile, MY_MAX_PATH, "%s/Photcodes.dat", CATDIR); 34 36 if (!LoadPhotcodes (CatdirPhotcodeFile, NULL, FALSE)) { 35 37 fprintf (stderr, "error loading photcode table %s\n", CatdirPhotcodeFile); -
branches/eam_branches/ipp-20220316/Ohana/src/getstar/src/ConfigInit_coords.c
r39998 r42345 25 25 SKY_TABLE[0] = 0; 26 26 } 27 s printf (ImageCat, "%s/Images.dat", CATDIR);27 snprintf_nowarn (ImageCat, 256, "%s/Images.dat", CATDIR); 28 28 29 29 /* used by parse_time to find time-related keywords */ -
branches/eam_branches/ipp-20220316/Ohana/src/getstar/src/ConfigInit_extract.c
r27435 r42345 25 25 SKY_TABLE[0] = 0; 26 26 } 27 s printf (ImageCat, "%s/Images.dat", CATDIR);27 snprintf_nowarn (ImageCat, 256, "%s/Images.dat", CATDIR); 28 28 29 29 if (*CATMODE == 0) strcpy (CATMODE, "RAW"); -
branches/eam_branches/ipp-20220316/Ohana/src/getstar/src/ConfigInit_overlaps.c
r41891 r42345 25 25 SKY_TABLE[0] = 0; 26 26 } 27 s printf (ImageCat, "%s/Images.dat", CATDIR);27 snprintf_nowarn (ImageCat, 256, "%s/Images.dat", CATDIR); 28 28 29 29 /* used by parse_time to find time-related keywords */ -
branches/eam_branches/ipp-20220316/Ohana/src/imregister/base/ConfigInit.c
r25757 r42345 6 6 7 7 int i, NDB; 8 char *config, *file, ElixirBase[80], catdir[ 256];9 char CatdirPhotcodeFile[ 256];10 char MasterPhotcodeFile[ 256];8 char *config, *file, ElixirBase[80], catdir[MY_MAX_PATH]; 9 char CatdirPhotcodeFile[MY_MAX_PATH]; 10 char MasterPhotcodeFile[MY_MAX_PATH]; 11 11 12 12 /*** load configuration info ***/ … … 28 28 WarnConfig (config, "CATDIR", "%s", 0, catdir); 29 29 WarnConfig (config, "PHOTCODE_FILE", "%s", 0, MasterPhotcodeFile); 30 s printf (ImPhotDB, "%s/Images.dat", catdir);30 snprintf_nowarn (ImPhotDB, MY_MAX_PATH, "%s/Images.dat", catdir); 31 31 32 32 /* small text databases: filters, camera defs */ … … 75 75 76 76 WarnConfig (config, "imstats", "%s", 0, ElixirBase); 77 s printf (ImstatFifo, "%s.photcode", ElixirBase);77 snprintf_nowarn (ImstatFifo, MY_MAX_PATH, "%s.photcode", ElixirBase); 78 78 WarnConfig (config, "ptolemy", "%s", 0, ElixirBase); 79 s printf (PtolemyFifo, "%s.photcode", ElixirBase);79 snprintf_nowarn (PtolemyFifo, MY_MAX_PATH, "%s.photcode", ElixirBase); 80 80 81 81 if (!ScanConfig (config, "CONNECT", "%s", 0, CONNECT)) { 82 s printf (CONNECT, "/usr/bin/rsh");82 snprintf_nowarn (CONNECT, 64, "/usr/bin/rsh"); 83 83 } 84 84 … … 87 87 NDetrendAltDB = 0; 88 88 ALLOCATE (DetrendAltDB, char *, NDB); 89 ALLOCATE (DetrendAltDB[NDetrendAltDB], char, 256);89 ALLOCATE (DetrendAltDB[NDetrendAltDB], char, MY_MAX_PATH); 90 90 for (i = 1; ScanConfig (config, "DETREND_ALT_DB", "%s", i, DetrendAltDB[NDetrendAltDB]); i++) { 91 91 NDetrendAltDB ++; … … 94 94 REALLOCATE (DetrendAltDB, char *, NDB); 95 95 } 96 ALLOCATE (DetrendAltDB[NDetrendAltDB], char, 256);96 ALLOCATE (DetrendAltDB[NDetrendAltDB], char, MY_MAX_PATH); 97 97 } 98 98 free (DetrendAltDB[NDetrendAltDB]); … … 104 104 105 105 /* XXX this does not yet write out the master photcode table */ 106 s printf (CatdirPhotcodeFile, "%s/Photcodes.dat", catdir);106 snprintf_nowarn (CatdirPhotcodeFile, MY_MAX_PATH, "%s/Photcodes.dat", catdir); 107 107 if (!LoadPhotcodes (CatdirPhotcodeFile, MasterPhotcodeFile, TRUE)) { 108 108 fprintf (stderr, "error loading photcode table %s or master file %s\n", CatdirPhotcodeFile, MasterPhotcodeFile); -
branches/eam_branches/ipp-20220316/Ohana/src/imregister/detrend/entry.c
r6674 r42345 31 31 int status; 32 32 int found, Ntry, filestate; 33 char path[256], fullpath[256], filename[256], rootname[256], fullname[256], line[512]; 33 char path[MY_MAX_PATH], fullpath[MY_MAX_PATH], filename[MY_MAX_PATH]; 34 char rootname[MY_MAX_PATH], fullname[MY_MAX_PATH], line[512]; 34 35 char *dBPath; 35 36 char *filter_basename; … … 41 42 42 43 if (newdata[0].type == T_FLAT) { 43 s printf (path, "%s/%s", get_type_name(newdata[0].type), filter_basename);44 snprintf_nowarn (path, MY_MAX_PATH, "%s/%s", get_type_name(newdata[0].type), filter_basename); 44 45 } else { 45 s printf (path, "%s", get_type_name(newdata[0].type));46 snprintf_nowarn (path, MY_MAX_PATH, "%s", get_type_name(newdata[0].type)); 46 47 } 47 s printf (fullpath, "%s/%s", dBPath, path);48 snprintf_nowarn (fullpath, MY_MAX_PATH, "%s/%s", dBPath, path); 48 49 49 50 status = stat (fullpath, &statbuf); … … 65 66 case T_BIAS: 66 67 case T_MASK: 67 s printf (rootname, "%s.%s.%d.%02d", ID, get_type_name(newdata[0].type), (int)newdata[0].exptime, newdata[0].ccd);68 snprintf_nowarn (rootname, MY_MAX_PATH, "%s.%s.%d.%02d", ID, get_type_name(newdata[0].type), (int)newdata[0].exptime, newdata[0].ccd); 68 69 break; 69 70 default: 70 s printf (rootname, "%s.%s.%s.%02d", ID, get_type_name(newdata[0].type), filter_basename, newdata[0].ccd);71 snprintf_nowarn (rootname, MY_MAX_PATH, "%s.%s.%s.%02d", ID, get_type_name(newdata[0].type), filter_basename, newdata[0].ccd); 71 72 } 72 73 … … 74 75 found = FALSE; 75 76 for (Ntry = 0; !found && (Ntry < 100); Ntry++) { 76 s printf (filename, "%s/%s.%02d.fits", path, rootname, Ntry);77 s printf (fullname, "%s/%s", dBPath, filename);77 snprintf_nowarn (filename, MY_MAX_PATH, "%s/%s.%02d.fits", path, rootname, Ntry); 78 snprintf_nowarn (fullname, MY_MAX_PATH, "%s/%s", dBPath, filename); 78 79 f = fsetlockfile (fullname, 2.0, LCK_XCLD, &filestate); 79 80 /* if there is an error, it may just mean file is locked. */ -
branches/eam_branches/ipp-20220316/Ohana/src/imregister/imreg/args.imregister.c
r2823 r42345 73 73 74 74 /* create db.log and db.bfr */ 75 s printf (TempDB, "%s.bfr", ImageDB);76 s printf (LogFile, "%s.log", ImageDB);75 snprintf_nowarn (TempDB, MY_MAX_PATH, "%s.bfr", ImageDB); 76 snprintf_nowarn (LogFile, MY_MAX_PATH, "%s.log", ImageDB); 77 77 78 78 /* check for daemon mode */ -
branches/eam_branches/ipp-20220316/Ohana/src/imregister/include/imregister.h
r27435 r42345 11 11 */ 12 12 13 char ImstatFifo[256]; 14 char PtolemyFifo[256]; 13 # define MY_MAX_PATH 256 15 14 16 char ImageDB[256]; 17 char DetrendDB[256]; 18 char PhotDB[256]; 19 char TransDB[256]; 20 char ImPhotDB[256]; 21 char TempDB[256]; 22 char LogFile[256]; 15 char ImstatFifo[MY_MAX_PATH]; 16 char PtolemyFifo[MY_MAX_PATH]; 17 18 char ImageDB[MY_MAX_PATH]; 19 char DetrendDB[MY_MAX_PATH]; 20 char PhotDB[MY_MAX_PATH]; 21 char TransDB[MY_MAX_PATH]; 22 char ImPhotDB[MY_MAX_PATH]; 23 char TempDB[MY_MAX_PATH]; 24 char LogFile[MY_MAX_PATH]; 23 25 char CONNECT[64]; 24 26 … … 26 28 char **DetrendAltDB; 27 29 28 char PhotCodeFile[ 256];29 char TempLogFile[ 256];30 char FilterList[ 256];31 char CameraConfig[ 256];32 char RecipeFile[ 256];30 char PhotCodeFile[MY_MAX_PATH]; 31 char TempLogFile[MY_MAX_PATH]; 32 char FilterList[MY_MAX_PATH]; 33 char CameraConfig[MY_MAX_PATH]; 34 char RecipeFile[MY_MAX_PATH]; 33 35 34 36 char DateKeyword[64]; -
branches/eam_branches/ipp-20220316/Ohana/src/imregister/photreg/getImageData.c
r12332 r42345 60 60 } 61 61 62 s printf (photcode, "%s.%s.%02d", detector, filter, ccd);62 snprintf_nowarn (photcode, 64, "%s.%s.%02d", detector, filter, ccd); 63 63 if (!(criteria.photcode = GetPhotcodeCodebyName (photcode))) { 64 64 fprintf (stderr, "ERR: photcode not found table\n"); -
branches/eam_branches/ipp-20220316/Ohana/src/imregister/src/photcode-table.c
r12332 r42345 60 60 61 61 char *config, *file; 62 char CATDIR[ 256];62 char CATDIR[MY_MAX_PATH]; 63 63 64 64 /*** load configuration info ***/ … … 76 76 77 77 // set the CATDIR version based on CATDIR 78 s printf (CatdirPhotcodeFile, "%s/Photcodes.dat", CATDIR);78 snprintf_nowarn (CatdirPhotcodeFile, MY_MAX_PATH, "%s/Photcodes.dat", CATDIR); 79 79 80 80 free (config); -
branches/eam_branches/ipp-20220316/Ohana/src/libfits/header/F_create_H.c
r42143 r42345 24 24 25 25 for (i = 0; i < header[0].Naxes; i++) { 26 snprintf (axis, 10, "NAXIS%d", i + 1);26 snprintf_nowarn (axis, 10, "NAXIS%d", i + 1); 27 27 gfits_modify (header, axis, OFF_T_FMT, 1, header[0].Naxis[i]); 28 28 } -
branches/eam_branches/ipp-20220316/Ohana/src/libfits/matrix/F_compress_M.c
r41739 r42345 86 86 char keyword[11]; 87 87 for (i = 0; i < header[0].Naxes; i++) { 88 snprintf (keyword, 10, "ZNAXIS%d", i + 1);88 snprintf_nowarn (keyword, 10, "ZNAXIS%d", i + 1); 89 89 if (!gfits_modify (theader, keyword, OFF_T_FMT, 1, header[0].Naxis[i])) ESCAPE; 90 90 } 91 91 92 92 for (i = 0; i < header->Naxes; i++) { 93 snprintf (keyword, 10, "ZTILE%d", i + 1);93 snprintf_nowarn (keyword, 10, "ZTILE%d", i + 1); 94 94 if (!gfits_modify (theader, keyword, "%lu", 1, ztile[i])) ESCAPE; 95 95 } … … 131 131 // note the difference between the keywords (1 indexed) and the variables (0 indexed) 132 132 for (i = 0; i < Noptions; i++) { 133 snprintf (key, 10, "ZNAME%d", i + 1);133 snprintf_nowarn (key, 10, "ZNAME%d", i + 1); 134 134 if (!gfits_modify (header, key, "%s", 1, optname[i])) break; 135 135 136 snprintf (key, 10, "ZVAL%d", i + 1);136 snprintf_nowarn (key, 10, "ZVAL%d", i + 1); 137 137 if (!gfits_modify (header, key, "%s", 1, optvalue[i])) break; 138 138 } -
branches/eam_branches/ipp-20220316/Ohana/src/libfits/matrix/F_uncompress_M.c
r41474 r42345 90 90 int axis; 91 91 for (axis = 0; axis < header->Naxes; axis++) { 92 snprintf (zaxis, 10, "ZNAXIS%d", axis + 1);93 snprintf (naxis, 10, "NAXIS%d",axis + 1);92 snprintf_nowarn (zaxis, 10, "ZNAXIS%d", axis + 1); 93 snprintf_nowarn (naxis, 10, "NAXIS%d", axis + 1); 94 94 MOD_KEYWORD_REQUIRED (zaxis, naxis, OFF_T_FMT, &header->Naxis[axis], header->Naxis[axis]); 95 95 } … … 108 108 // if ZTILE1 exists, all ZTILEn must exist: 109 109 for (axis = 1; axis < header->Naxes; axis++) { 110 snprintf (key, 10, "ZTILE%d", axis + 1);110 snprintf_nowarn (key, 10, "ZTILE%d", axis + 1); 111 111 if (!gfits_scan (header, key, "%lu", 1, &ztile[axis])) ESCAPE; 112 112 gfits_delete (header, key, 1); -
branches/eam_branches/ipp-20220316/Ohana/src/mosastro/src/getstone.c
r3323 r42345 28 28 ®ions[Nregion].RA[0], ®ions[Nregion].RA[1], 29 29 ®ions[Nregion].DEC[0], ®ions[Nregion].DEC[1]); 30 s printf (line, "%s/%s", StoneRegions, filename);30 snprintf_nowarn (line, 1024, "%s/%s", StoneRegions, filename); 31 31 regname[Nregion] = strcreate (line); 32 32 Nregion ++; -
branches/eam_branches/ipp-20220316/Ohana/src/mosastro/src/getusno.c
r27435 r42345 9 9 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 5, 5, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10}; 10 10 11 # define MY_MAX_PATH 256 12 11 13 StarData *getusno (CatStats *catstats, int *Nstars) { 12 14 … … 15 17 float hours[100]; 16 18 int start[100], number[100], *buffer, *buf; 17 char filename[ 128];19 char filename[MY_MAX_PATH]; 18 20 FILE *f; 19 21 int iRA0, iRA1, iDEC0, iDEC1; … … 59 61 60 62 /* load accelerator file */ 61 s printf (filename, "%s/zone%04d.acc", USNO_A_DIR, spd);63 snprintf_nowarn (filename, MY_MAX_PATH, "%s/zone%04d.acc", USNO_A_DIR, spd); 62 64 if (VERBOSE) fprintf (stderr, "reading from %s\n", filename); 63 65 f = fopen (filename, "r"); … … 82 84 83 85 /* open data file */ 84 s printf (filename, "%s/zone%04d.cat", USNO_A_DIR, spd);86 snprintf_nowarn (filename, MY_MAX_PATH, "%s/zone%04d.cat", USNO_A_DIR, spd); 85 87 if (VERBOSE) fprintf (stderr, "reading from %s\n", filename); 86 88 f = fopen (filename, "r"); -
branches/eam_branches/ipp-20220316/Ohana/src/mosastro/src/getusnob.c
r34088 r42345 2 2 # define NBYTE 4 3 3 # define NELEM 20 4 5 # define MY_MAX_PATH 256 4 6 5 7 StarData *getusnob (CatStats *catstats, int *Nstars) { … … 9 11 float hours[100]; 10 12 int start[100], number[100], *buffer, *buf; 11 char filename[ 128];13 char filename[MY_MAX_PATH]; 12 14 FILE *f; 13 15 double DEC1; … … 42 44 43 45 /* load accelerator file */ 44 s printf (filename, "%s/%03d/b%04d.acc", USNO_B_DIR, (int)(spd/10), spd);46 snprintf_nowarn (filename, MY_MAX_PATH, "%s/%03d/b%04d.acc", USNO_B_DIR, (int)(spd/10), spd); 45 47 fprintf (stderr, "reading from %s\n", filename); 46 48 f = fopen (filename, "r"); … … 65 67 66 68 /* open data file */ 67 s printf (filename, "%s/%03d/b%04d.cat", USNO_B_DIR, (int)(spd/10), spd);69 snprintf_nowarn (filename, MY_MAX_PATH, "%s/%03d/b%04d.cat", USNO_B_DIR, (int)(spd/10), spd); 68 70 fprintf (stderr, "reading from %s\n", filename); 69 71 f = fopen (filename, "r"); -
branches/eam_branches/ipp-20220316/Ohana/src/nightd/include/nightd.h
r21153 r42345 3 3 # include <errno.h> 4 4 5 # define MY_MAX_PATH 256 6 5 7 FILE *LogFile; 6 8 char *Program; 7 9 8 char logfile[ 256];10 char logfile[MY_MAX_PATH]; 9 11 char **MainCommand; 10 12 char **InitCommand; 11 13 char **DoneCommand; 12 14 13 char TestCommand[ 256];15 char TestCommand[MY_MAX_PATH]; 14 16 15 char DateStr[ 256];16 char TimeStr[ 256];17 char DateStr[MY_MAX_PATH]; 18 char TimeStr[MY_MAX_PATH]; 17 19 18 char PIDFile[ 256];20 char PIDFile[MY_MAX_PATH]; 19 21 20 22 float NightStart; -
branches/eam_branches/ipp-20220316/Ohana/src/nightd/src/GetStatus.c
r27611 r42345 23 23 int ResetConfig () { 24 24 25 char user[ 256], machine[256], line[256];25 char user[MY_MAX_PATH], machine[MY_MAX_PATH], line[MY_MAX_PATH]; 26 26 pid_t pid; 27 27 … … 32 32 } 33 33 34 s printf (line, "rsh %s kill -USR1 %d", machine, pid);34 snprintf_nowarn (line, MY_MAX_PATH, "rsh %s kill -USR1 %d", machine, pid); 35 35 if (system (line) == -1) { 36 36 fprintf (stderr, "failed to send signal\n"); … … 42 42 int SendShutdown () { 43 43 44 char user[ 256], machine[256], line[256];44 char user[MY_MAX_PATH], machine[MY_MAX_PATH], line[MY_MAX_PATH]; 45 45 pid_t pid; 46 46 … … 51 51 } 52 52 53 s printf (line, "rsh %s kill -TERM %d", machine, pid);53 snprintf_nowarn (line, MY_MAX_PATH, "rsh %s kill -TERM %d", machine, pid); 54 54 if (system (line) == -1) { 55 55 fprintf (stderr, "failed to send signal\n"); -
branches/eam_branches/ipp-20220316/Ohana/src/opihi/cmd.basic/list.c
r42081 r42345 111 111 set_str_variable (line, argv[i+3]); 112 112 } 113 snprintf (line, MAX_LINE_LENGTH, "%s:n", argv[1]);113 snprintf_nowarn (line, MAX_LINE_LENGTH, "%s:n", argv[1]); 114 114 set_int_variable (line, i); 115 115 … … 133 133 int isFound; 134 134 135 snprintf (line, MAX_LINE_LENGTH, "%s:n", argv[1]);135 snprintf_nowarn (line, MAX_LINE_LENGTH, "%s:n", argv[1]); 136 136 int nList = get_int_variable (line, &isFound); 137 137 if (!isFound) { … … 145 145 146 146 for (i = start; i < nList; i++) { 147 snprintf (line, MAX_LINE_LENGTH, "%s:%d", argv[1], i);147 snprintf_nowarn (line, MAX_LINE_LENGTH, "%s:%d", argv[1], i); 148 148 char *word = get_variable (line); 149 149 if (!word) break; 150 150 if (i > 0) { 151 snprintf (output, MAX_LINE_LENGTH, "%s %s", tmpline, word);151 snprintf_nowarn (output, MAX_LINE_LENGTH, "%s %s", tmpline, word); 152 152 } else { 153 snprintf (output, MAX_LINE_LENGTH, "%s", word);153 snprintf_nowarn (output, MAX_LINE_LENGTH, "%s", word); 154 154 } 155 155 strcpy (tmpline, output); … … 179 179 180 180 // old list must exist, or give an error 181 snprintf (line, MAX_LINE_LENGTH, "%s:n", argv[3]);181 snprintf_nowarn (line, MAX_LINE_LENGTH, "%s:n", argv[3]); 182 182 N = get_int_variable (line, &found); 183 183 if (!found) { … … 188 188 189 189 190 snprintf (line, MAX_LINE_LENGTH, "%s:n", argv[1]);190 snprintf_nowarn (line, MAX_LINE_LENGTH, "%s:n", argv[1]); 191 191 set_int_variable (line, N); 192 192 for (i = 0; i < N; i++) { 193 snprintf (line, MAX_LINE_LENGTH, "%s:%d", argv[3], i);193 snprintf_nowarn (line, MAX_LINE_LENGTH, "%s:%d", argv[3], i); 194 194 value = get_variable (line); 195 // snprintf (line, MAX_LINE_LENGTH, "%s:%d", argv[1], i);195 // snprintf_nowarn (line, MAX_LINE_LENGTH, "%s:%d", argv[1], i); 196 196 set_list_varname (line, argv[1], i, EXCEL_STYLE); 197 197 set_str_variable (line, value); … … 207 207 } 208 208 209 snprintf (line, MAX_LINE_LENGTH, "%s:n", argv[1]);209 snprintf_nowarn (line, MAX_LINE_LENGTH, "%s:n", argv[1]); 210 210 N = get_int_variable (line, &found); 211 211 for (i = 0; i < argc - 3; i++) { 212 // snprintf (line, MAX_LINE_LENGTH, "%s:%d", argv[1], N + i);212 // snprintf_nowarn (line, MAX_LINE_LENGTH, "%s:%d", argv[1], N + i); 213 213 set_list_varname (line, argv[1], N + i, EXCEL_STYLE); 214 214 set_str_variable (line, argv[i+3]); 215 215 } 216 snprintf (line, MAX_LINE_LENGTH, "%s:n", argv[1]);216 snprintf_nowarn (line, MAX_LINE_LENGTH, "%s:n", argv[1]); 217 217 set_int_variable (line, N + i); 218 218 … … 231 231 char line2[MAX_LINE_LENGTH]; 232 232 233 snprintf (line, MAX_LINE_LENGTH, "%s:n", argv[1]); // line = LIST:n233 snprintf_nowarn (line, MAX_LINE_LENGTH, "%s:n", argv[1]); // line = LIST:n 234 234 N = get_int_variable (line, &found); 235 235 236 236 // loop over all list elements: 237 237 for (i = 0; i < N; i++) { 238 // snprintf (line, MAX_LINE_LENGTH, "%s:%d", argv[1], i);238 // snprintf_nowarn (line, MAX_LINE_LENGTH, "%s:%d", argv[1], i); 239 239 set_list_varname (line, argv[1], i, EXCEL_STYLE); // line = LIST:i 240 240 value = get_variable (line); … … 245 245 free (value); 246 246 for (j = i + 1; j < N; j++) { 247 // snprintf (line, MAX_LINE_LENGTH, "%s:%d", argv[1], j);247 // snprintf_nowarn (line, MAX_LINE_LENGTH, "%s:%d", argv[1], j); 248 248 set_list_varname (line2, argv[1], j, EXCEL_STYLE); // line2 = LIST:j 249 249 next_value = get_variable (line2); … … 252 252 } 253 253 DeleteNamedScalar (line); // line = LIST:(N-1) 254 snprintf (line, MAX_LINE_LENGTH, "%s:n", argv[1]); // line = LIST:n (new value of n)254 snprintf_nowarn (line, MAX_LINE_LENGTH, "%s:n", argv[1]); // line = LIST:n (new value of n) 255 255 set_int_variable (line, N - 1); 256 256 return (TRUE); … … 309 309 depth --; 310 310 if (depth < 0) { /* we hit the last "END", loop is done */ 311 snprintf (line, MAX_LINE_LENGTH, "%s:n", argv[1]);311 snprintf_nowarn (line, MAX_LINE_LENGTH, "%s:n", argv[1]); 312 312 set_int_variable (line, i); 313 313 free (input); … … 317 317 318 318 if (*input) { 319 // snprintf (line, MAX_LINE_LENGTH, "%s:%d", argv[1], i);319 // snprintf_nowarn (line, MAX_LINE_LENGTH, "%s:%d", argv[1], i); 320 320 set_list_varname (line, argv[1], i, EXCEL_STYLE); 321 321 set_str_variable (line, input); … … 381 381 free (val); 382 382 383 snprintf (line, MAX_LINE_LENGTH, "%s:n", listname);383 snprintf_nowarn (line, MAX_LINE_LENGTH, "%s:n", listname); 384 384 set_int_variable (line, i); 385 385 return (TRUE); … … 399 399 // otherwise save all glob matches 400 400 if (globList.gl_pathc == 0) { 401 snprintf (line, MAX_LINE_LENGTH, "%s:n", listname);401 snprintf_nowarn (line, MAX_LINE_LENGTH, "%s:n", listname); 402 402 set_int_variable (line, 0); 403 403 return TRUE; … … 409 409 set_str_variable (line, globList.gl_pathv[i]); 410 410 } 411 snprintf (line, MAX_LINE_LENGTH, "%s:n", listname);411 snprintf_nowarn (line, MAX_LINE_LENGTH, "%s:n", listname); 412 412 set_int_variable (line, Nfile); 413 413 return (TRUE); … … 430 430 Nline ++; 431 431 } 432 snprintf (varname, MAX_LINE_LENGTH, "%s:n", listname);432 snprintf_nowarn (varname, MAX_LINE_LENGTH, "%s:n", listname); 433 433 set_int_variable (varname, Nline); 434 434 return TRUE; … … 463 463 FREE (new); 464 464 } 465 snprintf (line, MAX_LINE_LENGTH, "%s:n", argv[1]);465 snprintf_nowarn (line, MAX_LINE_LENGTH, "%s:n", argv[1]); 466 466 set_int_variable (line, nWords); 467 467 -
branches/eam_branches/ipp-20220316/Ohana/src/opihi/cmd.data/cursor.c
r39457 r42345 42 42 KiiCursorRead (kapa, &X, &Y, &Z, &R, &D, key); 43 43 44 sprintf (string, "X%s", key); 45 set_variable (string, X); 46 sprintf (string, "Y%s", key); 47 set_variable (string, Y); 48 sprintf (string, "Z%s", key); 49 set_variable (string, Z); 50 sprintf (string, "R%s", key); 51 set_variable (string, R); 52 sprintf (string, "D%s", key); 53 set_variable (string, D); 44 snprintf_nowarn (string, 20, "X%s", key); set_variable (string, X); 45 snprintf_nowarn (string, 20, "Y%s", key); set_variable (string, Y); 46 snprintf_nowarn (string, 20, "Z%s", key); set_variable (string, Z); 47 snprintf_nowarn (string, 20, "R%s", key); set_variable (string, R); 48 snprintf_nowarn (string, 20, "D%s", key); set_variable (string, D); 54 49 55 50 set_str_variable ("KEY", key); -
branches/eam_branches/ipp-20220316/Ohana/src/opihi/dvo/coordmosaic.c
r39233 r42345 311 311 312 312 memset (segment, 0, 16); memcpy (segment, &SEGMENT[i*Nsegment], 4); 313 snprintf (name, 16, "%s_L_CX%dY%d", segment, XORDER[i], YORDER[i]);313 snprintf_nowarn (name, 16, "%s_L_CX%dY%d", segment, XORDER[i], YORDER[i]); 314 314 double xvalue = get_double_variable (name, &found); 315 315 xmask = !found; 316 316 317 317 memset (segment, 0, 16); memcpy (segment, &SEGMENT[i*Nsegment], 4); 318 snprintf (name, 16, "%s_M_CX%dY%d", segment, XORDER[i], YORDER[i]);318 snprintf_nowarn (name, 16, "%s_M_CX%dY%d", segment, XORDER[i], YORDER[i]); 319 319 double yvalue = get_double_variable (name, &found); 320 320 ymask = !found; … … 437 437 438 438 int found, xmask, ymask; 439 snprintf (name, 16, "L_X%dY%d", ix, iy);439 snprintf_nowarn (name, 16, "L_X%dY%d", ix, iy); 440 440 double xvalue = get_double_variable (name, &found); 441 441 xmask = !found; 442 442 443 snprintf (name, 16, "M_X%dY%d", ix, iy);443 snprintf_nowarn (name, 16, "M_X%dY%d", ix, iy); 444 444 double yvalue = get_double_variable (name, &found); 445 445 ymask = !found; -
branches/eam_branches/ipp-20220316/Ohana/src/opihi/dvo/elixir.c
r27611 r42345 4 4 int ReadMsg (char *fifo, char **message); 5 5 6 # define MY_MAX_PATH 256 7 6 8 int elixir (int argc, char **argv) { 7 9 8 char message[ 256], cmd[256], ElixirBase[256];9 char fifo[ 256], fifodir[256], msgfile[256];10 char message[MY_MAX_PATH], cmd[MY_MAX_PATH], ElixirBase[MY_MAX_PATH]; 11 char fifo[MY_MAX_PATH], fifodir[MY_MAX_PATH], msgfile[MY_MAX_PATH]; 10 12 char *answer; 11 13 int N; … … 38 40 return (FALSE); 39 41 } 40 s printf (fifo, "%s.msg", ElixirBase);42 snprintf_nowarn (fifo, MY_MAX_PATH, "%s.msg", ElixirBase); 41 43 if (!VarConfig ("FIFOS", "%s", fifodir)) { 42 44 gprint (GP_ERR, "FIFOS not in config, using local /tmp\n"); 43 45 strcpy (fifodir, "/tmp"); 44 46 } 45 s printf (fifo, "%s.msg", ElixirBase);47 snprintf_nowarn (fifo, MY_MAX_PATH, "%s.msg", ElixirBase); 46 48 47 s printf (msgfile, "%s/EMsg.XXXXXX", fifodir);49 snprintf_nowarn (msgfile, MY_MAX_PATH, "%s/EMsg.XXXXXX", fifodir); 48 50 if (mkstemp (msgfile) == -1) { 49 51 gprint (GP_ERR, "can't create fifo\n"); 50 52 return (FALSE); 51 53 } 52 s printf (message, "%s %s", cmd, msgfile);54 snprintf_nowarn (message, MY_MAX_PATH, "%s %s", cmd, msgfile); 53 55 unlink (msgfile); 54 56 -
branches/eam_branches/ipp-20220316/Ohana/src/opihi/pantasks/controller_status.c
r37807 r42345 26 26 } 27 27 28 snprintf (command, 1024, "status");28 snprintf_nowarn (command, 1024, "status"); 29 29 for (i = 1; i < argc; i++) { 30 snprintf (tmpline, 1024, "%s %s", command, argv[i]);30 snprintf_nowarn (tmpline, 1024, "%s %s", command, argv[i]); 31 31 strcpy (command, tmpline); 32 32 } -
branches/eam_branches/ipp-20220316/Ohana/src/photdbc/src/ConfigInit.c
r38441 r42345 13 13 14 14 char *config, *file; 15 char CatdirPhotcodeFile[ 256];15 char CatdirPhotcodeFile[DVO_MAX_PATH]; 16 16 17 17 /*** load configuration info ***/ … … 59 59 free (tmpcatdir); 60 60 61 s printf (ImageCat, "%s/Images.dat", CATDIR);61 snprintf_nowarn (ImageCat, DVO_MAX_PATH, "%s/Images.dat", CATDIR); 62 62 63 63 WarnConfig (config, "ZERO_PT", "%lf", 0, &ZERO_POINT); … … 72 72 73 73 /* XXX this does not yet write out the master photcode table */ 74 s printf (CatdirPhotcodeFile, "%s/Photcodes.dat", CATDIR);74 snprintf_nowarn (CatdirPhotcodeFile, DVO_MAX_PATH, "%s/Photcodes.dat", CATDIR); 75 75 if (!LoadPhotcodes (CatdirPhotcodeFile, NULL, FALSE)) { 76 76 fprintf (stderr, "error loading photcode table %s\n", CatdirPhotcodeFile); -
branches/eam_branches/ipp-20220316/Ohana/src/photdbc/src/copy_images.c
r38986 r42345 58 58 59 59 char mapfile[DVO_MAX_PATH]; 60 snprintf (mapfile, DVO_MAX_PATH, "%s/AstroMap.fits", CATDIR);60 snprintf_nowarn (mapfile, DVO_MAX_PATH, "%s/AstroMap.fits", CATDIR); 61 61 AstromOffsetTable *table_src = AstromOffsetMapLoad (mapfile, 100000, VERBOSE); 62 62 … … 77 77 AstromOffsetTableAddMapFromImage (table_tgt, &subset[i]); 78 78 } 79 snprintf (mapfile, DVO_MAX_PATH, "%s/AstroMap.fits", outdir);79 snprintf_nowarn (mapfile, DVO_MAX_PATH, "%s/AstroMap.fits", outdir); 80 80 AstromOffsetMapSave (table_tgt, mapfile); 81 81 free (table_tgt->imageIDtoTableSeq); -
branches/eam_branches/ipp-20220316/Ohana/src/relastro/src/ConfigInit.c
r39926 r42345 61 61 ScanConfig(config, "WHERE_B", "%s", 0, WHERE_B); 62 62 63 snprintf (ImageCat, DVO_MAX_PATH, "%s/Images.dat", CATDIR);63 snprintf_nowarn (ImageCat, DVO_MAX_PATH, "%s/Images.dat", CATDIR); 64 64 65 65 if (!ScanConfig (config, "SKY_DEPTH", "%d", 0, &SKY_DEPTH)) SKY_DEPTH = 2; … … 77 77 78 78 /* update master photcode table if not defined */ 79 snprintf (CatdirPhotcodeFile, DVO_MAX_PATH, "%s/Photcodes.dat", CATDIR);79 snprintf_nowarn (CatdirPhotcodeFile, DVO_MAX_PATH, "%s/Photcodes.dat", CATDIR); 80 80 if (!LoadPhotcodes (CatdirPhotcodeFile, NULL, FALSE)) { 81 81 fprintf (stderr, "error loading photcode table %s\n", CatdirPhotcodeFile); -
branches/eam_branches/ipp-20220316/Ohana/src/relastro/src/FrameCorrection.c
r38986 r42345 80 80 static int version = 0; 81 81 char filename[1024]; 82 snprintf (filename, 1024, "%s/frame.%03d.corr.fits", CATDIR, version);82 snprintf_nowarn (filename, 1024, "%s/frame.%03d.corr.fits", CATDIR, version); 83 83 FrameCorrectionSetSave (filename, set); 84 84 version ++; … … 217 217 static int version = 0; 218 218 char filename[1024]; 219 snprintf (filename, 1024, "%s/sh.%02d.dat", CATDIR, version);219 snprintf_nowarn (filename, 1024, "%s/sh.%02d.dat", CATDIR, version); 220 220 FILE *f = fopen (filename, "w"); 221 221 myAssert (f, "oops"); … … 519 519 static int version = 0; 520 520 char filename[1024]; 521 snprintf (filename, 1024, "%s/map.%02d.dat", CATDIR, version);521 snprintf_nowarn (filename, 1024, "%s/map.%02d.dat", CATDIR, version); 522 522 FILE *f = fopen (filename, "w"); 523 523 version ++; -
branches/eam_branches/ipp-20220316/Ohana/src/relastro/src/ICRF.c
r39375 r42345 56 56 57 57 char filename[1024]; 58 snprintf (filename, 1024, "%s/test.icrf.dat", CATDIR);58 snprintf_nowarn (filename, 1024, "%s/test.icrf.dat", CATDIR); 59 59 FILE *f = fopen (filename, "w"); 60 60 -
branches/eam_branches/ipp-20220316/Ohana/src/relastro/src/assign_images.c
r39926 r42345 25 25 26 26 char mapfile[DVO_MAX_PATH]; 27 snprintf (mapfile, DVO_MAX_PATH, "%s/AstroMap.fits", CATDIR);27 snprintf_nowarn (mapfile, DVO_MAX_PATH, "%s/AstroMap.fits", CATDIR); 28 28 AstromOffsetTable *table = AstromOffsetMapLoad (mapfile, 100000, VERBOSE); 29 29 -
branches/eam_branches/ipp-20220316/Ohana/src/relastro/src/bcatalog.c
r39995 r42345 64 64 if (VERBOSE2 && ExcludeBogus && (fbogus == NULL)) { 65 65 char name[1024]; 66 snprintf (name, 1024, "%s/bogus.%02d.dat", CATDIR, HOST_ID);66 snprintf_nowarn (name, 1024, "%s/bogus.%02d.dat", CATDIR, HOST_ID); 67 67 fbogus = fopen (name, "w"); 68 68 if (!fbogus) { … … 533 533 if (dumpit) { 534 534 char name[64]; 535 snprintf (name, 64, "cat.%05d.dump.dat", oldcatalog[0].catID);535 snprintf_nowarn (name, 64, "cat.%05d.dump.dat", oldcatalog[0].catID); 536 536 FILE *fdump = fopen (name, "w"); 537 537 for (i = 0; i < Nkeep; i++) { -
branches/eam_branches/ipp-20220316/Ohana/src/relastro/src/launch_region_hosts.c
r40415 r42345 63 63 // subset images per host : CATDIR/Image.HOSTNAME.fits 64 64 char filename[1024]; 65 snprintf (filename, 1024, "%s/Image.%d.fits", CATDIR, host->hostID);65 snprintf_nowarn (filename, 1024, "%s/Image.%d.fits", CATDIR, host->hostID); 66 66 if (unlink (filename)) fprintf (stderr, "trouble clearing image %s\n", filename); 67 67 … … 71 71 if (host->astromTable) { 72 72 char mapname[1024]; 73 snprintf (mapname, 1024, "%s/AstroMap.%d.fits", CATDIR, host->hostID);73 snprintf_nowarn (mapname, 1024, "%s/AstroMap.%d.fits", CATDIR, host->hostID); 74 74 75 75 // write the image subset for this host -
branches/eam_branches/ipp-20220316/Ohana/src/relastro/src/load_images.c
r39926 r42345 56 56 57 57 char mapfile[DVO_MAX_PATH]; 58 snprintf (mapfile, DVO_MAX_PATH, "%s/AstroMap.fits", CATDIR);58 snprintf_nowarn (mapfile, DVO_MAX_PATH, "%s/AstroMap.fits", CATDIR); 59 59 table = AstromOffsetMapLoad (mapfile, 100000, VERBOSE); 60 60 … … 96 96 97 97 char mapfile[DVO_MAX_PATH]; 98 snprintf (mapfile, DVO_MAX_PATH, "%s/AstroMap.fits", CATDIR);98 snprintf_nowarn (mapfile, DVO_MAX_PATH, "%s/AstroMap.fits", CATDIR); 99 99 AstromOffsetMapSave (table, mapfile); 100 100 -
branches/eam_branches/ipp-20220316/Ohana/src/relastro/src/relastro_parallel_images.c
r40415 r42345 43 43 44 44 char mapfile[DVO_MAX_PATH]; 45 snprintf (mapfile, DVO_MAX_PATH, "%s/AstroMap.%d.fits", CATDIR, REGION_HOST_ID);45 snprintf_nowarn (mapfile, DVO_MAX_PATH, "%s/AstroMap.%d.fits", CATDIR, REGION_HOST_ID); 46 46 AstromOffsetTable *table = AstromOffsetMapLoad (mapfile, 100000, VERBOSE); 47 47 -
branches/eam_branches/ipp-20220316/Ohana/src/relastro/src/share_images_pos.c
r39457 r42345 38 38 if (table) { 39 39 char mapname[1024]; 40 snprintf (mapname, 1024, "%s/AstroMapUpdate.%d.fits", CATDIR, REGION_HOST_ID);40 snprintf_nowarn (mapname, 1024, "%s/AstroMapUpdate.%d.fits", CATDIR, REGION_HOST_ID); 41 41 42 42 // write the image subset for this host … … 113 113 114 114 char mapname[1024]; 115 snprintf (mapname, 1024, "%s/AstroMapUpdate.%d.fits", CATDIR, regionHosts->hosts[i].hostID);115 snprintf_nowarn (mapname, 1024, "%s/AstroMapUpdate.%d.fits", CATDIR, regionHosts->hosts[i].hostID); 116 116 117 117 AstromOffsetTable *table = AstromOffsetMapLoad (mapname, 100000, VERBOSE); -
branches/eam_branches/ipp-20220316/Ohana/src/relphot/src/save_images.c
r41556 r42345 19 19 20 20 char filename[1024]; 21 snprintf (filename, 1024, "%s.bck", ImageCat); // ImageCat is global21 snprintf_nowarn (filename, 1024, "%s.bck", ImageCat); // ImageCat is global 22 22 if (!gfits_db_lock (&dbX, filename)) { 23 23 fprintf (stderr, "can't lock backup image image catalog\n"); … … 85 85 dbX.format = db->format; 86 86 87 snprintf (filename, 1024, "%s.bck", ImageCat);87 snprintf_nowarn (filename, 1024, "%s.bck", ImageCat); 88 88 if (!gfits_db_lock (&dbX, filename)) { 89 89 fprintf (stderr, "can't lock backup image image catalog\n"); -
branches/eam_branches/ipp-20220316/Ohana/src/tools/src/fits_to_mysql.c
r39093 r42345 252 252 253 253 char field[256], tlabel[256], format[256]; 254 snprintf (field, 256, "TTYPE%d", i+1);254 snprintf_nowarn (field, 256, "TTYPE%d", i+1); 255 255 gfits_scan (header, field, "%s", 1, tlabel); 256 256 257 snprintf (field, 256, "TFORM%d", i+1);257 snprintf_nowarn (field, 256, "TFORM%d", i+1); 258 258 gfits_scan (header, field, "%s", 1, format); 259 259 … … 270 270 if (Ndup) { 271 271 char tmpname[256]; 272 snprintf (tmpname, 256, "%s_%d", tlabel, Ndup);272 snprintf_nowarn (tmpname, 256, "%s_%d", tlabel, Ndup); 273 273 column[Ncolumn].colname = strcreate (tmpname); 274 274 } else { … … 357 357 char colname[64]; 358 358 for (j = 0; j < Nval; j++) { 359 snprintf (colname, 64, "%s_%d", rootname, j + 1);359 snprintf_nowarn (colname, 64, "%s_%d", rootname, j + 1); 360 360 PrintIOBuffer (buffer, "%s %s", colname, typename); 361 361 if (j < Nval - 1) { … … 455 455 char colname[64]; 456 456 for (j = 0; j < columns[i].Nval; j++) { 457 snprintf (colname, 64, "%s_%d", columns[i].colname, j + 1);457 snprintf_nowarn (colname, 64, "%s_%d", columns[i].colname, j + 1); 458 458 PrintIOBuffer (insert, "%s", colname); 459 459 if (j < columns[i].Nval - 1) { … … 649 649 650 650 /* get column keywords */ 651 snprintf (field, 256, "TTYPE%d", Nfield);651 snprintf_nowarn (field, 256, "TTYPE%d", Nfield); 652 652 gfits_scan (header, field, "%s", 1, tlabel); 653 snprintf (field, 256, "TSCAL%d", Nfield);653 snprintf_nowarn (field, 256, "TSCAL%d", Nfield); 654 654 gfits_scan (header, field, "%lf", 1, &Bscale); 655 snprintf (field, 256, "TZERO%d", Nfield);655 snprintf_nowarn (field, 256, "TZERO%d", Nfield); 656 656 gfits_scan (header, field, "%lf", 1, &Bzero); 657 snprintf (field, 256, "TFORM%d", Nfield);657 snprintf_nowarn (field, 256, "TFORM%d", Nfield); 658 658 gfits_scan (header, field, "%s", 1, format); 659 659 … … 669 669 int Nstart = 0; 670 670 for (i = 1; i < Nfield; i++) { 671 snprintf (field, 256, "TFORM%d", i);671 snprintf_nowarn (field, 256, "TFORM%d", i); 672 672 gfits_scan (header, field, "%s", 1, format); 673 673 int Nv, Nb; -
branches/eam_branches/ipp-20220316/Ohana/src/uniphot/src/ConfigInit.c
r33654 r42345 22 22 ScanConfig (config, "CATFORMAT", "%s", 0, CATFORMAT); 23 23 24 s printf (ImageCat, "%s/Images.dat", CATDIR);24 snprintf_nowarn (ImageCat, 256, "%s/Images.dat", CATDIR); 25 25 26 26 GetConfig (config, "GSCFILE", "%s", 0, GSCFILE); -
branches/eam_branches/ipp-20220316/Ohana/src/uniphot/src/load_zpt_table.c
r40549 r42345 323 323 // photcode name 324 324 char photname[64]; 325 snprintf (photname, 64, "GPC1.%s.XY%d%d", filter, ix, iy);325 snprintf_nowarn (photname, 64, "GPC1.%s.XY%d%d", filter, ix, iy); 326 326 // note that the XY00, XY07, etc, chips will have photcode values of 0 327 327 -
branches/eam_branches/ipp-20220316/psconfig/tagsets/ipp-ubuntu.perl
r42137 r42345 82 82 01 Test::Warnings Test-Warnings-0.026.tar.gz 0 NONE NONE 83 83 01 Test::Without::Module Test-Without-Module-0.20.tar.gz 0 NONE NONE 84 01 Text::Diff Text-Diff-1.45.tar.gz 0 NONE NONE 84 # trouble building this on clean 20.04 server. Is it needed? 85 # 01 Text::Diff Text-Diff-1.45.tar.gz 0 NONE NONE 85 86 01 Text::Glob Text-Glob-0.11.tar.gz 0 NONE NONE 86 87 01 Text::Template Text-Template-1.55.tar.gz 0 NONE NONE
Note:
See TracChangeset
for help on using the changeset viewer.
