Permalink
Browse files

Fix archive length check with ensemble datasets.

  • Loading branch information...
pascalhorton committed Apr 18, 2017
0 parents commit 5319d095cd7e6da0db3272448f1a017e16c9b141
Showing 1,413 changed files with 497,804 additions and 0 deletions.
@@ -0,0 +1,56 @@
syntax: glob
*/CMakeFiles/*
*/_CPack_Packages/*
*/ipch/*
*/Debug/*
*/Release/*
*/RelWithDebInfo/*
*/Win32/*
*/ALL_BUILD.*
*/ZERO_CHECK.*
*.dir/*
*/CMakeCache.txt
*/cmake_install.cmake
*/wxhgversion_param.h
*/Makefile
*~
*.vcxproj*
*.opensdf
*.sdf
*.sln
*.suo
*.exe
*.grib2.ncx
*.grib2.gbx9
*.bak
*.cbp
*.layout
*.dll
*.a
*.orig
*.exp
*.lib
*.pdb
*.tlog
*.ilk
*.deb
*.o
*.psess
*.vsp
*.log
*.tmp
*.aux.xml
desktop.ini
CMakeCache.txt
cmake.check_cache
CPackConfig.cmake
CPackSourceConfig.cmake
CTestTestfile.cmake
install_manifest.txt
CTestCostData.txt
DartConfiguration.tcl
bin/
*.rej
.idea/*
Test Results *
CMakeFiles/*
3 .hgsub
@@ -0,0 +1,3 @@
src/shared_base/libs/wxhgversion=ssh://hg@bitbucket.org/terranum/wxhgversion
src/app_viewer/libs/vroomgis=ssh://hg@bitbucket.org/terranum/vroomgis
@@ -0,0 +1,3 @@
61895b1d66740348f0de792f2d39782b370d11d0 src/app_viewer/libs/vroomgis
e7fdfcdef92f00cae4190395a219d5415e1b90ba src/shared_base/libs/wxhgversion
d225acc90bc3a8c420a9bcd1f033033c1ccd7fe0 test/libs/googletest
@@ -0,0 +1,54 @@
cmake_minimum_required(VERSION 3.0)
#### PROJECT
if (UNIX)
project(atmoswing)
else (UNIX)
project(AtmoSwing)
endif (UNIX)
# Version number
set(VERSION_MAJOR "1")
set(VERSION_MINOR "4")
set(VERSION_PATCH "2")
# Addition of custom modules
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/build/cmake)
include(ASoptions)
#### SOURCE FILES LIST
include(ASlistSourceFiles)
#### INCLUDE DIRECTORIES
include(ASsourceIncludes)
#### LIBRARIES
include(ASgetLibraries)
#### DECLARE EXECUTABLE
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/build/cmake) # repeat
include(ASdeclareExecutable)
#### FLAGS & DEFINES
include(ASdefinitions)
#### LINKING
include(ASlinking)
#### TESTS
if (BUILD_TESTS)
set(CTEST_OUTPUT_ON_FAILURE TRUE)
add_test(AtmoSwing-tests atmoswing-tests)
include(CTest)
endif (BUILD_TESTS)
#### INSTALLER
include(ASinstaller)
@@ -0,0 +1,21 @@
LINUX examples:
./png2wx.pl -C img_toolbar_s.cpp -H img_toolbar.h -M _TOOLBAR_H_ ../toolbar/small/*.png
WINDOWS full image generation:
perl png2wx.pl -C ../../src/shared_base/gui/img/img_toolbar_s.cpp -H ../../src/shared_base/gui/img/img_toolbar.h -M _TOOLBAR_H_ ../toolbar/small/frame_analogs.png ../toolbar/small/frame_distributions.png ../toolbar/small/map_fit.png ../toolbar/small/map_move.png ../toolbar/small/map_select.png ../toolbar/small/map_zoom_in.png ../toolbar/small/map_zoom_out.png ../toolbar/small/open.png ../toolbar/small/preferences.png ../toolbar/small/run.png ../toolbar/small/stop.png
perl png2wx.pl -C ../../src/shared_base/gui/img/img_toolbar_m.cpp -H ../../src/shared_base/gui/img/img_toolbar.h -M _TOOLBAR_H_ ../toolbar/medium/frame_analogs.png ../toolbar/medium/frame_distributions.png ../toolbar/medium/map_fit.png ../toolbar/medium/map_move.png ../toolbar/medium/map_select.png ../toolbar/medium/map_zoom_in.png ../toolbar/medium/map_zoom_out.png ../toolbar/medium/open.png ../toolbar/medium/preferences.png ../toolbar/medium/run.png ../toolbar/medium/stop.
perl png2wx.pl -C ../../src/shared_base/gui/img/img_toolbar_l.cpp -H ../../src/shared_base/gui/img/img_toolbar.h -M _TOOLBAR_H_ ../toolbar/large/frame_analogs.png ../toolbar/large/frame_distributions.png ../toolbar/large/map_fit.png ../toolbar/large/map_move.png ../toolbar/large/map_select.png ../toolbar/large/map_zoom_in.png ../toolbar/large/map_zoom_out.png ../toolbar/large/open.png ../toolbar/large/preferences.png ../toolbar/large/run.png ../toolbar/large/stop.png
perl png2wx.pl -C ../../src/shared_base/gui/img/img_logo.cpp -H ../../src/shared_base/gui/img/img_logo.h -M _LOGO_H_ ../logo/logo.png
perl png2wx.pl -C ../../src/shared_base/gui/img/img_misc_s.cpp -H ../../src/shared_base/gui/img/img_misc.h -M _MISC_H_ ../misc/small/bullet_green.png ../misc/small/bullet_red.png ../misc/small/bullet_white.png ../misc/small/bullet_yellow.png ../misc/small/close.png ../misc/small/hidden.png ../misc/small/plus.png ../misc/small/shown.png ../misc/small/update.png
perl png2wx.pl -C ../../src/shared_base/gui/img/img_misc_m.cpp -H ../../src/shared_base/gui/img/img_misc.h -M _MISC_H_ ../misc/medium/bullet_green.png ../misc/medium/bullet_red.png ../misc/medium/bullet_white.png ../misc/medium/bullet_yellow.png ../misc/medium/close.png ../misc/medium/hidden.png ../misc/medium/plus.png ../misc/medium/shown.png ../misc/medium/update.png
perl png2wx.pl -C ../../src/shared_base/gui/img/img_misc_l.cpp -H ../../src/shared_base/gui/img/img_misc.h -M _MISC_H_ ../misc/large/bullet_green.png ../misc/large/bullet_red.png ../misc/large/bullet_white.png ../misc/large/bullet_yellow.png ../misc/large/close.png ../misc/large/hidden.png ../misc/large/plus.png ../misc/large/shown.png ../misc/large/update.png
perl png2wx.pl -C ../../src/shared_base/gui/img/img_treectrl_s.cpp -H ../../src/shared_base/gui/img/img_treectrl.h -M _TREECTRL_H_ ../treectrl/small/icon_lightning.png ../treectrl/small/icon_other.png ../treectrl/small/icon_precip.png ../treectrl/small/icon_temp.png ../treectrl/small/icon_wind.png
perl png2wx.pl -C ../../src/shared_base/gui/img/img_treectrl_m.cpp -H ../../src/shared_base/gui/img/img_treectrl.h -M _TREECTRL_H_ ../treectrl/medium/icon_lightning.png ../treectrl/medium/icon_other.png ../treectrl/medium/icon_precip.png ../treectrl/medium/icon_temp.png ../treectrl/medium/icon_wind.png
perl png2wx.pl -C ../../src/shared_base/gui/img/img_treectrl_l.cpp -H ../../src/shared_base/gui/img/img_treectrl.h -M _TREECTRL_H_ ../treectrl/large/icon_lightning.png ../treectrl/large/icon_other.png ../treectrl/large/icon_precip.png ../treectrl/large/icon_temp.png ../treectrl/large/icon_wind.png
@@ -0,0 +1,144 @@
#!/usr/bin/perl
#
# png2wx - embed png in C++
# written by Jan Engelhardt <jengelh [at] medozas de>, 2004 - 2008
# http://jengelh.medozas.de/
# released in the Public Domain
#
use Getopt::Long;
use strict;
exit(main(\@ARGV));
sub main ()
{
my($cpp_file, $hpp_file, $hpp_include, $Marker, $main, $tmp);
Getopt::Long::Configure(qw(bundling));
GetOptions(
"C=s" => \$cpp_file,
"H=s" => \$hpp_file,
"M=s" => \$Marker,
);
if ($cpp_file eq "" || $hpp_file eq "") {
die "You need to specify -C, -H options.\n";
}
$hpp_include = $hpp_file;
$hpp_include =~ s{^.*/}{};
if ($Marker eq "") {
$Marker = uc $hpp_file;
$Marker =~ s{[^a-z]}{_}gi;
print "Using marker $Marker\n";
}
# Extract base file name (PH)
my $base_class = $cpp_file;
$base_class =~ s{^.*/}{};
$base_class =~ s{(.*)\.(?:cpp|cc)$}{$1}gis;
$base_class =~ s/[^a-z0-9]/_/gio;
#
# C++ header
#
open(HPP, "> $hpp_file") || warn "Could not open $hpp_file: $!\n";
$tmp = uc $hpp_file;
$tmp =~ s/[^A-Z0-9]/_/g;
print HPP "/* Autogenerated by png2wx.pl on ",
scalar(localtime()), " */\n";
print HPP <<"--EOF";
#ifndef $Marker
#define $Marker 1
#include <wx/wxprec.h>
#ifndef WX_PRECOMP
# include <wx/wx.h>
#endif
#ifdef _MSC_VER
#pragma warning( disable : 4125 ) // C4125: decimal digit terminates octal escape sequence
#endif
extern void initialize_images(void);
--EOF
#
# C++/WX file
#
open(CPP, "> $cpp_file") || warn "Could not open $cpp_file: $!\n";
print CPP "/* Autogenerated by png2wx.pl on ",
scalar(localtime()), " */\n";
print CPP <<"--EOF";
#include <wx/wxprec.h>
#ifndef WX_PRECOMP
# include <wx/wx.h>
#endif
#include <wx/mstream.h>
#include "$hpp_include"
--EOF
#
# Process files from the command line
#
foreach my $file (@ARGV) {
my $base = $file;
$base =~ s{^.*/}{};
$base =~ s{(.*)\.(?:jpg|png)$}{$1}gis;
$base =~ s/[^a-z0-9]/_/gio;
print HPP "extern wxBitmap *_img_$base;\n";
print CPP "wxBitmap *_img_$base;\n";
$main .= " {\n".
" wxMemoryInputStream sm(\"".encoded($file)."\", ".(-s $file).");\n".
" _img_$base = new wxBitmap(wxImage(sm));\n".
" }\n";
}
#
# Fixup C++ header
#
print HPP "\n", "#endif /* $Marker */\n";
close HPP;
print CPP
"\n",
"void initialize_$base_class(void)\n{\n",
$main,
" return;\n",
"}\n";
close CPP;
return 0;
}
sub encoded ()
{
my $file = shift @_;
my $data;
local *FH;
if (!open(FH, "< $file")) {
warn "Could not open $file: $!\n";
return;
}
binmode FH;
$data = join(undef, <FH>);
$data =~ s/\\/\\\\/go;
$data =~ s/([^\x07\x08\x0a\x0d\x20-\x7e])/sprintf "\\%03o", ord $1/egs;
$data =~ s/\x07/\\a/gs;
$data =~ s/\x08/\\b/gs;
$data =~ s/\x09/\\t/gs;
$data =~ s/\x0a/\\n/gs;
$data =~ s/\x0b/\\v/gs;
$data =~ s/\x0c/\\f/gs;
$data =~ s/\x0d/\\r/gs;
$data =~ s/\"/\\"/gs;
# avoid trigraphs:
$data =~ s/\?\?(?=[-\(\)<>=\/\'!])/?\\077/g;
close FH;
return $data;
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.

0 comments on commit 5319d09

Please sign in to comment.