Changeset 35
- Timestamp:
- 01/10/08 14:36:44
- Files:
-
- cached_images/trunk/cached_images/cacheJob.pl (modified) (86 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
cached_images/trunk/cached_images/cacheJob.pl
r26 r35 45 45 in B<cacheJob.pl> make sure B<use lib '/usr/local/bin';> 46 46 47 B<sudo mkdir /usr/local/bin/ Seacoos> and B<sudo chown root:root> and B<sudo chmod 755>48 49 B<sudo cp CacheBot.pm /usr/local/bin/ Seacoos> and B<sudo chown root:root> and B<sudo chmod 755>47 B<sudo mkdir /usr/local/bin/secoora> and B<sudo chown root:root> and B<sudo chmod 755> 48 49 B<sudo cp CacheBot.pm /usr/local/bin/secoora> and B<sudo chown root:root> and B<sudo chmod 755> 50 50 51 51 B<sudo cp cacheJob.pl /usr/local/bin> and B<sudo chown root:root> and B<sudo chmod 755> … … 91 91 The domain of the image data. 92 92 93 Common metalayers represent possible instantiations of the entire B< SEACOOS> domain, the B<South Atlantic Bight>, the B<East Florida Shelf>, the B<West Florida Shelf>, and other extensions and near-shore permutations.93 Common metalayers represent possible instantiations of the entire B<secoora> domain, the B<South Atlantic Bight>, the B<East Florida Shelf>, the B<West Florida Shelf>, and other extensions and near-shore permutations. 94 94 95 95 =item data_layer … … 160 160 161 161 Cycling through all the possible metalayer combinations is shunted by the binding of narrowly permissive and selective policies. 162 Thusly are the query parameters for Seacoos::CacheBot accumulated and corresponding cache file titles constructed by convention.162 Thusly are the query parameters for secoora::CacheBot accumulated and corresponding cache file titles constructed by convention. 163 163 164 164 The cache file naming convention is: … … 178 178 =head2 Load Control 179 179 180 Se acoos::CacheBot::cache_php_map_image not only provides management of image decoration, but encourages local queue management of image history.180 Secoora::CacheBot::cache_php_map_image not only provides management of image decoration, but encourages local queue management of image history. 181 181 For PHP front-end fetches, only the most recent data is requested. 182 182 Historical accumulation of image time series is performed hourly over 24 hours by local queue management in the cache directory. … … 190 190 191 191 nrtobs_is_efs_normwind_1_large.png 192 nrtobs_is_se acoos_sst_3_medium.png192 nrtobs_is_secoora_sst_3_medium.png 193 193 nrtobs_rs_sab_modisergb_8_large.png 194 194 nrtobs_rs_wfs_quikscat_6_medium.png … … 206 206 =begin html 207 207 208 <a href="CacheBot.html">Se acoos::CacheBot</a>208 <a href="CacheBot.html">Secoora::CacheBot</a> 209 209 210 210 =end html … … 260 260 1.06 11/07/04 CBC completed annotate_image 261 261 262 1.07 01/14/05 JCupated text box size/fixed composite, but dissolve still broken263 updated MODIS RGB layers (no filled world.US)262 1.07 01/14/05 JC upated text box size/fixed composite, but dissolve still broken 263 updated MODIS RGB layers (no filled world.US) 264 264 265 265 1.08 01/27/05 JC added water_level_obs. worked around dissolve wierdness with opaque legend. 266 Tweaked textbox, legends, & scalebar locations for visual clarity267 266 Tweaked textbox, legends, & scalebar locations for visual clarity 267 268 268 2.00 05/04/05 JC reverted to new WMS service at USC. Changes to legend handling, image sizes, time stamp 269 placement and format, region extents. rm'd some PHP only logic (scalebar). added pre and270 post data layer handling269 placement and format, region extents. rm'd some PHP only logic (scalebar). added pre and 270 post data layer handling 271 271 272 272 2.01 06/21/05 JC Added small image size with legend and logo handling as needed. Thumbnail size is ready as 273 well but doesn't look great - too small 273 well but doesn't look great - too small 274 275 2.1 12/20/07 JC changed all SEACOOS to Secoora 274 276 =cut 275 277 … … 277 279 use strict; 278 280 use lib '.'; 279 use lib '/ usr/local/bin';280 #use lib '/afs/isis/pkg/perl-580/.install/i386_linux24/lib/site_perl/5.8.0/i686-linux'; 281 use lib '/home/jcleary/cachebot'; 282 281 283 use Sys::Syslog qw(:DEFAULT setlogsock); 282 284 use File::Copy; … … 284 286 use Image::Magick; 285 287 use LWP::Simple; 286 use Se acoos::CacheBot;288 use Secoora::CacheBot; 287 289 288 290 my $ident = 'cacheJob'; … … 311 313 312 314 # please, no trailing slash on web services 313 #my $seacoos_wms = 'http://nautilus.baruch.sc.edu/wms/all_seacoos'; 314 my $se acoos_wms = 'http://maury.marine.unc.edu/cgi-bin/all_seacoos';315 my $seacoos_php = 'http://nautilus.baruch.sc.edu/seacoos_misc/get_latest_image.php'; 315 316 my $secoora_wms = 'http://maury.marine.unc.edu/cgi-bin/all_secoora'; 317 316 318 # please, no trailing slash on output directory 317 #my $output_dir = '/home/fubu/public_html';318 319 my $output_dir = '/var/www/html/images/mapCache'; 319 320 # please, no dot prefix 320 321 my $image_ext = 'png'; 321 my $logo_image = '/usr/share/images/cachebot/watermark_emboss.png'; 322 my $no_logo = '/usr/share/images/cachebot/blank.gif'; 322 323 # for now (no SECOORA logo exisists), point logo path to blank gif, same as no logo 324 my $logo_image = '/home/jcleary/cachebot/support_files/blank.gif'; 325 my $no_logo = '/home/jcleary/cachebot/support_files/blank.gif'; 326 323 327 # please, no trailing slash on font directory 324 my $font_dir = '/ usr/share/fonts';328 my $font_dir = '/home/jcleary/cachebot/support_files'; 325 329 my $stamp_font = 'forgotte.ttf'; 326 330 327 my $real_time_obs_id = 'rtobs';328 331 my $near_real_time_obs_id = 'nrtobs'; 329 332 my $model_ouput_id = 'model'; 330 333 # only data_types with the active flag set to $active will be processed 331 334 my @data_types = ( 332 {id => $real_time_obs_id,333 active => $inactive,334 title => 'rtobs',335 description => 'Real-time observations',336 data_methods => [qw/ is /],337 },338 335 {id => $near_real_time_obs_id, 339 336 active => $active, … … 346 343 title => 'model', 347 344 description => 'Model output', 348 data_methods => [qw/ adcirc quoddy eta hycom/],345 data_methods => [qw/ model /], 349 346 }, 350 347 ); … … 352 349 my $in_situ_id = 'is'; 353 350 my $remotely_sensed_id = 'rs'; 354 my $advanced_circulation_id = 'adcirc'; 355 my $finite_element_id = 'quoddy'; 356 my $vertical_step_id = 'eta'; 357 my $hybrid_coordinate_id = 'hycom'; 351 my $ocean_circulation_id = 'model'; 358 352 # only data_methods with the active flag set to $active will be processed 359 353 my @data_methods = ( … … 362 356 title => 'is', 363 357 description => 'In-situ', 364 subregions => [qw/ se acoos sab efs wfs scwera nccodar usfcodar miamiwera sabnc sabscga nsnc nsscga nsefl nswfl nspan/],358 subregions => [qw/ secoora sab efs wfs scwera nccodar usfcodar miamiwera /], 365 359 }, 366 360 {id => $remotely_sensed_id, … … 368 362 title => 'rs', 369 363 description => 'Remotely sensed', 370 subregions => [qw/ seacoos sab efs wfs scwera nccodar usfcodar miamiwera sabnc sabscga nsnc nsscga nsefl nswfl nspan /], 371 }, 372 {id => $advanced_circulation_id, 373 active => $inactive, 374 title => 'adcirc', 375 description => 'Advanced circulation model', 376 subregions => [qw/ sab sabnc sabscga /], 377 }, 378 {id => $finite_element_id, 379 active => $inactive, 380 title => 'quoddy', 381 description => '3-D finite element circulation model', 382 subregions => [qw/ sab sabnc sabscga /], 383 }, 384 {id => $vertical_step_id, 385 active => $inactive, 386 title => 'eta', 387 description => 'Vertical step model', 388 subregions => [qw/ sab sabnc sabscga /], 389 }, 390 {id => $hybrid_coordinate_id, 391 active => $inactive, 392 title => 'hycom', 393 description => 'Hybrid coordinate model', 394 subregions => [qw/ sab sabnc sabscga /], 364 subregions => [qw/ secoora sab efs wfs scwera nccodar usfcodar miamiwera /], 365 }, 366 {id => $ocean_circulation_id, 367 active => $inactive, 368 title => 'model', 369 description => 'Ocean circulation model', 370 subregions => [qw/ secoora sab sabnc sabscga /], 395 371 }, 396 372 ); … … 398 374 # only subregions with the active flag set to $active will be processed 399 375 my @subregions = ( 400 {id => 'seacoos',401 active => $active, 402 title => 'se acoos',403 description => 'Entire domain',376 {id => 'secoora', 377 active => $active, 378 title => 'secoora', 379 description => 'Entire SECOORA domain', 404 380 west => '-88.05', 405 381 south => '22.85', … … 408 384 data_layers => [qw/ waterlevel win sst nwn cur drift modisca quikscat oisst avhrrsst modissst modisergb modisrgb /], 409 385 }, 410 {id => 'sab',411 active => $ active,386 {id => 'sab', 387 active => $inactive, 412 388 title => 'sab', 413 389 description => 'South Atlantic Bight', … … 418 394 data_layers => [qw/ waterlevel win sst nwn cur drift modisca quikscat oisst avhrrsst modissst modisergb modisrgb /], 419 395 }, 420 {id => 'efs',421 active => $ active,396 {id => 'efs', 397 active => $inactive, 422 398 title => 'efs', 423 399 description => 'East Florida Shelf', … … 428 404 data_layers => [qw/ waterlevel win sst nwn cur drift modisca quikscat oisst avhrrsst modissst modisergb modisrgb /], 429 405 }, 430 {id => 'wfs',431 active => $ active,406 {id => 'wfs', 407 active => $inactive, 432 408 title => 'wfs', 433 409 description => 'West Florida Shelf', … … 438 414 data_layers => [qw/ waterlevel win sst nwn cur drift modisca quikscat oisst avhrrsst modissst modisergb modisrgb /], 439 415 }, 440 {id => 'scwera', 441 active => $active, 442 title => 'scwera', 443 description => 'South Carolina WERA', 444 west => '-81.30', 445 south => '30.06', 446 east => '-78.0', 447 north => '32.70', 448 data_layers => [qw/ cur /], 449 }, 450 {id => 'nccodar', 451 active => $active, 452 title => 'nccodar', 453 description => 'North Carolina CODAR', 454 west => '-76.10', 455 south => '34.50', 456 east => '-72.85', 457 north => '37.10', 458 data_layers => [qw/ cur /], 459 }, 460 {id => 'usfcodar', 461 active => $active, 462 title => 'usfcodar', 463 description => 'USF CODAR', 464 west => '-85.30', 465 south => '25.20', 466 east => '-81.44', 467 north => '28.29', 468 data_layers => [qw/ cur /], 469 }, 470 {id => 'miamiwera', 471 active => $active, 472 title => 'miamiwera', 473 description => 'Miami WERA', 474 west => '-80.45', 475 south => '24.75', 476 east => '-78.82', 477 north => '26.05', 478 data_layers => [qw/ cur /], 479 }, 480 {id => 'sabnc', 481 active => $inactive, 482 title => 'sabnc', 483 description => 'South Atlantic Bight in North Carolina', 484 west => '-79.1', 485 south => '30.7', 486 east => '-71.1', 487 north => '36.8', 488 data_layers => [qw/ waterlevel win sst nwn cur drift modisca quikscat oisst avhrrsst modissst modisergb modisrgb /], 489 }, 490 {id => 'sabscga', 491 active => $inactive, 492 title => 'sabscga', 493 description => 'South Atlantic Bight in South Carolina and Georgia', 494 west => '-81.9', 495 south => '28.1', 496 east => '-74.9', 497 north => '34', 498 data_layers => [qw/ waterlevel win sst nwn cur drift modisca quikscat oisst avhrrsst modissst modisergb modisrgb /], 499 }, 500 {id => 'nsnc', 501 active => $inactive, 502 title => 'nsnc', 503 description => 'North Carolina Near Shore', 504 west => '-79.5', 505 south => '32.5', 506 east => '-74.7', 507 north => '37.1', 508 data_layers => [qw/ waterlevel win sst nwn cur drift modisca quikscat oisst avhrrsst modissst modisergb modisrgb /], 509 }, 510 {id => 'nsscga', 511 active => $inactive, 512 title => 'nsscga', 513 description => 'South Carolina and Georgia Near Shore', 514 west => '-82.7', 515 south => '29.5', 516 east => '-77.4', 517 north => '34.8', 518 data_layers => [qw/ waterlevel win sst nwn cur drift modisca quikscat oisst avhrrsst modissst modisergb modisrgb /], 519 }, 520 {id => 'nsefl', 521 active => $inactive, 522 title => 'nsefl', 523 description => 'East Florida Near Shore', 524 west => '-82.6', 525 south => '24.3', 526 east => '-78', 527 north => '31.7', 528 data_layers => [qw/ waterlevel win sst nwn cur drift modisca quikscat oisst avhrrsst modissst modisergb modisrgb /], 529 }, 530 {id => 'nswfl', 531 active => $inactive, 532 title => 'nswfl', 533 description => 'West Florida Near Shore', 534 west => '-84.6', 535 south => '23.6', 536 east => '-80', 537 north => '30.8', 538 data_layers => [qw/ waterlevel win sst nwn cur drift modisca quikscat oisst avhrrsst modissst modisergb modisrgb /], 539 }, 540 {id => 'nspan', 541 active => $inactive, 542 title => 'nspan', 543 description => 'Florida Panhandle Near Shore', 544 west => '-88.1', 545 south => '28.7', 546 east => '-83.2', 547 north => '31.7', 548 data_layers => [qw/ waterlevel win sst nwn cur drift modisca quikscat oisst avhrrsst modissst modisergb modisrgb /], 549 }, 416 {id => 'scwera', 417 active => $active, 418 title => 'scwera', 419 description => 'South Carolina WERA', 420 west => '-81.30', 421 south => '30.06', 422 east => '-78.0', 423 north => '32.70', 424 data_layers => [qw/ cur /], 425 }, 426 {id => 'nccodar', 427 active => $active, 428 title => 'nccodar', 429 description => 'North Carolina CODAR', 430 west => '-76.10', 431 south => '34.50', 432 east => '-72.85', 433 north => '37.10', 434 data_layers => [qw/ cur /], 435 }, 436 {id => 'usfcodar', 437 active => $active, 438 title => 'usfcodar', 439 description => 'USF CODAR', 440 west => '-85.30', 441 south => '25.20', 442 east => '-81.44', 443 north => '28.29', 444 data_layers => [qw/ cur /], 445 }, 446 {id => 'miamiwera', 447 active => $active, 448 title => 'miamiwera', 449 description => 'Miami WERA', 450 west => '-80.45', 451 south => '24.75', 452 east => '-78.82', 453 north => '26.05', 454 data_layers => [qw/ cur /], 455 }, 550 456 ); 551 457 … … 562 468 my $feet_units = 'FT'; 563 469 564 # changed all to $se acoos_wms470 # changed all to $secoora_wms 565 471 my @data_layers = ( 566 472 # only data_layers with the active flag set to $active will be processed … … 572 478 water_level_datum => $msl_datum, 573 479 elevation_units => $meters_units, 574 source => $se acoos_wms,480 source => $secoora_wms, 575 481 data_methods => [qw/ is /], 576 482 geo_layers => [qw/ std /], … … 585 491 water_level_datum => $msl_datum, 586 492 elevation_units => $meters_units, 587 source => $se acoos_wms,493 source => $secoora_wms, 588 494 data_methods => [qw/ is /], 589 495 geo_layers => [qw/ minimal /], … … 597 503 layers => 'wind_obs_hourly', 598 504 velocity_units => $knots_units, 599 source => $se acoos_wms,505 source => $secoora_wms, 600 506 data_methods => [qw/ is /], 601 507 geo_layers => [qw/ std minimal /], … … 609 515 layers => 'sst_obs_hourly', 610 516 degree_units => $celsius_units, 611 source => $se acoos_wms,517 source => $secoora_wms, 612 518 data_methods => [qw/ is /], 613 519 geo_layers => [qw/ std /], … … 621 527 layers => 'sst_obs_hourly', 622 528 degree_units => $celsius_units, 623 source => $se acoos_wms,529 source => $secoora_wms, 624 530 data_methods => [qw/ is /], 625 531 geo_layers => [qw/ minimal /], … … 633 539 layers => 'wind_obs_normalized_hourly', 634 540 velocity_units => $knots_units, 635 source => $se acoos_wms,541 source => $secoora_wms, 636 542 data_methods => [qw/ is /], 637 543 geo_layers => [qw/ std minimal /], … … 645 551 layers => 'surface_currents', 646 552 velocity_units => $knots_units, 647 source => $se acoos_wms,553 source => $secoora_wms, 648 554 data_methods => [qw/ is /], 649 555 geo_layers => [qw/ minimal /], … … 657 563 layers => 'surface_currents', 658 564 velocity_units => $knots_units, 659 source => $se acoos_wms,565 source => $secoora_wms, 660 566 data_methods => [qw/ is /], 661 567 geo_layers => [qw/ std /], … … 669 575 layers => 'drifter_trajectory', 670 576 velocity_units => $knots_units, 671 source => $se acoos_wms,577 source => $secoora_wms, 672 578 data_methods => [qw/ is /], 673 579 geo_layers => [qw/ minimal std /], … … 680 586 description => 'MODerate Resolution Imaging Spectroradiometer satellite chlorophyll-a', 681 587 layers => 'modis_chl', 682 source => $se acoos_wms,588 source => $secoora_wms, 683 589 data_methods => [qw/ rs /], 684 590 geo_layers => [qw/ std /], … … 691 597 description => 'MODerate Resolution Imaging Spectroradiometer satellite chlorophyll-a', 692 598 layers => 'modis_chl', 693 source => $se acoos_wms,599 source => $secoora_wms, 694 600 data_methods => [qw/ rs /], 695 601 geo_layers => [qw/ min_avhrr /], … … 703 609 layers => 'quikscat_wind', 704 610 velocity_units => $knots_units, 705 source => $se acoos_wms,611 source => $secoora_wms, 706 612 data_methods => [qw/ rs /], 707 613 geo_layers => [qw/ std minimal /], … … 715 621 layers => 'oi_sst', 716 622 degree_units => $celsius_units, 717 source => $se acoos_wms,623 source => $secoora_wms, 718 624 data_methods => [qw/ rs /], 719 625 geo_layers => [qw/ std /], … … 727 633 layers => 'oi_sst', 728 634 degree_units => $celsius_units, 729 source => $se acoos_wms,635 source => $secoora_wms, 730 636 data_methods => [qw/ rs /], 731 637 geo_layers => [qw/ minimal /], … … 739 645 layers => 'avhrr_sst', 740 646 degree_units => $celsius_units, 741 source => $se acoos_wms,647 source => $secoora_wms, 742 648 data_methods => [qw/ rs /], 743 649 geo_layers => [qw/ avhrr /], … … 751 657 layers => 'avhrr_sst', 752 658 degree_units => $celsius_units, 753 source => $se acoos_wms,659 source => $secoora_wms, 754 660 data_methods => [qw/ rs /], 755 661 geo_layers => [qw/ min_avhrr /], … … 763 669 layers => 'modis_sst', 764 670 degree_units => $celsius_units, 765 source => $se acoos_wms,671 source => $secoora_wms, 766 672 data_methods => [qw/ rs /], 767 673 geo_layers => [qw/ avhrr /], … … 775 681 layers => 'modis_sst', 776 682 degree_units => $celsius_units, 777 source => $se acoos_wms,683 source => $secoora_wms, 778 684 data_methods => [qw/ rs /], 779 685 geo_layers => [qw/ min_avhrr /], … … 786 692 description => 'MODerate Resolution Imaging Spectroradiometer satellite enhanced sea surface color', 787 693 layers => 'modis_ergb', 788 source => $se acoos_wms,694 source => $secoora_wms, 789 695 data_methods => [qw/ rs /], 790 696 geo_layers => [qw/ rgb /], … … 797 703 description => 'MODerate Resolution Imaging Spectroradiometer satellite sea surface color', 798 704 layers => 'modis_rgb_composite_low', 799 source => $se acoos_wms,705 source => $secoora_wms, 800 706 data_methods => [qw/ rs /], 801 707 geo_layers => [qw/ rgb min_rgb /], … … 810 716 water_level_datum => $msl_datum, 811 717 elevation_units => $meters_units, 812 source => $se acoos_wms,718 source => $secoora_wms, 813 719 data_methods => [qw/ is /], 814 720 geo_layers => [qw/ std /], … … 822 728 layers => 'wind_obs_hourly', 823 729 velocity_units => $knots_units, 824 source => $se acoos_wms,730 source => $secoora_wms, 825 731 data_methods => [qw/ is /], 826 732 geo_layers => [qw/ std /], … … 834 740 layers => 'sst_obs_hourly', 835 741 degree_units => $celsius_units, 836 source => $se acoos_wms,742 source => $secoora_wms, 837 743 data_methods => [qw/ is /], 838 744 geo_layers => [qw/ std /], … … 846 752 layers => 'wind_obs_normalized_hourly', 847 753 velocity_units => $knots_units, 848 source => $se acoos_wms,754 source => $secoora_wms, 849 755 data_methods => [qw/ is /], 850 756 geo_layers => [qw/ std /], … … 858 764 layers => 'surface_currents', 859 765 velocity_units => $knots_units, 860 source => $se acoos_wms,766 source => $secoora_wms, 861 767 data_methods => [qw/ is /], 862 768 geo_layers => [qw/ std /], … … 870 776 layers => 'drifter_trajectory', 871 777 velocity_units => $knots_units, 872 source => $se acoos_wms,778 source => $secoora_wms, 873 779 data_methods => [qw/ is /], 874 780 geo_layers => [qw/ std /], … … 881 787 description => 'MODerate Resolution Imaging Spectroradiometer satellite chlorophyll-a', 882 788 layers => 'modis_chl', 883 source => $se acoos_wms,789 source => $secoora_wms, 884 790 data_methods => [qw/ rs /], 885 791 geo_layers => [qw/ std /], … … 893 799 layers => 'quikscat_wind', 894 800 velocity_units => $knots_units, 895 source => $se acoos_wms,801 source => $secoora_wms, 896 802 data_methods => [qw/ rs /], 897 803 geo_layers => [qw/ std /], … … 905 811 layers => 'oi_sst', 906 812 degree_units => $celsius_units, 907 source => $se acoos_wms,813 source => $secoora_wms, 908 814 data_methods => [qw/ rs /], 909 815 geo_layers => [qw/ std /], … … 917 823 layers => 'avhrr_sst', 918 824 degree_units => $celsius_units, 919 source => $se acoos_wms,825 source => $secoora_wms, 920 826 data_methods => [qw/ rs /], 921 827 geo_layers => [qw/ avhrr /], … … 929 835 layers => 'modis_sst', 930 836 degree_units => $celsius_units, 931 source => $se acoos_wms,837 source => $secoora_wms, 932 838 data_methods => [qw/ rs /], 933 839 geo_layers => [qw/ avhrr /], … … 940 846 description => 'MODerate Resolution Imaging Spectroradiometer satellite enhanced sea surface color', 941 847 layers => 'modis_ergb', 942 source => $se acoos_wms,848 source => $secoora_wms, 943 849 data_methods => [qw/ rs /], 944 850 geo_layers => [qw/ rgb /], … … 951 857 description => 'MODerate Resolution Imaging Spectroradiometer satellite sea surface color', 952 858 layers => 'modis_rgb_composite_low', 953 source => $se acoos_wms,859 source => $secoora_wms, 954 860 data_methods => [qw/ rs /], 955 861 geo_layers => [qw/ rgb /], … … 960 866 961 867 # only geo_layers with the active flag set to $active will be processed 962 # added $se acoos_wms where needed, reordered layer names, added new bathy layer name868 # added $secoora_wms where needed, reordered layer names, added new bathy layer name 963 869 my @geo_layers = ( 964 {id => 'noback',965 active => $inactive,966 description => 'No background',967 pre_layers => '',968 post_layer => '',969 sources => [$seacoos_wms, $seacoos_php,],970 image_sizes => '',971 }, 972 {id => 'minimal',973 active => $active,974 description => 'Minimal background',975 pre_layers => 'world_filled,us_filled,world_outline,us_outline',976 post_layers => '',977 sources => [$seacoos_wms, $seacoos_php,],978 image_sizes => [qw/ small thumb /],979 },980 {id => 'min_avhrr',981 active => $active,982 description => 'Minimal background for RS SST images',983 pre_layers => '',984 post_layers => 'world_filled,us_filled,world_outline,us_outline',985 sources => [$seacoos_wms, $seacoos_php,],986 image_sizes => [qw/ small thumb /],987 },988 {id => 'min_rgb',989 active => $active,990 description => 'Minimal background for RGBs',991 pre_layers => 'world_filled,us_filled',992 post_layers => 'world_outline,us_outline',993 sources => [$seacoos_wms, $seacoos_php,],994 image_sizes => [qw/ small thumb /],995 },996 {id => 'std',997 active => $active,998 description => 'Standard background',999 pre_layers => 'world_filled,us_filled,world_outline,us_outline,country_names,world_capitals',870 {id => 'noback', 871 active => $inactive, 872 description => 'No background', 873 pre_layers => '', 874 post_layer => '', 875 sources => [$secoora_wms], 876 image_sizes => '', 877 }, 878 {id => 'minimal', 879 active => $active, 880 description => 'Minimal background', 881 pre_layers => 'world_filled,us_filled,world_outline,us_outline', 882 post_layers => '', 883 sources => [$secoora_wms], 884 image_sizes => [qw/ small thumb /], 885 }, 886 {id => 'min_avhrr', 887 active => $active, 888 description => 'Minimal background for RS SST images', 889 pre_layers => '', 890 post_layers => 'world_filled,us_filled,world_outline,us_outline', 891 sources => [$secoora_wms], 892 image_sizes => [qw/ small thumb /], 893 }, 894 {id => 'min_rgb', 895 active => $active, 896 description => 'Minimal background for RGBs', 897 pre_layers => 'world_filled,us_filled', 898 post_layers => 'world_outline,us_outline', 899 sources => [$secoora_wms], 900 image_sizes => [qw/ small thumb /], 901 }, 902 {id => 'std', 903 active => $active, 904 description => 'Standard background', 905 pre_layers => 'world_filled,us_filled,world_outline,us_outline,country_names,world_capitals', 1000 906 post_layers => '', 1001 sources => [$seacoos_wms, $seacoos_php,],1002 image_sizes => [qw/ medium /],1003 }, 1004 {id => 'rgb',1005 active => $active,1006 description => 'RGB background',1007 pre_layers => 'world_filled,us_filled,country_names,world_capitals,us_big_cities',1008 post_layers => 'world_outline,us_outline',1009 sources => [$seacoos_wms, $seacoos_php,],1010 image_sizes => [qw/ medium /],1011 }, 1012 {id => 'avhrr',1013 active => $active,1014 description => 'RS background',1015 pre_layers => '',1016 post_layers => 'world_filled,us_filled,world_outline,us_outline,country_names,world_capitals',1017 sources => [$seacoos_wms, $seacoos_php,],1018 image_sizes => [qw/ medium /],1019 },1020 {id => 'std',1021 active => $active,1022 description => 'Standard background',1023 pre_layers => 'world_filled,us_filled,world_outline,us_outline,country_names,world_capitals,us_big_cities',1024 post_layers=> '',1025 sources => [$seacoos_wms, $seacoos_php,],1026 image_sizes => [qw/ large /],1027 }, 1028 {id => 'avhrr',1029 active => $active,1030 description => 'RS background',1031 pre_layers => '',1032 post_layers => 'world_filled,us_filled,world_outline,us_outline,country_names,world_capitals,us_big_cities',1033 sources => [$seacoos_wms, $seacoos_php,],1034 image_sizes => [qw/ large /],1035 },1036 {id => 'rgb',1037 active => $active,1038 description => 'RGB background',1039 pre_layers => 'world_filled,us_filled,country_names,world_capitals,us_big_cities',1040 post_layers=> 'world_outline,us_outline',1041 sources => [$seacoos_wms, $seacoos_php,],1042 image_sizes => [qw/ large /],907 sources => [$secoora_wms], 908 image_sizes => [qw/ medium /], 909 }, 910 {id => 'rgb', 911 active => $active, 912 description => 'RGB background', 913 pre_layers => 'country_names,world_capitals,us_big_cities', 914 post_layers => 'world_outline,us_outline', 915 sources => [$secoora_wms], 916 image_sizes => [qw/ medium /], 917 }, 918 {id => 'avhrr', 919 active => $active, 920 description => 'RS background', 921 pre_layers => '', 922 post_layers => 'world_filled,us_filled,world_outline,us_outline,country_names,world_capitals', 923 sources => [$secoora_wms], 924 image_sizes => [qw/ medium /], 925 }, 926 {id => 'std', 927 active => $active, 928 description => 'Standard background', 929 pre_layers => 'world_filled,us_filled,world_outline,us_outline,country_names,world_capitals,us_big_cities', 930 post_layers => '', 931 sources => [$secoora_wms], 932 image_sizes => [qw/ large /], 933 }, 934 {id => 'avhrr', 935 active => $active, 936 description => 'RS background', 937 pre_layers => '', 938 post_layers => 'world_filled,us_filled,world_outline,us_outline,country_names,world_capitals,us_big_cities', 939 sources => [$secoora_wms], 940 image_sizes => [qw/ large /], 941 }, 942 {id => 'rgb', 943 active => $active, 944 description => 'RGB background', 945 pre_layers => 'world_filled,us_filled,country_names,world_capitals,us_big_cities', 946 post_layers => 'world_outline,us_outline', 947 sources => [$secoora_wms], 948 image_sizes => [qw/ large /], 1043 949 }, 1044 950 ); … … 1051 957 description => 'No legend', 1052 958 layers => '', 1053 subregions => [qw/ se acoos sab efs wfs scwera nccodar usfcodar miamiwera sabnc sabscga nsnc nsscga nsefl nswfl nspan/],959 subregions => [qw/ secoora sab efs wfs scwera nccodar usfcodar miamiwera /], 1054 960 data_layers => [qw/ waterlevel sst oisst avhrrsst modissst win nwn cur drift quikscat modisergb modisrgb /], 1055 961 image_sizes => [qw/ thumb small medium large /], … … 1057 963 {id => 'legend', 1058 964 active => $active, 1059 description => 'Medium SEACOOSsea surface temperature legend',965 description => 'Medium secoora sea surface temperature legend', 1060 966 layers => 'sst_legend_full_range', 1061 967 sst_legend_x => '-0', 1062 968 sst_legend_y => '-25', 1063 subregions => [qw/ se acoos/],969 subregions => [qw/ secoora /], 1064 970 data_layers => [qw/ sst oisst avhrrsst modissst /], 1065 971 image_sizes => [qw/ medium /], … … 1085 991 image_sizes => [qw/ medium /], 1086 992 }, 1087 {id => 'legend',1088 active => $active,1089 description => 'Medium EFS sea surface temperature legend',1090 layers => 'sst_legend_full_range',1091 sst_legend_x => '-15',993 {id => 'legend', 994 active => $active, 995 description => 'Medium EFS sea surface temperature legend', 996 layers => 'sst_legend_full_range', 997 sst_legend_x => '-15', 1092 998 sst_legend_y => '-25', 1093 subregions => [qw/ efs /],1094 data_layers => [qw/ sst oisst avhrrsst modissst /],1095 image_sizes => [qw/ medium /],1096 },999 subregions => [qw/ efs /], 1000 data_layers => [qw/ sst oisst avhrrsst modissst /], 1001 image_sizes => [qw/ medium /], 1002 }, 1097 1003 {id => 'legend', 1098 1004 active => $active, … … 1101 1007 sst_legend_x => '-23', 1102 1008 sst_legend_y => '-30', 1103 subregions => [qw/ se acoossab efs /],1009 subregions => [qw/ secoora sab efs /], 1104 1010 data_layers => [qw/ sst oisst avhrrsst modissst /], 1105 1011 image_sizes => [qw/ large /], … … 1120 1026 layers => 'modis_chl_legend_carib', 1121 1027 offsets => '100,100', 1122 subregions => [qw/ se acoos sab efs wfs sabnc sabscga nsnc nsscga nsefl nswfl nspan/],1028 subregions => [qw/ secoora sab efs wfs /], 1123 1029 data_layers => [qw/ modisca /], 1124 1030 image_sizes => [qw/ medium large /], … … 1130 1036 wl_legend_x => '-5', 1131 1037 wl_legend_y => '-25', 1132 subregions => [qw/ se acoossab efs /],1038 subregions => [qw/ secoora sab efs /], 1133 1039 data_layers => [qw/ waterlevel /], 1134 1040 image_sizes => [qw/ medium /], … … 1160 1066 wl_legend_x => '-10', 1161 1067 wl_legend_y => '-25', 1162 subregions => [qw/ se acoossab efs /],1068 subregions => [qw/ secoora sab efs /], 1163 1069 data_layers => [qw/ waterlevel /], 1164 1070 image_sizes => [qw/ large /], … … 1190 1096 cur_legend_x => '5', 1191 1097 cur_legend_y => '-25', 1192 subregions => [qw/ se acoossab efs scwera nccodar miamiwera /],1098 subregions => [qw/ secoora sab efs scwera nccodar miamiwera /], 1193 1099 data_layers => [qw/ cur /], 1194 1100 image_sizes => [qw/ medium large /], … … 1258 1164 my @image_times = ( 1259 1165 {id => '1', 1260 active => $ active,1166 active => $inactive, 1261 1167 title => '1', 1262 1168 description => '1.5 hours ago', … … 1279 1185 }, 1280 1186 {id => '4', 1281 active => $ active,1187 active => $inactive, 1282 1188 title => '4', 1283 1189 description => '4 hours ago', … … 1286 1192 }, 1287 1193 {id => '5', 1288 active => $ active,1194 active => $inactive, 1289 1195 title => '5', 1290 1196 description => '5 hours ago', … … 1293 1199 }, 1294 1200 {id => '6', 1295 active => $ active,1201 active => $inactive, 1296 1202 title => '6', 1297 1203 description => '6 hours ago', … … 1300 1206 }, 1301 1207 {id => '7', 1302 active => $ active,1208 active => $inactive, 1303 1209 title => '7', 1304 1210 description => '7 hours ago', … … 1307 1213 }, 1308 1214 {id => '8', 1309 active => $ active,1215 active => $inactive, 1310 1216 title => '8', 1311 1217 description => '8 hours ago', … … 1314 1220 }, 1315 1221 {id => '9', 1316 active => $ active,1222 active => $inactive, 1317 1223 title => '9', 1318 1224 description => '9 hours ago', … … 1367 1273 gravity => 'northeast', 1368 1274 opacity => '20', 1369 subregions => [qw/ se acoossab efs wfs scwera nccodar usfcodar miamiwera /],1275 subregions => [qw/ secoora sab efs wfs scwera nccodar usfcodar miamiwera /], 1370 1276 image_sizes => [qw/ thumb small /], 1371 1277 }, … … 1378 1284 gravity => 'northwest', 1379 1285 opacity => '20', 1380 subregions => [qw/ se acoossab efs scwera nccodar miamiwera /],1286 subregions => [qw/ secoora sab efs scwera nccodar miamiwera /], 1381 1287 image_sizes => [qw/ medium small /], 1382 1288 }, … … 1400 1306 gravity => 'northwest', 1401 1307 opacity => '20', 1402 subregions => [qw/ se acoossab efs scwera nccodar miamiwera /],1308 subregions => [qw/ secoora sab efs scwera nccodar miamiwera /], 1403 1309 image_sizes => [qw/ large /], 1404 1310 }, … … 1431 1337 stroke => '', 1432 1338 fill => '', 1433 subregions => [qw/ se acoos/],1339 subregions => [qw/ secoora /], 1434 1340 image_sizes => [qw/ thumb /], 1435 1341 data_method => [qw/ rs is /], … … 1437 1343 {id => 'stamped', 1438 1344 active => $active, 1439 description => 'Small IS SE ACOOStime stamp',1345 description => 'Small IS SECOORA time stamp', 1440 1346 stamp => '%02d/%02d/%04d %02d:00 UTC', 1441 1347 color => 'rgb(75,129,212)', … … 1445 1351 font => $stamp_font, 1446 1352 border => '0,0 102,11', 1447 stroke => 'rgb(2 49,248,226)',1448 fill => 'rgb(2 49,248,226)',1449 subregions => [qw/ se acoos/],1353 stroke => 'rgb(211,198,165)', 1354 fill => 'rgb(211,198,165)', 1355 subregions => [qw/ secoora /], 1450 1356 image_sizes => [qw/ small /], 1451 1357 data_method => [qw/ is /], 1452 1358 }, 1453 {id => 'stamped',1454 active => $active,1455 description => 'Small RS SEACOOStime stamp',1456 stamp => '%02d/%02d/%04d Estimate',1457 color => 'rgb(75,129,212)',1458 point => '12',1459 xorigin => '1',1460 yorigin => '1',1461 font => $stamp_font,1462 border => '0,0 97,11',1463 stroke => 'rgb(249,248,226)',1464 fill => 'rgb(249,248,226)',1465 subregions => [qw/ seacoos/],1466 image_sizes => [qw/ small /],1467 data_method => [qw/ rs /],1468 },1359 {id => 'stamped', 1360 active => $active, 1361 description => 'Small RS SECOORA time stamp', 1362 stamp => '%02d/%02d/%04d Estimate', 1363 color => 'rgb(75,129,212)', 1364 point => '12', 1365 xorigin => '1', 1366 yorigin => '1', 1367 font => $stamp_font, 1368 border => '0,0 97,11', 1369 stroke => 'rgb(211,198,165)', 1370 fill => 'rgb(211,198,165)', 1371 subregions => [qw/ secoora /], 1372 image_sizes => [qw/ small /], 1373 data_method => [qw/ rs /], 1374 }, 1469 1375 {id => 'stamped', 1470 1376 active => $active, 1471 description => 'IS Medium SE ACOOStime stamp',1377 description => 'IS Medium SECOORA/SAB time stamp', 1472 1378 stamp => '%02d/%02d/%04d %02d:00 UTC', 1473 1379 color => 'rgb(75,129,212)', 1474 1380 point => '15', 1475 xorigin => ' 59',1381 xorigin => '1', 1476 1382 yorigin => '1', 1477 1383 font => $stamp_font, 1478 border => ' 58,0 184,13',1479 stroke => 'rgb(2 49,248,226)',1480 fill => 'rgb(2 49,248,226)',1481 subregions => [qw/ se acoos/],1384 border => '0,0 126,15', 1385 stroke => 'rgb(211,198,165)', 1386 fill => 'rgb(211,198,165)', 1387 subregions => [qw/ secoora sab /], 1482 1388 image_sizes => [qw/ medium /], 1483 1389 data_method => [qw/ is /], … … 1493 1399 border => '98,0 224,13', 1494 1400 font => $stamp_font, 1495 stroke => 'rgb(2 49,248,226)',1496 fill => 'rgb(2 49,248,226)',1401 stroke => 'rgb(211,198,165)', 1402 fill => 'rgb(211,198,165)', 1497 1403 subregions => [qw/ wfs /], 1498 1404 image_sizes => [qw/ medium /], 1499 1405 data_method => [qw/ is /], 1500 1406 }, 1501 {id => 'stamped',1502 active => $active,1503 description => 'IS Medium USF CODAR time stamp',1504 stamp => '%02d/%02d/%04d %02d:00 UTC',1505 color => 'rgb(74,74,74)',1506 point => '15',1507 xorigin => '1',1508 yorigin => '1',1509 border => '0,0 126,13',1510 font => $stamp_font,1511 stroke => 'rgb(229,246,253)',1512 fill => 'rgb(229,246,253)',1513 subregions => [qw/ usfcodar /],1514 image_sizes => [qw/ medium /],1515 data_method => [qw/ is /],1516 },1517 {id => 'stamped',1518 active => $active,1519 description => 'IS Medium EFS and SAB time stamp',1520 stamp => '%02d/%02d/%04d %02d:00 UTC',1521 color => 'rgb(74,74,74)',1522 point => '15',1523 xorigin => '188',1524 yorigin => '1',1525 border => '187,0 313,13',1526 font => $stamp_font,1527 stroke => 'rgb(229,246,253)',1528 fill => 'rgb(229,246,253)',1529 subregions => [qw/ sabefs scwera nccodar miamiwera /],1530 image_sizes => [qw/ medium /],1531 data_method => [qw/ is /],1532 },1533 {id => 'stamped',1534 active => $active, 1535 description => 'IS Large SE ACOOStime stamp',1407 {id => 'stamped', 1408 active => $active, 1409 description => 'IS Medium USF CODAR time stamp', 1410 stamp => '%02d/%02d/%04d %02d:00 UTC', 1411 color => 'rgb(74,74,74)', 1412 point => '15', 1413 xorigin => '1', 1414 yorigin => '1', 1415 border => '0,0 126,13', 1416 font => $stamp_font, 1417 stroke => 'rgb(181,207,240)', 1418 fill => 'rgb(181,207,240)', 1419 subregions => [qw/ usfcodar /], 1420 image_sizes => [qw/ medium /], 1421 data_method => [qw/ is /], 1422 }, 1423 {id => 'stamped', 1424 active => $active, 1425 description => 'IS Medium EFS and SAB time stamp', 1426 stamp => '%02d/%02d/%04d %02d:00 UTC', 1427 color => 'rgb(74,74,74)', 1428 point => '15', 1429 xorigin => '188', 1430 yorigin => '1', 1431 border => '187,0 313,13', 1432 font => $stamp_font, 1433 stroke => 'rgb(181,207,240)', 1434 fill => 'rgb(181,207,240)', 1435 subregions => [qw/ efs scwera nccodar miamiwera /], 1436 image_sizes => [qw/ medium /], 1437 data_method => [qw/ is /], 1438 }, 1439 {id => 'stamped', 1440 active => $active, 1441 description => 'IS Large SECOORA/SAB time stamp', 1536 1442 stamp => '%02d/%02d/%04d %02d:00 UTC', 1537 1443 color => 'rgb(75,129,212)', 1538 1444 point => '20', 1539 xorigin => ' 68',1445 xorigin => '1', 1540 1446 yorigin => '1', 1541 1447 font => $stamp_font, 1542 border => ' 67,0 246,17',1543 stroke => 'rgb(2 49,248,226)',1544 fill => 'rgb(2 49,248,226)',1545 subregions => [qw/ se acoos/],1448 border => '0,0 179,17', 1449 stroke => 'rgb(211,198,165)', 1450 fill => 'rgb(211,198,165)', 1451 subregions => [qw/ secoora sab /], 1546 1452 image_sizes => [qw/ large /], 1547 1453 data_method => [qw/ is /], 1548 1454 }, 1549 {id => 'stamped',1550 active => $active, 1551 description => 'IS Large EFS /SABtime stamp',1455 {id => 'stamped', 1456 active => $active, 1457 description => 'IS Large EFS time stamp', 1552 1458 stamp => '%02d/%02d/%04d %02d:00 UTC', 1553 1459 color => 'rgb(74,74,74)', … … 1557 1463 font => $stamp_font, 1558 1464 border => '350,0 526,17', 1559 stroke => 'rgb( 229,246,253)',1560 fill => 'rgb( 229,246,253)',1561 subregions => [qw/ sabefs scwera nccodar miamiwera /],1465 stroke => 'rgb(181,207,240)', 1466 fill => 'rgb(181,207,240)', 1467 subregions => [qw/ efs scwera nccodar miamiwera /], 1562 1468 image_sizes => [qw/ large /], 1563 1469 data_method => [qw/ is /], … … 1573 1479 font => $stamp_font, 1574 1480 border => '213,0 392,17', 1575 stroke => 'rgb(2 49,248,226)',1576 fill => 'rgb(2 49,248,226)',1481 stroke => 'rgb(211,198,165)', 1482 fill => 'rgb(211,198,165)', 1577 1483 subregions => [qw/ wfs /], 1578 1484 image_sizes => [qw/ large /], 1579 1485 data_method => [qw/ is /], 1580 1486 }, 1581 {id => 'stamped',1582 active => $active,1583 description => 'IS Large USF CODAR time stamp',1584 stamp => '%02d/%02d/%04d %02d:00 UTC',1585 color => 'rgb(74,74,74)',1586 point => '20',1587 xorigin => '1',1588 yorigin => '1',1589 font => $stamp_font,1590 border => '0,0 179,17',1591 stroke => 'rgb(229,246,253)',1592 fill => 'rgb(229,246,253)',1593 subregions => [qw/ usfcodar /],1594 image_sizes => [qw/ large /],1595 data_method => [qw/ is /],1596 },1487 {id => 'stamped', 1488 active => $active, 1489 description => 'IS Large USF CODAR time stamp', 1490 stamp => '%02d/%02d/%04d %02d:00 UTC', 1491 color => 'rgb(74,74,74)', 1492 point => '20', 1493 xorigin => '1', 1494 yorigin => '1', 1495 font => $stamp_font, 1496 border => '0,0 179,17', 1497 stroke => 'rgb(181,207,240)', 1498 fill => 'rgb(181,207,240)', 1499 subregions => [qw/ usfcodar /], 1500 image_sizes => [qw/ large /], 1501 data_method => [qw/ is /], 1502 }, 1597 1503 {id => 'stamped', 1598 1504 active => $active, 1599 description => 'RS Medium SE ACOOStime stamp',1505 description => 'RS Medium SECOORA/SAB time stamp', 1600 1506 stamp => '%02d/%02d/%04d Estimate', 1601 1507 color => 'rgb(75,129,212)', 1602 1508 point => '15', 1603 xorigin => ' 59',1509 xorigin => '1', 1604 1510 yorigin => '1', 1605 1511 font => $stamp_font, 1606 border => ' 58,0 184,13',1607 stroke => 'rgb(2 49,248,226)',1608 fill => 'rgb(2 49,248,226)',1609 subregions => [qw/ se acoos/],1512 border => '0,0 126,15', 1513 stroke => 'rgb(211,198,165)', 1514 fill => 'rgb(211,198,165)', 1515 subregions => [qw/ secoora sab /], 1610 1516 image_sizes => [qw/ medium /], 1611 1517 data_method => [qw/ rs /], … … 1621 1527 border => '98,0 224,13', 1622 1528 font => $stamp_font, 1623 stroke => 'rgb(2 49,248,226)',1624 fill => 'rgb(2 49,248,226)',1529 stroke => 'rgb(211,198,165)', 1530 fill => 'rgb(211,198,165)', 1625 1531 subregions => [qw/ wfs /], 1626 1532 image_sizes => [qw/ medium /], 1627 1533 data_method => [qw/ rs /], 1628 1534 }, 1629 {id => 'stamped',1630 active => $active,1631 description => 'RS Medium EFS and SABtime stamp',1632 stamp => '%02d/%02d/%04d Estimate',1633 color => 'rgb(74,74,74)',1634 point => '15',1635 xorigin => '188',1636 yorigin => '1',1637 border => '187,0 313,13',1638 font => $stamp_font,1639 stroke => 'rgb(229,246,253)',1640 fill => 'rgb(229,246,253)',1641 subregions => [qw/ sabefs /],1642 image_sizes => [qw/ medium /],1643 data_method => [qw/ rs /],1644 },1645 {id => 'stamped',1646 active => $active, 1647 description => 'RS Large SE ACOOStime stamp',1535 {id => 'stamped', 1536 active => $active, 1537 description => 'RS Medium EFS time stamp', 1538 stamp => '%02d/%02d/%04d Estimate', 1539 color => 'rgb(74,74,74)', 1540 point => '15', 1541 xorigin => '188', 1542 yorigin => '1', 1543 border => '187,0 313,13', 1544 font => $stamp_font, 1545 stroke => 'rgb(181,207,240)', 1546 fill => 'rgb(181,207,240)', 1547 subregions => [qw/ efs /], 1548 image_sizes => [qw/ medium /], 1549 data_method => [qw/ rs /], 1550 }, 1551 {id => 'stamped', 1552 active => $active, 1553 description => 'RS Large SECOORA/SAB time stamp', 1648 1554 stamp => '%02d/%02d/%04d Estimate', 1649 1555 color => 'rgb(75,129,212)', 1650 1556 point => '20', 1651 xorigin => ' 68',1557 xorigin => '1', 1652 1558 yorigin => '1', 1653 1559 font => $stamp_font, 1654 border => ' 67,0 246,17',1655 stroke => 'rgb(2 49,248,226)',1656 fill => 'rgb(2 49,248,226)',1657 subregions => [qw/ se acoos/],1560 border => '0,0 179,17', 1561 stroke => 'rgb(211,198,165)', 1562 fill => 'rgb(211,198,165)', 1563 subregions => [qw/ secoora sab /], 1658 1564 image_sizes => [qw/ large /], 1659 1565 data_method => [qw/ rs /], … … 1661 1567 {id => 'stamped', 1662 1568 active => $active, 1663 description => 'RS Large EFS /SABtime stamp',1569 description => 'RS Large EFS time stamp', 1664 1570 stamp => '%02d/%02d/%04d Estimate', 1665 1571 color => 'rgb(74,74,74)', … … 1669 1575 font => $stamp_font, 1670 1576 border => '350,0 526,17', 1671 stroke => 'rgb( 229,246,253)',1672 fill => 'rgb( 229,246,253)',1673 subregions => [qw/ sabefs /],1577 stroke => 'rgb(181,207,240)', 1578 fill => 'rgb(181,207,240)', 1579 subregions => [qw/ efs /], 1674 1580 image_sizes => [qw/ large /], 1675 1581 data_method => [qw/ rs /], … … 1685 1591 font => $stamp_font, 1686 1592 border => '213,0 392,17', 1687 stroke => 'rgb(2 49,248,226)',1688 fill => 'rgb(2 49,248,226)',1593 stroke => 'rgb(211,198,165)', 1594 fill => 'rgb(211,198,165)', 1689 1595 subregions => [qw/ wfs /], 1690 1596 image_sizes => [qw/ large /], … … 1763 1669 my ($pre_output, $output, $post_output) = construct_filepath($output_dir, $data_type, $data_method, $subregion, $data_layer, $image_time, $image_size, $image_ext); 1764 1670 1765 if ($data_layer->{'source'} eq $se acoos_wms) {1671 if ($data_layer->{'source'} eq $secoora_wms) { 1766 1672 $move_errors = queue_images($image_time, $pre_output, $post_output, $move_errors, $alert_priority); 1767 1673 cache_wms_map_image($subregion, $layers, $image_time, $image_size, $data_layer, $legend_layer, $output, $debug); 1768 1674 } 1769 elsif ($data_layer->{'source'} eq $seacoos_php) {1770 $move_errors = queue_images($image_time, $pre_output, $post_output, $move_errors, $alert_priority);1771 cache_php_map_image($subregion, $layers, $image_size, $data_layer, $legend_layer, $output, $debug, $image_time);1772 }1773 1774 1675 if ($@) { 1775 1676 $remote_errors++; … … 1884 1785 1885 1786 1886 eval {Se acoos::CacheBot::cache_wms_map_image(%query_parameters);};1787 eval {Secoora::CacheBot::cache_wms_map_image(%query_parameters);}; 1887 1788 } 1888 1789 … … 1912 1813 if ($data_layer->{'water_level_datum'}) {$query_parameters{'water_level_datum'} = $data_layer->{'water_level_datum'};} 1913 1814 1914 eval { Seacoos::CacheBot::cache_php_map_image(%query_parameters);};1815 eval {secoora::CacheBot::cache_php_map_image(%query_parameters);}; 1915 1816 } 1916 1817 1917 1818 sub queue_images { 1918 1819 my ($image_time, $pre_output, $post_output, $move_errors, $priority) = @_; 1919 my $queue_depth = 47;1820 my $queue_depth = 5; 1920 1821 1921 1822 if ($image_time->{'id'} eq '2') { … … 1986 1887 my $fetch_layer = $data_layer->{'id'}; 1987 1888 1988 my $dest_dir='/home/jcleary/ myscripts/';1989 1990 ### get TDS text file of interest from se acoos31889 my $dest_dir='/home/jcleary/cachebot/support_files/'; 1890 1891 ### get TDS text file of interest from secoora3 1991 1892 my $url_base='http://cromwell.marine.unc.edu/rs_timestamps/'.$fetch_layer.$offset.'.txt'; 1992 1893 my $target = $dest_dir.$fetch_layer.$offset.'.txt';
