A VERY KIND REQUEST : How to Convert binary Mask to NetCDF
Added by Avinash Kumar almost 10 years ago
Dear All
I would be very much grateful if anyone can make a masking file in netcdf file using the region_n.msk: 448 rows x 304 columns [binary file]. The details are given in below link. Further, this Netcdf file can be used to mask any netcdf file based on our required regions.
Region Masks
http://nsidc.org/data/polar_stereo/tools_masks.html
Region masks for the Northern (n). The files contain a 300-byte header, followed by a two-dimensional byte array stored by rows in column order. Regions are assigned different pixel values as shown in the following table.
region_n.msk: 448 rows x 304 columns [ATTACHED FOR KIND REFERENCE]
Grided mask map:JPG [ATTACHED FOR KIND REFERENCE]
Pixel Value Arctic Region
1 Non-regional ocean
2 Sea of Okhotsk and Japan
3 Bering Sea
4 Hudson Bay
5 Baffin Bay/Davis Strait/Labrador Sea
6 Greenland Sea
7 Kara and Barents Seas
8 Arctic Ocean
9 Canadian Archipelago
10 Gulf of St. Lawrence
11 Land
12 Coast
0 Lakes, extended coast
Thanking you and eagerly waiting for help from anyone.
Kind Regards
Avinash
Dr. Avinash Kumar | Scientist 'C'
ESSO - National Centre for Antarctic & Ocean Research
Earth System Science Organization | Ministry of Earth Sciences | Government of India
Headland Sada | Vasco-da-Gama | Goa 403 804 | India
region.msk (133 KB) region.msk | |||
Grid MASK MAP.jpg (85.2 KB) Grid MASK MAP.jpg |