Skip to content
Snippets Groups Projects
Commit 256ab836 authored by lemeur's avatar lemeur
Browse files

amelioration de la projection de localmap

parent 86d1188c
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@
// Les objets delegues pour la gestion de persistance sur fichiers fits
// pout LocalMap
///////////////////////////////////////////////////////////
/*!
\class SOPHYA::FITS_LocalMap
\ingroup FitsIOServer
......@@ -92,9 +92,9 @@ void FITS_LocalMap<T>::ReadFromFits(FitsInFile& is)
throw IOExc("longueur datablock incompatible avec nPix");
}
dobj_->ReSize(nSzX, nSzY);
int_4 localMappingDone = dvl.GetI("LCMP");
if (localMappingDone)
{
// int_4 localMappingDone = dvl.GetI("LCMP");
// if (localMappingDone)
// {
int_4 x0 = dvl.GetI("X0");
int_4 y0 = dvl.GetI("Y0");
double theta = dvl.GetD("THETA");
......@@ -104,7 +104,7 @@ void FITS_LocalMap<T>::ReadFromFits(FitsInFile& is)
double angleX = dvl.GetD("ANGLEX");
double angleY = dvl.GetD("ANGLEY");
dobj_->SetSize(angleX, angleY);
}
// }
// On lit les DataBlocks;
dobj_->DataBlock().ReSize(nPix);
is.GetSingleColumn(dobj_->DataBlock().Data(),nPix);
......@@ -130,10 +130,10 @@ void FITS_LocalMap<T>::WriteToFits(FitsOutFile& os)
dvl["NPIX"] = dobj_->NbPixels();
dvl.SetComment("NPIX", "number of pixels in local map");
if(dobj_->LocalMap_isDone())
{
dvl["LCMP"] = (int_4) 1;
dvl.SetComment("LCMP", "local mapping 1= done, 0= not done");
// if(dobj_->LocalMap_isDone())
// {
// dvl["LCMP"] = (int_4) 1;
// dvl.SetComment("LCMP", "local mapping 1= done, 0= not done");
int_4 x0 = 0;
int_4 y0 = 0;
double theta = 0.;
......@@ -158,11 +158,11 @@ void FITS_LocalMap<T>::WriteToFits(FitsOutFile& os)
dvl.SetComment("ANGLEX", "sphere angle covered by map x-extension ");
dvl["ANGLEY"] = angleY;
dvl.SetComment("ANGLEY", "sphere angle covered by map y-extension ");
}
else
{
dvl["LCMP"] = (int_4) 0;
}
// }
// else
// {
// dvl["LCMP"] = (int_4) 0;
// }
dvl["Content"]= "LocalMap";
dvl.SetComment("Content", "name of SOPHYA object");
// On ecrit les dataBlocks
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment