Skip to content

Choi-chanhyuck/polar_stereo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NSIDC Polar Stereographic Projection

Utilities for converting polar stereographic coordinates.

To access the legacy IDL or Fortran version of these tools, see polar_stereo_legacy.

NSIDC's polar stereographic projection specifies a projection plane or grid tangent to the Earth's surface at 70° northern and southern latitude. While this increases the distortion at the poles by six percent and decreases the distortion at the grid boundaries by the same amount, the latitude of 70° was selected so that little or no distortion would occur in the marginal ice zone.

This repo contains conversion routines between longitude/latitude and generic x, y (km) coordinates. There are also conversion routines between longitude/latitude and i, j grid coordinates for specific datasets for AMSR-E and SSM/I.

See also Polar Stereo Overview.

Level of Support

  • This repository is fully supported by NSIDC. If you discover any problems or bugs, please submit an Issue. If you would like to contribute to this repository, you may fork the repository and submit a pull request.

Requirements

  • Python 3.6 or higher (tested with 3.6.7)
  • numpy (python library)
  • cartopy (python library)
  • pyhdf (python library)
  • HDF4 (on unix, this would be a package such as libhdf4-dev)

Installation

No special installation is needed, other than installing the above requirements.

Usage

See the individual files for details. The utilities in these files can be used in your own projects.

Python Code

polar_convert.py: Convert from longitude, latitude to Polar Stereographic x, y (km) and vice versa.
polar_lonlat_to_xy replaces Fortran mapll.for
polar_xy_to_lonlat replaces Fortran mapxy.for

nsidc_polar_lonlat.py: Transform from longitude and latitude to NSIDC Polar Stereographic I, J (grid) coordinates.

nsidc_polar_ij.py: Transform from NSIDC Polar Stereographic I, J (grid) coordinates to longitude and latitude.

read_mask: Read in a Polar Stereographic mask file and return the data.

read_mask_hdf: Read in an HDF4 Polar Stereographic mask file and return the data.

display_mask: Read in and display a Polar Stereographic mask file.

License

See LICENSE

Code of Conduct

See Code of Conduct.

Credit

This software was developed by the National Snow and Ice Data Center with funding from multiple sources.

About

NSIDC Polar Stereographic Projection

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%