pytroll / pytroll/pyresample

Creating area definition by arrays of latitudes and longitudes

Open
#223 13 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
385
Forks
102
Avg merge
4d 2h
Merged PRs (30d)
9

Description

Description:
We have generated a PNG composite image and want to overlay the coast lines on this PNG image by using pycoast.

Question:
The latitudes and longitudes of the pixels of this PNG image could be taken as numpy arrays from its source NetCDF file. How could we use the lat/long arrays in create_area_def to create area definition?

sample Code:

from pyresample import create_area_def
area_def = create_area_def('my_area',
...                            {'proj': 'latlong', 'lon_0': 0},
...                            area_extent=[-180, -90, 180, 90],
...                            resolution=1,
...                            units='degrees',
...                            description='Global 1x1 degree lat-lon grid')

I expect that by using lat/long arrays, some other parameters such as area_extent and resolution would be of no use.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the create_area_def entry point and compare its documented parameters with the latitude and longitude NumPy arrays from the source NetCDF file. Determine whether those arrays are supported directly; done means a documented, reproducible usage path or a clearly stated limitation.

Written by the indexing model from the issue text.

Assessment

Tech stack
numpy, python
Domain
data
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.