.. _program_listing_file_environment_plasma_gcpm_conversions.h: Program Listing for File conversions.h ====================================== |exhale_lsh| :ref:`Return to documentation for file ` (``environment/plasma/gcpm/conversions.h``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp #pragma once #include namespace pecsim { enum Frame { GEI, GEO, GSE, GSM, SM }; void pol_to_cart(double alatr, double along, double r, std::array& pos_sm); void cart_to_pol(const std::array& pos_geo, double& blatr, double& blong, double& rtemp); void sm_to_geo(const std::array& itime, const std::array& pos_sm, std::array& pos_geo); void geo_to_sm(const std::array& itime, const std::array& pos_geo, std::array& pos_sm); void gei_to_sm(const std::array& itime, const std::array& x_in, std::array& x_out); double to_mjd(const std::array& itime, double& iyr, double& iday, double& ut); void t1(const std::array& itime, const std::array& x_in, std::array& x_out, int iverse); void t2(const std::array& itime, const std::array& x_in, std::array& x_out, int iverse); void t3(const std::array& itime, const std::array& x_in, std::array& x_out, int iverse); void t4(const std::array& itime, const std::array& x_in, std::array& x_out, int iverse); void t5(const std::array& itime, const std::array& x_in, std::array& x_out, int iverse); void rotate_x(double angle, const std::array& x_in, std::array& x_out); void rotate_y(double angle, const std::array& x_in, std::array& x_out); void rotate_z(double angle, const std::array& x_in, std::array& x_out); void get_q_c(const std::array& itime, std::array& q_c); } // namespace pecsim