Projects
mass
turbina-core-mass
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 9
View file
turbina-core-mass.changes
Changed
@@ -1,4 +1,9 @@ ------------------------------------------------------------------- +Sun Aug 14 16:01:45 UTC 2016 - matwey@sai.msu.ru + +- Version 1.28 + +------------------------------------------------------------------- Thu Jun 16 17:10:53 UTC 2016 - matwey@sai.msu.ru - Version 1.27
View file
turbina-core-mass.spec
Changed
@@ -42,7 +42,7 @@ License: GPL-2.0 Group: Productivity/Scientific/Astronomy Name: turbina-core-mass -Version: 1.27 +Version: 1.28 Release: 0 Url: http://curl.sai.msu.ru/hg/turbina_core_m Source: %{tarname}-%{version}.tar.bz2 @@ -105,7 +105,7 @@ # SUSE cp %{S:2} rcmass %endif -make prefix=/usr +make %{?jobs:-j%jobs} prefix=/usr %install make prefix=/usr install DESTDIR=%{buildroot}
View file
turbina_core_m-1.27.tar.bz2/.hg_archival.txt -> turbina_core_m-1.28.tar.bz2/.hg_archival.txt
Changed
@@ -1,5 +1,6 @@ repo: 63489118e731e35c38269c30a1c34351c8991554 -node: 96d782fd2a7b681978338f3deab72968c2058be8 +node: c85405498791fa98e9d5e199898283adc99c403f branch: default -latesttag: 1.27 +latesttag: 1.28 latesttagdistance: 1 +changessincelatesttag: 1
View file
turbina_core_m-1.27.tar.bz2/.hgtags -> turbina_core_m-1.28.tar.bz2/.hgtags
Changed
@@ -3,3 +3,4 @@ 89cb84822a2deb003646237e08fe2c47576d0ec5 0.1 08874596d5cbd36a71ea4de3472e6723dcf7a11b 1.26 9ad288a77b9277969ff405979b79ee40d31ed31d 1.27 +a149340d7473e56a7ef6f5f7f20582ef411ce683 1.28
View file
turbina_core_m-1.27.tar.bz2/Makefile -> turbina_core_m-1.28.tar.bz2/Makefile
Changed
@@ -10,7 +10,7 @@ MASS_SOURCES = main.o mass.o configs.o module.o auxiliary.o channel.o bicounter.o exchange.o rs485.o astrotime.o measmode.o errlog.o rserrno.o sci.o results.o receiver.o comms.o scenario.o instrument.o socket.o server.o PREPHOT = prephot PREPHOT_SOURCES = prephot.o parameter_set.o processing.o coordinates.o astrotime.o -VERSION = 1.27 +VERSION = 1.28 CXX = g++ INSTALL_PROGRAM = install RS485INCLUDE = $(shell for X in /usr/include/linux/rs485 /usr/src/rs485/include; do T=$$X; if -d $$X ; then break; fi done; echo $$T;)
View file
turbina_core_m-1.27.tar.bz2/parameter_set.cpp -> turbina_core_m-1.28.tar.bz2/parameter_set.cpp
Changed
@@ -31,6 +31,7 @@ double scale = 2.9670597216e-06; std::vector< point<double> > crv; vector< double > tau( 4 ); + vector< double > p( 4 ); double exposure = 1.0; double basetime = 1; double nacctime = 60; @@ -90,6 +91,10 @@ static std::string nonlin_b_key("devices/bicounter 2/nonlinearityb"); static std::string nonlin_c_key("devices/bicounter 1/nonlinearitya"); static std::string nonlin_d_key("devices/bicounter 1/nonlinearityb"); + static std::string nopois_a_key("devices/bicounter 2/nonpoissona"); + static std::string nopois_b_key("devices/bicounter 2/nonpoissonb"); + static std::string nopois_c_key("devices/bicounter 1/nonpoissona"); + static std::string nopois_d_key("devices/bicounter 1/nonpoissonb"); exposure = get<double>( ::get( rPs, expos_key ) ); basetime = get<double>( ::get( rPs, btime_key ) ); nacctime = get<double>( ::get( rPs, atime_key ) ); @@ -98,6 +103,10 @@ tau(1) = get<double>( ::get( rPs, nonlin_b_key ) )/1e6; tau(2) = get<double>( ::get( rPs, nonlin_c_key ) )/1e6; tau(3) = get<double>( ::get( rPs, nonlin_d_key ) )/1e6; + p(0) = get<double>( ::get( rPs, nopois_a_key ) ); + p(1) = get<double>( ::get( rPs, nopois_b_key ) ); + p(2) = get<double>( ::get( rPs, nopois_c_key ) ); + p(3) = get<double>( ::get( rPs, nopois_d_key ) ); // std::cerr << "Exp " << exposure << " Bt " << basetime << " NA " << nacctime << " BA " << bacctime << std::endl; parm_is_set = true; return parm_is_set; @@ -107,6 +116,10 @@ return tau; } +vector <double>& parameters::p0() { + return p; +} + void parameters::P_line_parse( const std::string& p, const std::string& s ){ std::string::size_type i = 0; std::string params;
View file
turbina_core_m-1.27.tar.bz2/parameter_set.h -> turbina_core_m-1.28.tar.bz2/parameter_set.h
Changed
@@ -22,6 +22,7 @@ double accumtime(); double accumtime_background(); vector <double>& const_tau(); + vector <double>& p0(); double expos(); double base_time();
View file
turbina_core_m-1.27.tar.bz2/prephot.cpp -> turbina_core_m-1.28.tar.bz2/prephot.cpp
Changed
@@ -95,6 +95,17 @@ // std::cout << s << std::endl; } +void sharp_line( const std::string& s ) { +// std::cout << s << std::endl; + + if( s.find( "Parked", data_begin ) != std::string::npos ) { + basetime_number = processing::run_background(); + basetime_number = processing::run_star(); + std::cout << s << std::endl; + parameters::new_instrument_constant( dc_normal_mode, ut_normal_mode ); + } +} + void A_line( const std::string& s ) { if( mode == "Background" ) { processing::add_background( s.substr( data_begin ), mean_mz/basetime_number, 0.5*(mjd_first + mjd_last) ); @@ -117,7 +128,7 @@ cfpair( 's', &s_line ), cfpair( 'A', &A_line ), cfpair( 'C', &C_line ), - cfpair( '#', &C_line ), + cfpair( '#', &sharp_line ), cfpair( 'c', &C_line ) }; } @@ -130,7 +141,7 @@ try { // if( parameters::comand_line_parse( argc, argv ) < 0 ) return -1; - std::cout << "#" << "Prephot Vers." << "1.00" << " Compiled " << __TIME__ << " " << __DATE__<< std::endl; + std::cout << "#" << "Prephot Vers." << "1.50" << " Compiled " << __TIME__ << " " << __DATE__<< std::endl; // parameters::init_keys(); parameters::last_instrument_constant(); while( getline( std::cin, dimm_line ) ) {
View file
turbina_core_m-1.27.tar.bz2/processing.cpp -> turbina_core_m-1.28.tar.bz2/processing.cpp
Changed
@@ -18,14 +18,12 @@ using namespace boost::numeric::ublas; -// To do: ËÏÎÔÒÏÌØ ÄÌÉÎÎÙ ××ÏÄÉÍÏÊ ÓÔÒÏËÉ d ÎÁ ÐÒÅÄÍÅÔ ÎÅÆÏÒÍÁÔÎÏÇÏ ××ÏÄÁ -// ×ËÌÁÄ ÎÉÚËÏÊ ÞÁÓÔÏÔÙ ÐÏ ÐÏÓÌÅÄÏ×ÁÔÅÌØÎÙÍ ÒÁÚÎÏÓÔÑÍ Ó ËÏÎÔÒÏÌÅÍ ×ÅÌÉÞÉÎÙ -// ÄÌÑ ÉÓËÌÀÞÅÎÉÑ ÐÅÒÅÆÏËÕÓÉÒÏ×ËÉ. - const double aperture_factor = 11.5; const unsigned int window = 2; const double mindelta = 0.25; const double mintime = 6.0/60.0/24.0 ; +const double plimits = 0.05; + struct photo { std::string name; double MASS_mag; @@ -35,8 +33,6 @@ photo() { MASS_mag = 0; moment = 0; mz = 0; flux = 0;}; }; - - namespace processing { Coord<equ> star; double MASS_mag; @@ -51,6 +47,7 @@ std::vector< double > star_mass; double extinct = 0.2; bool star_is = false; + } unsigned int processing::add_background( const std::string& s, double mz, double moment ) { @@ -60,9 +57,14 @@ istr >> fluxes >> vars; if( istr.eof() || istr.fail() ) throw std::ios_base::failure( "Background moments input fail" ); // verification + vector< double > poiss = element_prod( fluxes, vars ); + vector< double > poiss0(parameters::p0()); +// std::cout << "Back quality " << std::fixed << std::setprecision(3) << poiss << std::endl; + if( poiss(2) > poiss0(2) + plimits || poiss(3) > poiss0(3) + plimits ) throw std::ios_base::failure( "This is no background measurement" ); // c+d apertures double flux = fluxes(2) + fluxes(3); + back_fluxes.push_back(flux); back_mass.push_back(mz); back_time.push_back(moment);
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.