next up previous contents index
Next: Module Samba Up: Module SkyMap Previous: Local maps   Contents   Index

Writing, viewing ...

All these objects have been design to be written to or read from a persistant file. The following example shows how to write the previously created objects into such a file :


//-- Writing

#include "fiospherehealpix.h" 
//................

char *fileout = "myfile.ppf";
POutPersist outppf(fileout);
FIO_SphereHEALPix<r_8> outsph(sph);
outsph.Write(outppf);
FIO_LocalMap<r_8> outloc(locmap);
outloc.Write(outppf);
// It is also possible to use the << operator
POutPersist os("sph.ppf");
os << outsph;
os << outloc;

Sophya graphical tools (spiapp) can automatically display and operate all these objects.



Reza Ansari
2001-03-07