Hi Nathan,
Thanks for your hard work on this PR (along with Ben Thompson). The naming convention that I suggested in the issue a few weeks back (
https://bitbucket.org/yt_analysis/yt/issue/947/consistent-field-naming-for-spherical-and) and in the discussion on your PR also matches with past convention. It is slightly different than what you propose, but seems (to me at least) to be more easy to read because the adjective comes before the noun (e.g. spherical position) instead of the reverse (e.g. position spherical).
Where proposed naming convention #1 is:
(field_type, "<particle?>_<position/velocity>_<coordinate_system>_<coordinate>") e.g. ('all', 'particle_position_spherical_phi')
Proposed naming convention #2 is:
(field_type, "<particle?>_<coordinate_system>_<position/velocity>_<coordinate>") e.g. ('all', 'particle_spherical_position_phi')
Here are all of the relevant gas and particle fields each convention:
Cartesian (convention #1 & #2 are the same)
('index', 'x')
('index', 'y')
('index', 'z')
('gas', 'velocity_x')
('gas', 'velocity_y')
('gas', 'velocity_z')
('all', 'particle_position_x')
('all', 'particle_position_y')
('all', 'particle_position_z')
('all', 'particle_velocity_x')
('all', 'particle_velocity_y')
('all', 'particle_velocity_z')
Convention #1 & #2 differ for the fields of cartesian position relative to the 'center' and 'normal' field parameters for the origin and z-vector:
#1 vs #2
('all', 'particle_position_relative_x') vs. ('all', 'particle_relative_position_x')
('all', 'particle_position_relative_y') vs. ('all', 'particle_relative_position_y')
('all', 'particle_position_relative_z') vs. ('all', 'particle_relative_position_z')
('all', 'particle_velocity_relative_x') vs. ('all', 'particle_velocity_position_x')
('all', 'particle_velocity_relative_y') vs. ('all', 'particle_velocity_position_y')
('all', 'particle_velocity_relative_z') vs. ('all', 'particle_velocity_position_z')
Spherical:
#1 vs #2
('index', 'spherical_phi')
('index', 'spherical_radius')
('index', 'spherical_theta')
('gas', 'velocity_spherical_phi') vs ('gas', 'spherical_velocity_phi')
('gas', 'velocity_spherical_theta') vs ('gas', 'spherical_velocity_theta')
('gas', 'velocity_spherical_radius') vs ('gas', 'spherical_velocity_radius')
('all', 'particle_position_spherical_phi') vs ('all', 'particle_spherical_position_phi')
('all', 'particle_position_spherical_theta') vs ('all', 'particle_spherical_position_theta')
('all', 'particle_position_spherical_radius') vs ('all', 'particle_spherical_position_radius')
('all', 'particle_velocity_spherical_phi') vs ('all', 'particle_spherical_velocity_phi')
('all', 'particle_velocity_spherical_theta') vs ('all', 'particle_spherical_velocity_theta')
('all', 'particle_velocity_spherical_radius') vs ('all', 'particle_spherical_velocity_radius')
Cylindrical:
#1 vs #2
('index', 'cylindrical_phi')
('index', 'cylindrical_radius')
('index', 'cylindrical_theta')
('gas', 'velocity_cylindrical_phi') vs ('gas', 'cylindrical_velocity_phi')
('gas', 'velocity_cylindrical_theta') vs ('gas', 'cylindrical_velocity_theta')
('gas', 'velocity_cylindrical_radius') vs ('gas', 'cylindrical_velocity_radius')
('all', 'particle_position_cylindrical_phi') vs ('all', 'particle_cylindrical_position_phi')
('all', 'particle_position_cylindrical_theta') vs ('all', 'particle_cylindrical_position_theta')
('all', 'particle_position_cylindrical_radius') vs ('all', 'particle_cylindrical_position_radius')
('all', 'particle_velocity_cylindrical_phi') vs ('all', 'particle_cylindrical_velocity_phi')
('all', 'particle_velocity_cylindrical_theta') vs ('all', 'particle_cylindrical_velocity_theta')
('all', 'particle_velocity_cylindrical_radius') vs ('all', 'particle_cylindrical_velocity_radius')
So what does the community think would be the best system here? #1 or #2? Either way it goes, I think this is a big improvement over the previous naming convention that had general inconsistencies.
Cameron