[ncl-talk] Iterating through folders and grid cells to create a maximum value map

Stuart D Smith smit1770 at purdue.edu
Sat Nov 17 15:03:03 MST 2018


Thank you for the feedback Dennis. I was able to create the maximum value map. Thank you for the guidance.

Regards,

-Stuart

From: Dennis Shea <shea at ucar.edu>
Sent: Thursday, November 15, 2018 5:24 PM
To: Smith, Stuart <smit1770 at purdue.edu>
Cc: Ncl-talk <ncl-talk at ucar.edu>
Subject: Re: [ncl-talk] Iterating through folders and grid cells to create a maximum value map

Hello,

We recommend that people "new to NCL" read the User Manual
https://www.ncl.ucar.edu/Document/Manuals/

Specifically:
https://www.ncl.ucar.edu/Document/Manuals/NCL_User_Guide/NCL_User_Guide_v1.1_Legal.pdf

----
https://www.ncl.ucar.edu/Document/Functions/Built-in/systemfunc.shtml
To get different directory names

https://www.ncl.ucar.edu/Document/Functions/Built-in/addfiles.shtml
Please read about the 'join' type

---
Your data

netcdf MWP_2009060_100W050N_2D2OT.fract_wet {
dimensions:
    lon = 80 ;
    lat = 80 ;
variables:
    float Band1(lat, lon) ;

===
Carefully read:
https://www.ncl.ucar.edu/Document/Functions/Contributed/dim_max_n_Wrap.shtml

===
Write netCDF: Read
https://www.ncl.ucar.edu/Applications/write_netcdf.shtml

Use simple ("inefficient") method to write netCDF
===
I am attaching a sketch. I do not know the structure of your directories. You must figure out the correct way to access them




On Thu, Nov 15, 2018 at 7:32 AM Stuart D Smith <smit1770 at purdue.edu<mailto:smit1770 at purdue.edu>> wrote:
Good morning,

I  am seeking guidance on creating a maximum value map using the information from multiple satellite images.

To create the map, I believe I would need to use NCL to iterate through a list of folders (each folder contains one MODIS image) and extract the maximum value of  flooded area for each grid cell. The final product would be a map  (NetCDF/ascii file) with the maximum flooded values for each grid cell. The attached NetCDF file is an example of the file I would be reading in.

I am new to NCL so I really didn’t know where to begin. Any examples or reference material would be greatly appreciated. Thank you for your time.

Regards,

-Stuart
_______________________________________________
ncl-talk mailing list
ncl-talk at ucar.edu<mailto:ncl-talk at ucar.edu>
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20181117/c676b31c/attachment.html>


More information about the ncl-talk mailing list